#include <Vector.h>
Public Member Functions | |
Vector () | |
Vector (const float fX, const float fY, const float fZ) | |
Vector (const float vfValues[]) | |
~Vector () | |
void | Set (const float fX, const float fY, const float fZ) |
void | SetX (const float fX) |
void | SetY (const float fY) |
void | SetZ (const float fZ) |
const float * | Get () const |
const float | Get (const unsigned int uIndex) const |
const float | GetX () const |
const float | GetY () const |
const float | GetZ () const |
const float | GetMagnitude () const |
const float | GetSquaredMagnitude () const |
const float | GetDot (const Vector &vecOther) const |
const Vector | GetCross (const Vector &vecOther) const |
const Vector | GetNormalized () const |
const Vector | GetInverse () const |
void | normalize () |
void | invert () |
const bool | operator== (const Vector &vecOther) const |
const bool | operator!= (const Vector &vecOther) const |
float & | operator[] (const unsigned int uIndex) |
const float | operator[] (const unsigned int uIndex) const |
const Vector & | operator+= (const Vector &vecOther) |
const Vector & | operator-= (const Vector &vecOther) |
const Vector & | operator *= (const Vector &vecOther) |
const Vector & | operator *= (const float &fOther) |
const Vector & | operator/= (const Vector &vecOther) |
const Vector & | operator/= (const float &fOther) |
const Vector | operator+ (const Vector &vecOther) const |
const Vector | operator- (const Vector &vecOther) const |
const Vector | operator * (const Vector &vecOther) const |
const Vector | operator * (const float &fOther) const |
const Vector | operator/ (const Vector &vecOther) const |
const Vector | operator/ (const float &fOther) const |
const Vector | operator- () const |
Vector::Vector | ( | ) | [inline] |
Construct a Vector instance with values 0.0, 0.0, 0.0.
Vector::Vector | ( | const float | fX, | |
const float | fY, | |||
const float | fZ | |||
) | [inline] |
Construct a Vector instance from 3 float values.
Vector::Vector | ( | const float | vfValues[] | ) | [inline] |
Construct a Vector instance from a float Array.
Vector::~Vector | ( | ) | [inline] |
Destructor.
void Vector::Set | ( | const float | fX, | |
const float | fY, | |||
const float | fZ | |||
) | [inline] |
Sets new values for this vector.
void Vector::SetX | ( | const float | fX | ) | [inline] |
Set a new X-Value for this vector.
void Vector::SetY | ( | const float | fY | ) | [inline] |
Set a new Y-Value for this vector.
void Vector::SetZ | ( | const float | fZ | ) | [inline] |
Set a new Z-Value for this vector.
const float* Vector::Get | ( | ) | const [inline] |
Get the values of this vector.
const float Vector::Get | ( | const unsigned int | uIndex | ) | const [inline] |
Get a special values of this vector.
const float Vector::GetX | ( | ) | const [inline] |
Get the X-value of this vector.
const float Vector::GetY | ( | ) | const [inline] |
Get the Y-value of this vector.
const float Vector::GetZ | ( | ) | const [inline] |
Get the Z-value of this vector.
const float Vector::GetMagnitude | ( | ) | const [inline] |
Returns the Magnitude of this vectors.
const float Vector::GetSquaredMagnitude | ( | ) | const [inline] |
Returns the squared magnitude of this vectors.
const float Vector::GetDot | ( | const Vector & | vecOther | ) | const [inline] |
Returns the dot product of this vectors.
Returns the cross product of this vectors.
const Vector Vector::GetNormalized | ( | ) | const [inline] |
Returns the normalized vector.
const Vector Vector::GetInverse | ( | ) | const [inline] |
Returns the inverse vector.
void Vector::normalize | ( | ) | [inline] |
Normalizes the vector.
void Vector::invert | ( | ) | [inline] |
Inverts the vector.
const bool Vector::operator== | ( | const Vector & | vecOther | ) | const [inline] |
Operator for boolean "is equal to".
const bool Vector::operator!= | ( | const Vector & | vecOther | ) | const [inline] |
Operator for boolean "is not equal" .
float& Vector::operator[] | ( | const unsigned int | uIndex | ) | [inline] |
Operator to get the value (uIndex) of the vector.
const float Vector::operator[] | ( | const unsigned int | uIndex | ) | const [inline] |
Operator to get the value (uIndex) of the vector.
Addition of the vector with another
Subtraction of the vector with another
Multiplication of the vector with another
const Vector& Vector::operator *= | ( | const float & | fOther | ) | [inline] |
Multiplication of the vector with an array of float variables.
Division of the vector with an another.
const Vector& Vector::operator/= | ( | const float & | fOther | ) | [inline] |
Division of the vector with an array of float variables.
Addition of the vector with another.
Subtraction of the vector with another.
Multiplication of the vector with another.
const Vector Vector::operator * | ( | const float & | fOther | ) | const [inline] |
Multiplication of the vector with an array of float variables.
Division of the vector with another.
const Vector Vector::operator/ | ( | const float & | fOther | ) | const [inline] |
Division of the vector with an array of float variables.
const Vector Vector::operator- | ( | ) | const [inline] |
Subtraction of the vector with an array of float variables.