#include <Vector3D.h>
Public Member Functions | |
void | lerp (const Vector3D &v1, const Vector3D &v2, float f) |
float | magnitude () const |
float | operator* (const Vector3D &vVector) const |
Vector3D | operator* (const float num) const |
Vector3D & | operator*= (const float num) |
Vector3D | operator+ (const Vector3D &vVector) const |
Vector3D | operator+ () const |
Vector3D & | operator+= (const Vector3D &vVector) |
Vector3D | operator- (const Vector3D &vVector) const |
Vector3D | operator- () const |
Vector3D & | operator-= (const Vector3D &vVector) |
Vector3D | operator/ (float num) const |
Vector3D & | operator/= (const float num) |
bool | operator< (const Vector3D &vVec) const |
bool | operator== (const Vector3D &v1) const |
bool | operator> (const Vector3D &vVec) const |
float | operator[] (const unsigned int i) const |
float & | operator[] (const unsigned int i) |
Vector3D | operator^ (const Vector3D &vVector2) const |
void | set (float fx, float fy, float fz) |
std::string | toString (int precision=3, std::string name="") |
Vector3D () | |
Vector3D (float x, float y, float z) | |
Vector3D (const CVec2 &v, float z) | |
Vector3D (const Vector3D &v2) | |
float | x () const |
float | y () const |
float | z () const |
Private Attributes | |
float | m_X |
float | m_Y |
float | m_Z |
Definition at line 18 of file Vector3D.h.
Vector3D::Vector3D | ( | float | x, |
float | y, | ||
float | z | ||
) |
Vector3D::Vector3D | ( | const CVec2 & | v, |
float | z | ||
) |
Vector3D::Vector3D | ( | const Vector3D & | v2 | ) |
void Vector3D::lerp | ( | const Vector3D & | v1, |
const Vector3D & | v2, | ||
float | f | ||
) |
float Vector3D::magnitude | ( | ) | const |
float Vector3D::operator* | ( | const Vector3D & | vVector | ) | const |
Vector3D Vector3D::operator* | ( | const float | num | ) | const |
Vector3D& Vector3D::operator*= | ( | const float | num | ) |
Vector3D Vector3D::operator+ | ( | ) | const |
Vector3D Vector3D::operator- | ( | ) | const |
Vector3D Vector3D::operator/ | ( | float | num | ) | const |
Vector3D& Vector3D::operator/= | ( | const float | num | ) |
bool Vector3D::operator< | ( | const Vector3D & | vVec | ) | const |
bool Vector3D::operator== | ( | const Vector3D & | v1 | ) | const |
bool Vector3D::operator> | ( | const Vector3D & | vVec | ) | const |
float Vector3D::operator[] | ( | const unsigned int | i | ) | const |
float& Vector3D::operator[] | ( | const unsigned int | i | ) |
void Vector3D::set | ( | float | fx, |
float | fy, | ||
float | fz | ||
) |
std::string Vector3D::toString | ( | int | precision = 3 , |
std::string | name = "" |
||
) |
float Vector3D::x | ( | ) | const [inline] |
Definition at line 57 of file Vector3D.h.
float Vector3D::y | ( | ) | const [inline] |
Definition at line 61 of file Vector3D.h.
float Vector3D::z | ( | ) | const [inline] |
Definition at line 65 of file Vector3D.h.
float Vector3D::m_X [private] |
Definition at line 76 of file Vector3D.h.
float Vector3D::m_Y [private] |
Definition at line 76 of file Vector3D.h.
float Vector3D::m_Z [private] |
Definition at line 76 of file Vector3D.h.