DesignForms
TVector3D Class Reference

3D vector with components X, Y, Z More...

Inherits TVector.

Public Member Functions

 TVector3D (double _X, double _Y, double _Z)
 Constructor More...
 
TVector Rotate3DVectorAroundAxis (TVector3D Axis, double fi)
 rotates vector around NORMALIZED axis More...
 
TVector Rotate3DVectorAroundAxis (TVector3D Axis, int n90)
 rotates vector around NORMALIZED axis by n90 * 90 degrees More...
 
- Public Member Functions inherited from TVector
 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 Z [get, set]
 Component Z More...
 
- Properties inherited from TVector
double this[int index] [get, set]
 Return value of vector component More...
 

Detailed Description

3D vector with components X, Y, Z

Constructor & Destructor Documentation

TVector3D ( double  _X,
double  _Y,
double  _Z 
)

Constructor

Parameters
_XComponent X
_YComponent Y
_ZComponent Z

Member Function Documentation

TVector Rotate3DVectorAroundAxis ( TVector3D  Axis,
double  fi 
)

rotates vector around NORMALIZED axis

Parameters
Axis
fi
Returns
TVector Rotate3DVectorAroundAxis ( TVector3D  Axis,
int  n90 
)

rotates vector around NORMALIZED axis by n90 * 90 degrees

Parameters
Axis
n90
Returns

Property Documentation

double X
getset

Component X

double Y
getset

Component Y

double Z
getset

Component Z