DGKC Control Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Licensing
Expand ModelsModels
Collapse DG Kernel ControlDG Kernel Control
Expand API ReferenceAPI Reference
Expand Samples and TutorialsSamples and Tutorials
Expand GraphicsGraphics
Expand Math ObjectsMath Objects
Expand DeprecatedDeprecated
Redistribution
Model Viewer
Support
Skip Navigation LinksHome Page > DG Kernel Control > Programmatic Functionality > Core Types > PointDg Go to ActiveX docs Search Documentation


PointDg Class

A 3D point.

PointDg();
PointDg(double x, double y, double z);
PointDg(PointDg p);
PointDg(bool random);    //Point with random coordinates in [-1,1] range
void Copy(PointDg pt);
void Get(out double x, out double y, out double z);
double Get(int i);
double this[int index];
double Dist(PointDg pt);
double DistSquare(PointDg pt);
VectDg GetOffsetVector(PointDg pt); //Returns vector from pt to this
PointDg GetOffset(VectDg vectBy); //Returns offset of this
PointDg GetOffset(VectDg direction, double distance);
void Offset(VectDg vectBy);
void Set(double x, double y, double z);
bool Is(double x, double y, double z, double tolerance);
bool Is(double x, double y, double z)
bool IsSame(PointDg pt);
bool IsSame(PointDg pt, double tolerance);
bool IsZero();
bool IsZero(double tolerance);
double Norm();
double NormMax();
double NormSquare();
static PointDg operator +(PointDg pt0, PointDg pt1);
static PointDg operator +(PointDg pt0, VectDg v);
static PointDg operator -(PointDg pt0, PointDg pt1);
static PointDg operator -(PointDg pt0, VectDg v);
static PointDg operator *(double m, PointDg v);
void Scale(double m);
double Product(PointDg pt); //Scalar product
bool IsNormal(PointDg pt) // Is perpendicular to pt?
void SwapDirection();
void Translate(double dx, double dy, double dz);
void Translate(VectDg v);
PointDg GetTranslated(VectDg v);
void MakeRandom();//Make random coordinates in [-1,1] range