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 ViewsViews
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 > VectDg Go to ActiveX docs Search Documentation


VectDg Class

A 3D vector.

VectDg();
VectDg(double vx, double vy, double vz);
VectDg(VectDg v);
VectDg(bool random);    //Point with random coordinates in [-1,1] range
void Copy(VectDg v);
void Get(out double vx, out double vy, out double vz);
double Get(int i);
double this[int index];
static VectDg operator +(VectDg v0, VectDg v1);
static VectDg operator -(VectDg v0, VectDg v1);
static VectDg operator ^(VectDg v0, VectDg v1); // Cross product
static double operator *(VectDg v0, VectDg v1);// Inner product
static VectDg operator *(double m, VectDg v);// Scaling
void Scale(double m);
double Angle(VectDg v);
void Set(double vx, double vy, double vz);
double Dist(VectDg v);
double DistMax(VectDg v);
bool Is(double x, double y, double z, double tolerance);
bool Is(double x, double y, double z
bool IsOrtho(VectDg v);
bool IsOrtho(VectDg v, double tolerance);
bool IsSame(VectDg v);
bool IsSame(VectDg v, double tolerance);
bool IsCollinear(VectDg v);
bool IsCollinear(VectDg v, double tolerance);
bool IsCoplanar(VectDg v0, VectDg v1);
bool IsCoplanar(VectDg v0, VectDg v1, double tolerance);
bool IsUnitary();
bool IsUnitary(double tolerance);
bool IsZero();
bool IsZero(double tolerance);
double Length();
double LengthMax();
double LengthSquare();
VectDg GetNormalized();
bool Normalize();
bool Normalize(double tolerance);
double Product(VectDg v); //Inner product
VectDg CrossProduct(VectDg vec);
void Rotate(VectDg axis, double angle);
VectDg GetRotated(VectDg axis, double angle);
VectDg GetVectorProjection(VectDg v);
bool MakeOrtho(VectDg v);// Make this orthogonal to v
VectDg GetAnyOrthoVector()
void MakeRandom();//Make random coordinates in [-1,1] range