IVectorOperation_DG Interface
Interface for basic operations with 3D vectors and points
IVectorOperation_DG can be obtained from IDIObjGenerator using query DGKernelControl.GetModel()
> IModel_DG > IObjectGenerator_DG > IVectorOperation_DG
Methods:
- Get
- Set
- GetCoordinate
- SetCoordinate
- Add
- Subtract
- Multiply
- Copy
- GetLength
- Normalize
- Distance
- ScalarProduct
- CrossProduct
- Angle
void Get(Vect_DG vect, out double vx, out double vy, out double vz)
void Set(Vect_DG vect, double vx, double vy, double vz)
double GetCoordinate(Vect_DG vect, short coord)
void SetCoordinate(Vect_DG vect, short coord, double val)
void Add(Vect_DG vect, Vect_DG vectOther)
Adds vectOther to vect
void Subtract(Vect_DG vect, Vect_DG vectOther)
Subtracts vectOther from vect
void Multiply(Vect_DG vect, double m)
Multiplies vect by m
void Copy(Vect_DG vectTo, Vect_DG vectFrom)
double GetLength(Vect_DG vect)
bool Normalize(Vect_DG vect)
Forces length of vect to 1.0, while keeping its direction. Returns false if vect had zero length
double Distance(Vect_DG vect0, Vect_DG vect1)
double ScalarProduct(Vect_DG vect0, Vect_DG vect1)
Vect_DG CrossProduct(Vect_DG vect0, Vect_DG vect1)
double Angle(Vect_DG vect0, Vect_DG vect1)
|