#include <vhdVector4.h>
Public Member Functions | |
| vhdVector4 () | |
| vhdVector4 (vhtReal fX, vhtReal fY, vhtReal fZ, vhtReal fW) | |
| vhdVector4 (vhtReal afCoordinate[4]) | |
| vhdVector4 (int afCoordinate[4]) | |
| vhdVector4 (const vhtReal *const r) | |
| vhdVector4 (const vhdVector4 &rkVector) | |
| vhtReal | get (unsigned int index) const |
| void | set (unsigned int index, vhtReal value) |
| vhtReal | operator[] (unsigned int index) const |
| operator vhtReal * () | |
| operator const vhtReal * () const | |
| vhdVector4 | operator+ (const vhdVector4 &rkVector) const |
| vhdVector4 | operator- (const vhdVector4 &rkVector) const |
| vhdVector4 | operator * (vhtReal fScalar) const |
| vhdVector4 | operator * (const vhdVector4 &rhs) const |
| vhdVector4 | operator/ (vhtReal fScalar) const |
| vhdVector4 | operator/ (const vhdVector4 &rhs) const |
| vhdVector4 | operator- () const |
| void | operator+= (const vhdVector4 &rkVector) |
| void | operator-= (const vhdVector4 &rkVector) |
| void | operator *= (const vhdVector4 &rkVector) |
| void | operator/= (const vhdVector4 &rkVector) |
| void | operator *= (vhtReal fScalar) |
| void | operator/= (vhtReal fScalar) |
| vhdVector4 & | operator= (const vhdVector4 &rkVector) |
| bool | operator== (const vhdVector4 &rkVector) const |
| bool | operator!= (const vhdVector4 &rkVector) const |
| vhdVector4 & | operator= (const vhdVector3 &rhs) |
| vhtReal | length () const |
| vhtReal | squaredLength () const |
| vhtReal | dotProduct (const vhdVector4 &vec) const |
| vhdVector4 & | normalise () |
Public Attributes | |
| vhtReal | x |
| vhtReal | y |
| vhtReal | z |
| vhtReal | w |
Friends | |
| vhdVector4 | operator * (vhtReal fScalar, const vhdVector4 &rkVector) |
| std::ostream & | operator<< (std::ostream &o, const vhdVector4 &v) |
| vhdVector4::vhdVector4 | ( | ) | [inline] |
| vhdVector4::vhdVector4 | ( | vhtReal | afCoordinate[4] | ) | [inline] |
| vhdVector4::vhdVector4 | ( | int | afCoordinate[4] | ) | [inline] |
| vhdVector4::vhdVector4 | ( | const vhtReal *const | r | ) | [inline] |
| vhdVector4::vhdVector4 | ( | const vhdVector4 & | rkVector | ) | [inline] |
| vhtReal vhdVector4::get | ( | unsigned int | index | ) | const [inline] |
| void vhdVector4::set | ( | unsigned int | index, | |
| vhtReal | value | |||
| ) | [inline] |
| vhtReal vhdVector4::operator[] | ( | unsigned int | index | ) | const [inline] |
| vhdVector4::operator vhtReal * | ( | ) | [inline] |
Cast operator for vhtReal*.
| vhdVector4::operator const vhtReal * | ( | ) | const [inline] |
Cast operator for const vhtReal*.
| vhdVector4 vhdVector4::operator+ | ( | const vhdVector4 & | rkVector | ) | const [inline] |
| vhdVector4 vhdVector4::operator- | ( | const vhdVector4 & | rkVector | ) | const [inline] |
| vhdVector4 vhdVector4::operator * | ( | vhtReal | fScalar | ) | const [inline] |
| vhdVector4 vhdVector4::operator * | ( | const vhdVector4 & | rhs | ) | const [inline] |
| vhdVector4 vhdVector4::operator/ | ( | vhtReal | fScalar | ) | const [inline] |
| vhdVector4 vhdVector4::operator/ | ( | const vhdVector4 & | rhs | ) | const [inline] |
Returns the result of dividing this vector by the given vector.
| vhdVector4 vhdVector4::operator- | ( | ) | const [inline] |
| void vhdVector4::operator+= | ( | const vhdVector4 & | rkVector | ) | [inline] |
| void vhdVector4::operator-= | ( | const vhdVector4 & | rkVector | ) | [inline] |
| void vhdVector4::operator *= | ( | const vhdVector4 & | rkVector | ) | [inline] |
| void vhdVector4::operator/= | ( | const vhdVector4 & | rkVector | ) | [inline] |
| void vhdVector4::operator *= | ( | vhtReal | fScalar | ) | [inline] |
| void vhdVector4::operator/= | ( | vhtReal | fScalar | ) | [inline] |
| vhdVector4 & vhdVector4::operator= | ( | const vhdVector4 & | rkVector | ) | [inline] |
Assigns the value of the other vector.
| rkVector | The other vector |
| bool vhdVector4::operator== | ( | const vhdVector4 & | rkVector | ) | const [inline] |
| bool vhdVector4::operator!= | ( | const vhdVector4 & | rkVector | ) | const [inline] |
| vhdVector4 & vhdVector4::operator= | ( | const vhdVector3 & | rhs | ) | [inline] |
| vhtReal vhdVector4::length | ( | ) | const [inline] |
Returns the length (magnitude) of the vector.
| vhtReal vhdVector4::squaredLength | ( | ) | const [inline] |
Returns the square of the length(magnitude) of the vector.
| vhtReal vhdVector4::dotProduct | ( | const vhdVector4 & | vec | ) | const [inline] |
Calculates the dot (scalar) product of this vector with another.
| vec | Vector with which to calculate the dot product (together with this one). |
| vhdVector4 & vhdVector4::normalise | ( | ) | [inline] |
Normalises the vector.
| vhdVector4 operator * | ( | vhtReal | fScalar, | |
| const vhdVector4 & | rkVector | |||
| ) | [friend] |
| std::ostream& operator<< | ( | std::ostream & | o, | |
| const vhdVector4 & | v | |||
| ) | [friend] |
1.5.1-p1