ZeusMath-Library
2.0.4
|
#include <IVector.hpp>
Public Member Functions | |
virtual void MQUALIFIER | assign (const IVector &rVector)=0 |
virtual void MQUALIFIER | assignValues (const Float *apValues, Int iSize)=0 |
virtual bool MQUALIFIER | equals (const IVector &rVector, Float fPrecision=FLOAT_PRECISION) const =0 |
virtual Float MQUALIFIER | getComponent (Int iIndex) const =0 |
virtual Float *MQUALIFIER | getComponents ()=0 |
virtual const Float *MQUALIFIER | getComponentsConst () const =0 |
virtual Int MQUALIFIER | getDimension () const =0 |
virtual Float MQUALIFIER | getNorm () const =0 |
virtual Float MQUALIFIER | getNormSquared () const =0 |
virtual Float MQUALIFIER | getLength () const =0 |
virtual Float MQUALIFIER | getLengthSquared () const =0 |
virtual bool MQUALIFIER | setComponent (Int iIndex, Float fValue)=0 |
virtual void MQUALIFIER | setDimension (Int iValue)=0 |
virtual void MQUALIFIER | add (const IVector &rVector)=0 |
virtual void MQUALIFIER | subtract (const IVector &rVector)=0 |
virtual Float MQUALIFIER | calcScalarProduct (const IVector &rVector) const =0 |
virtual void MQUALIFIER | multiply (const Float &f)=0 |
virtual void MQUALIFIER | divide (const Float &f)=0 |
IVector encapsulates a n dimensional floating point vector as base class for vector geometry calculations.
|
pure virtual |
Addition. Adds a vector and assigns the result to this vector.
rVector | [IN]: Vector to be added to this vector. |
Implemented in zeus::TVector3D, zeus::TVector2D, and zeus::TVector.
|
pure virtual |
Assignment of an other vector. This method might resize the vector.
rVector | [IN]: Reference to interface type object to be assigned to this object. |
Implemented in zeus::TVector3D, zeus::TVector2D, and zeus::TVector.
|
pure virtual |
Assignment of values. This method might resize the vector.
apValues | [IN]: Values to assign |
iSize | : Size of the data array |
Implemented in zeus::TVector3D, zeus::TVector2D, and zeus::TVector.
|
pure virtual |
Scalar product.
rVector | [IN]: Vector to be multiplied with this vector. |
Implemented in zeus::TVector3D, zeus::TVector2D, and zeus::TVector.
|
pure virtual |
Division by a scalar. Assigns the result to this vector.
f | [IN]: Scalar. |
Implemented in zeus::TVector3D, zeus::TVector2D, and zeus::TVector.
|
pure virtual |
Checks if two vectors are equal
rVector | [IN]: Vector to be compared to this vector. |
fPrecision | [IN]: Precision |
true | : is equal. |
false | is not equal |
Implemented in zeus::TVector3D, zeus::TVector2D, and zeus::TVector.
|
pure virtual |
Returns the i-th component of the vector
iIndex | : Index starting at zero |
Implemented in zeus::TVector3D, zeus::TVector2D, and zeus::TVector.
|
pure virtual |
Returns the array of the vector components
Implemented in zeus::TVector3D, zeus::TVector2D, and zeus::TVector.
|
pure virtual |
Returns the const array of the vector components
Implemented in zeus::TVector3D, zeus::TVector2D, and zeus::TVector.
|
pure virtual |
Returns the dimensions of the vector
Implemented in zeus::TVector3D, zeus::TVector2D, and zeus::TVector.
|
pure virtual |
Calculate the norm/length.
Implemented in zeus::TVector3D, zeus::TVector2D, and zeus::TVector.
|
pure virtual |
Calculate the norm/length.
Implemented in zeus::TVector3D, zeus::TVector2D, and zeus::TVector.
|
pure virtual |
Calculate the norm/length squared.
Implemented in zeus::TVector3D, zeus::TVector2D, and zeus::TVector.
|
pure virtual |
Calculate the norm/length squared.
Implemented in zeus::TVector3D, zeus::TVector2D, and zeus::TVector.
|
pure virtual |
Multiplication with a scalar from the right. Assigns the result to this vector.
f | [IN]: Scalar. |
Implemented in zeus::TVector3D, zeus::TVector2D, and zeus::TVector.
|
pure virtual |
Sets the i-th component of the vector
iIndex | : Index starting at zero |
fValue | : Value to set |
true | : Value set |
false | iIndex is out of bounds |
Implemented in zeus::TVector3D, zeus::TVector2D, and zeus::TVector.
|
pure virtual |
Resizes the vector
iValue | : New vector dimension |
Implemented in zeus::TVector3D, zeus::TVector2D, and zeus::TVector.
|
pure virtual |
Subtraction. Subtracts a vector and assigns the result to this vector.
rVector | [IN]: Vector to be subtracted from this vector. |
Implemented in zeus::TVector3D, zeus::TVector2D, and zeus::TVector.