#include <vhdVector2.h>
Public Member Functions | |
vhdVector2 () | |
vhdVector2 (vhtReal fX, vhtReal fY) | |
vhdVector2 (vhtReal afCoordinate[2]) | |
vhdVector2 (const vhdVector2 &rkVector) | |
vhdVector2 & | operator= (const vhdVector2 &rkVector) |
bool | operator== (const vhdVector2 &rkVector) const |
bool | operator!= (const vhdVector2 &rkVector) const |
bool | operator< (const vhdVector2 &rkVector) const |
bool | operator<= (const vhdVector2 &rkVector) const |
bool | operator> (const vhdVector2 &rkVector) const |
bool | operator>= (const vhdVector2 &rkVector) const |
vhdVector2 | operator+ (const vhdVector2 &rkVector) const |
vhdVector2 | operator- (const vhdVector2 &rkVector) const |
vhdVector2 | operator * (vhtReal fScalar) const |
vhdVector2 | operator/ (vhtReal fScalar) const |
vhdVector2 | operator- () const |
vhdVector2 & | operator+= (const vhdVector2 &rkVector) |
vhdVector2 & | operator-= (const vhdVector2 &rkVector) |
vhdVector2 & | operator *= (vhtReal fScalar) |
vhdVector2 & | operator/= (vhtReal fScalar) |
vhtReal | length () const |
vhtReal | dot (const vhdVector2 &rkVector) const |
vhtReal | unitize (vhtReal fTolerance=(vhtReal) 1e-06) |
vhdVector2 | cross () const |
vhdVector2 | unitCross () const |
vhtReal | squaredLength () const |
vhtReal & | operator[] (int i) const |
operator vhtReal * () | |
Static Public Member Functions | |
static void | orthonormalize (vhdVector2 akVector[]) |
Public Attributes | |
vhtReal | x |
vhtReal | y |
Static Public Attributes | |
static const vhdVector2 | ZERO |
static const vhdVector2 | UNIT_X |
static const vhdVector2 | UNIT_Y |
static vhtReal | FUZZ |
Friends | |
vhdVector2 | operator * (vhtReal fScalar, const vhdVector2 &rkVector) |
vhdVector2::vhdVector2 | ( | ) | [inline] |
vhdVector2::vhdVector2 | ( | vhtReal | afCoordinate[2] | ) |
vhdVector2::vhdVector2 | ( | const vhdVector2 & | rkVector | ) |
vhdVector2 & vhdVector2::operator= | ( | const vhdVector2 & | rkVector | ) |
bool vhdVector2::operator== | ( | const vhdVector2 & | rkVector | ) | const |
bool vhdVector2::operator!= | ( | const vhdVector2 & | rkVector | ) | const |
bool vhdVector2::operator< | ( | const vhdVector2 & | rkVector | ) | const |
bool vhdVector2::operator<= | ( | const vhdVector2 & | rkVector | ) | const |
bool vhdVector2::operator> | ( | const vhdVector2 & | rkVector | ) | const |
bool vhdVector2::operator>= | ( | const vhdVector2 & | rkVector | ) | const |
vhdVector2 vhdVector2::operator+ | ( | const vhdVector2 & | rkVector | ) | const |
vhdVector2 vhdVector2::operator- | ( | const vhdVector2 & | rkVector | ) | const |
vhdVector2 vhdVector2::operator * | ( | vhtReal | fScalar | ) | const |
vhdVector2 vhdVector2::operator/ | ( | vhtReal | fScalar | ) | const |
vhdVector2 vhdVector2::operator- | ( | ) | const |
vhdVector2 & vhdVector2::operator+= | ( | const vhdVector2 & | rkVector | ) |
vhdVector2 & vhdVector2::operator-= | ( | const vhdVector2 & | rkVector | ) |
vhdVector2 & vhdVector2::operator *= | ( | vhtReal | fScalar | ) |
vhdVector2 & vhdVector2::operator/= | ( | vhtReal | fScalar | ) |
vhtReal vhdVector2::length | ( | ) | const |
vhtReal vhdVector2::dot | ( | const vhdVector2 & | rkVector | ) | const |
vhdVector2 vhdVector2::cross | ( | ) | const |
vhdVector2 vhdVector2::unitCross | ( | ) | const |
void vhdVector2::orthonormalize | ( | vhdVector2 | akVector[] | ) | [static] |
vhtReal vhdVector2::squaredLength | ( | ) | const [inline] |
vhtReal& vhdVector2::operator[] | ( | int | i | ) | const [inline] |
vhdVector2::operator vhtReal * | ( | ) | [inline] |
vhdVector2 operator * | ( | vhtReal | fScalar, | |
const vhdVector2 & | rkVector | |||
) | [friend] |
const vhdVector2 vhdVector2::ZERO [static] |
const vhdVector2 vhdVector2::UNIT_X [static] |
const vhdVector2 vhdVector2::UNIT_Y [static] |
vhtReal vhdVector2::FUZZ [static] |