2D vector with components X, Y More...
Inherits TVector.
Public Member Functions | |
TVector2D (double _X, double _Y) | |
Constructor More... | |
TVector2D | Rotate (double Angle) |
TVector2D | GetPerpendicularVector () |
double | GetAngle () |
double | GetAngle (TVector2D V) |
![]() | |
TVector (int size) | |
Constructor More... | |
TVector (object[] _Components) | |
Constructor More... | |
List< double > | GetComponents () |
Return values of the vector components More... | |
double | GetComponent (double index) |
Return value of the component on the position given by index More... | |
void | InsertComponent (double value) |
Insert new value at the end of the vector. This command will change the size of the vector. More... | |
void | InsertComponentOnPos (double index, double value) |
Insert new component on the position given by index. More... | |
void | AddVector (TVector vector) |
Add the vector. Each component of the result is sum of components of current and new vector More... | |
void | AddScalar (double value) |
Add scalar value to each component of the vector More... | |
void | SubstractVector (TVector vector) |
Subtract given vector from current one More... | |
void | SubtractScalar (double value) |
Subtract given scalar from each component of the vector More... | |
void | MultipleByScalar (double value) |
Multiply each component of the vector by the scalar value More... | |
void | DivideByScalar (double value) |
Divide each component of the vector by the scalar value More... | |
double | DotProduct (TVector vector) |
Dot product of current vector and vector passed as a parameter More... | |
Boolean | CompareVector (TVector vector) |
Compare given vector and vector passed as a parameter More... | |
TVector | CrossProduct (TVector vector) |
Cross production of current vector and vector passed as a parameter More... | |
double | EuclidNorm () |
double | Lenght () |
TVector | Normalize () |
Return vector with normalized length = 1 More... | |
TMatrix | DyadicMultiplication (TVector vector) |
void | Zero () |
TVector | Clone () |
Return deep clone of the vector More... | |
Properties | |
double | X [get, set] |
Component X More... | |
double | Y [get, set] |
Component Y More... | |
![]() | |
double | this[int index] [get, set] |
Return value of vector component More... | |
2D vector with components X, Y
TVector2D | ( | double | _X, |
double | _Y | ||
) |
Constructor
_X | Component X |
_Y | Component Y |
double GetAngle | ( | ) |
double GetAngle | ( | TVector2D | V | ) |
V |
TVector2D GetPerpendicularVector | ( | ) |
TVector2D Rotate | ( | double | Angle | ) |
Angle |
|
getset |
Component X
|
getset |
Component Y