ZeusMath-Library
2.0.4
|
#include <Vector3D.h>
Public Member Functions | |
TVector3D () | |
Default constructor, initializing as zero vector. More... | |
TVector3D (const Float &fX, const Float &fY, const Float &fZ) | |
Constructor taking all components' values. More... | |
TVector3D (const TVector3D &rVector) | |
Copy constructor: Constructor taking class type object. More... | |
TVector3D (const TVector &rVector) | |
Constructor taking a generic vector object. More... | |
TVector3D (const IVector3D &rVector) | |
Constructor taking interface type object. More... | |
TVector3D (const IVector &rVector) | |
Constructor taking interface type object. More... | |
virtual | ~TVector3D () |
Virtual destructor. More... | |
TVector3D | getNormalizedVector () const |
TVector3D | rotatedX (const IAngle &rAngle) const |
TVector3D | rotatedY (const IAngle &rAngle) const |
TVector3D | rotatedZ (const IAngle &rAngle) const |
TVector3D | rotatedHorizontalAngle (const IAngle &rAngle) const |
TVector3D | rotatedVerticalAngle (const IAngle &rAngle) const |
virtual void MQUALIFIER | assign3D (const IVector3D &rVector) |
virtual bool MQUALIFIER | isParallel (const IVector3D &rVector) const |
virtual bool MQUALIFIER | isCollinear (const IVector3D &rVector) const |
virtual bool MQUALIFIER | isZeroVector () const |
virtual bool MQUALIFIER | isUnitVectorX () const |
virtual bool MQUALIFIER | isUnitVectorY () const |
virtual bool MQUALIFIER | isUnitVectorZ () const |
virtual const Float &MQUALIFIER | getX () const |
virtual const Float &MQUALIFIER | getY () const |
virtual const Float &MQUALIFIER | getZ () const |
virtual void MQUALIFIER | setX (const Float &fX) |
virtual void MQUALIFIER | setY (const Float &fY) |
virtual void MQUALIFIER | setZ (const Float &fZ) |
virtual void MQUALIFIER | setValues (Float fX, Float fY, Float fZ) |
virtual void MQUALIFIER | initAsZeroVector () |
virtual void MQUALIFIER | initAsUnitVectorX () |
virtual void MQUALIFIER | initAsUnitVectorY () |
virtual void MQUALIFIER | initAsUnitVectorZ () |
virtual void MQUALIFIER | calcVectorProduct (const IVector3D &rVector, IVector3D &rProduct) const |
virtual void MQUALIFIER | calcAngleTo (const IVector3D &rVector, IAngle &rAngle) const |
virtual Float MQUALIFIER | calcDistanceTo (const IVector3D &rVector) const |
virtual void MQUALIFIER | normalize () |
virtual void MQUALIFIER | getHorizontalAngle (IAngle &rAngle) const |
virtual void MQUALIFIER | getVerticalAngle (IAngle &rAngle) const |
virtual void MQUALIFIER | setHorizontalAngle (const IAngle &rAngle) |
virtual void MQUALIFIER | setVerticalAngle (const IAngle &rAngle) |
virtual void MQUALIFIER | rotateX (const IAngle &rAngle) |
virtual void MQUALIFIER | rotateY (const IAngle &rAngle) |
virtual void MQUALIFIER | rotateZ (const IAngle &rAngle) |
virtual void MQUALIFIER | rotateHorizontalAngle (const IAngle &rAngle) |
virtual void MQUALIFIER | rotateVerticalAngle (const IAngle &rAngle) |
virtual void MQUALIFIER | mirrorAtXYPlane () |
virtual void MQUALIFIER | mirrorAtXZPlane () |
virtual void MQUALIFIER | mirrorAtYZPlane () |
virtual void MQUALIFIER | assign (const IVector &rVector) |
virtual void MQUALIFIER | assignValues (const Float *apValues, Int iSize) |
virtual bool MQUALIFIER | equals (const IVector &rVector, Float fPrecision=FLOAT_PRECISION) const |
virtual Float MQUALIFIER | getComponent (Int iIndex) const |
virtual Float *MQUALIFIER | getComponents () |
virtual const Float *MQUALIFIER | getComponentsConst () const |
virtual Int MQUALIFIER | getDimension () const |
virtual Float MQUALIFIER | getNorm () const |
virtual Float MQUALIFIER | getNormSquared () const |
virtual Float MQUALIFIER | getLength () const |
virtual Float MQUALIFIER | getLengthSquared () const |
virtual bool MQUALIFIER | setComponent (Int iIndex, Float fValue) |
virtual void MQUALIFIER | setDimension (Int iValue) |
virtual void MQUALIFIER | add (const IVector &rVector) |
virtual void MQUALIFIER | subtract (const IVector &rVector) |
virtual Float MQUALIFIER | calcScalarProduct (const IVector &rVector) const |
virtual void MQUALIFIER | multiply (const Float &f) |
virtual void MQUALIFIER | divide (const Float &f) |
TVector3D | operator+ (const IVector &rVector) const |
TVector3D | operator- (const IVector &rVector) const |
Float | operator* (const IVector &rVector) const |
TVector3D | operator* (const Float &f) const |
TVector3D | operator/ (const Float &f) const |
TVector3D | operator^ (const IVector3D &rVector) const |
const TVector3D & | operator+= (const IVector &rVector) |
const TVector3D & | operator-= (const IVector &rVector) |
const TVector3D & | operator*= (const Float &f) |
const TVector3D & | operator/= (const Float &f) |
const TVector3D & | operator= (const IVector &rVector) |
const TVector3D & | operator= (const IVector3D &rVector) |
const TVector3D & | operator= (const TVector3D &rVector) |
bool | operator== (const IVector3D &rVector) const |
bool | operator== (const IVector &Vector) const |
bool | operator!= (const IVector3D &rVector) const |
bool | operator!= (const IVector &rVector) const |
bool | operator|| (const IVector3D &rVector) const |
bool | operator< (const TVector3D &rVector) const |
Static Public Member Functions | |
static const TVector3D & | getZeroVector () |
static const TVector3D & | getUnitVectorX () |
static const TVector3D & | getUnitVectorY () |
static const TVector3D & | getUnitVectorZ () |
TVector3D encapsulates a three dimensional floating point vector as base class for vector geometry calculations.
TVector3D objects are stack objects.
|
inline |
Default constructor, initializing as zero vector.
|
inline |
Constructor taking all components' values.
|
inline |
Copy constructor: Constructor taking class type object.
|
inline |
Constructor taking a generic vector object.
|
inline |
Constructor taking interface type object.
|
inline |
Constructor taking interface type object.
|
inlinevirtual |
Virtual destructor.
|
inlinevirtual |
Implements zeus::IVector.
|
virtual |
Implements zeus::IVector.
|
virtual |
Implements zeus::IVector3D.
|
virtual |
Implements zeus::IVector.
|
virtual |
Implements zeus::IVector3D.
|
inlinevirtual |
Implements zeus::IVector3D.
|
inlinevirtual |
Implements zeus::IVector.
|
inlinevirtual |
Implements zeus::IVector3D.
|
inlinevirtual |
Implements zeus::IVector.
|
virtual |
Implements zeus::IVector.
|
virtual |
Implements zeus::IVector.
|
inlinevirtual |
Implements zeus::IVector.
|
inlinevirtual |
Implements zeus::IVector.
|
inlinevirtual |
Implements zeus::IVector.
|
virtual |
Implements zeus::IVector3D.
|
inlinevirtual |
Implements zeus::IVector.
|
inlinevirtual |
Implements zeus::IVector.
|
virtual |
Implements zeus::IVector.
|
inline |
Calculate the normalized vector, and return by value.
|
virtual |
Implements zeus::IVector.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
virtual |
Implements zeus::IVector3D.
|
inlinevirtual |
Implements zeus::IVector3D.
|
inlinevirtual |
Implements zeus::IVector3D.
|
inlinevirtual |
Implements zeus::IVector3D.
|
inlinestatic |
|
inlinevirtual |
Implements zeus::IVector3D.
|
inlinevirtual |
Implements zeus::IVector3D.
|
inlinevirtual |
Implements zeus::IVector3D.
|
inlinevirtual |
Implements zeus::IVector3D.
|
virtual |
Implements zeus::IVector3D.
|
virtual |
Implements zeus::IVector3D.
|
inlinevirtual |
Implements zeus::IVector3D.
|
inlinevirtual |
Implements zeus::IVector3D.
|
inlinevirtual |
Implements zeus::IVector3D.
|
inlinevirtual |
Implements zeus::IVector3D.
|
inlinevirtual |
Mirror at the xy plane.
Implements zeus::IVector3D.
|
inlinevirtual |
Mirror at the xz plane.
Implements zeus::IVector3D.
|
inlinevirtual |
Mirror at the yz plane.
Implements zeus::IVector3D.
|
inlinevirtual |
Implements zeus::IVector.
|
inlinevirtual |
Implements zeus::IVector3D.
|
inline |
Inequality.
rVector | [IN]: Vector to be compared to this vector. |
|
inline |
Inequality.
rVector | [IN]: Vector to be compared to this vector. |
|
inline |
Scalar product.
rVector | [IN]: Vector to be multiplied with this vector. |
|
inline |
Multiplication with a scalar from the right.
f | [IN]: Scalar. |
|
inline |
Multiplication with a scalar from the right. Assign the result to this vector.
f | [IN]: Scalar. |
Addition.
rVector | [IN]: Vector to be added to this vector. |
Add a vector to this vector, and assign the result to this vector.
rVector | [IN]: Vector to be added to this vector. |
Subtraction.
rVector | [IN]: Vector to be subtracted from this vector. |
Subtract a vector from this vector, and assign the result to this vector.
rVector | [IN]: Vector to be subtracted from this vector. |
|
inline |
Division by a scalar.
f | [IN]: Scalar. |
|
inline |
Division by a scalar from the right. Assign the result to this vector.
f | [IN]: Scalar. |
|
inline |
special compare operator used for maps and sets using a binary search
Assignment of interface type object.
rVector | [IN]: Vector to be assigned to this vector. |
Assignment of interface type object.
rVector | [IN]: Vector to be assigned to this vector. |
Assignment of class type object.
rVector | [IN]: Vector to be assigned to this vector. |
|
inline |
Equality.
rVector | [IN]: Vector to be compared to this vector. |
|
inline |
Equality.
rVector | [IN]: Vector to be compared to this vector. |
Vector product.
rVector | [IN]: Vector to be multiplied with this vector. |
|
inline |
Parallel to another vector? Pointing in the same direction.
rVector | [IN]: Vector to be compared for being parallel to this vector. |
Rotate this vector such that its horizontal angle is increased by Angle, and return as a new vector.
rAngle | [IN]: Rotation angle. |
Rotate this vector such that its vertical angle is increased by Angle, and return as a new vector.
rAngle | [IN]: Rotation angle. |
Rotate this vector around the x-axis and return as a new vector.
rAngle | [IN]: Rotation angle. |
Rotate this vector around the y-axis and return as a new vector.
rAngle | [IN]: Rotation angle. |
Rotate this vector around the z-axis and return as a new vector.
rAngle | [IN]: Rotation angle. |
|
inlinevirtual |
Implements zeus::IVector3D.
|
inlinevirtual |
Implements zeus::IVector3D.
|
inlinevirtual |
Implements zeus::IVector3D.
|
inlinevirtual |
Implements zeus::IVector3D.
|
inlinevirtual |
Implements zeus::IVector3D.
|
virtual |
Implements zeus::IVector.
|
inlinevirtual |
Implements zeus::IVector.
|
virtual |
Implements zeus::IVector3D.
|
inlinevirtual |
Implements zeus::IVector3D.
|
virtual |
Implements zeus::IVector3D.
|
inlinevirtual |
Implements zeus::IVector3D.
|
inlinevirtual |
Implements zeus::IVector3D.
|
inlinevirtual |
Implements zeus::IVector3D.
|
inlinevirtual |
Implements zeus::IVector.