ProtoZed
awesome branch
A simple but powerful game framework
|
Public Member Functions | |
Quaternion (float x=0.f, float y=0.f, float z=0.f, float w=1.f) | |
Quaternion (const Vector3f &axis, Angle::Radians angle) | |
Quaternion (const Quaternion &other) | |
~Quaternion () | |
Quaternion & | operator= (const Quaternion &rhs) |
Quaternion & | operator+= (const Quaternion &rhs) |
Quaternion & | operator-= (const Quaternion &rhs) |
Quaternion & | operator*= (const Quaternion &rhs) |
Quaternion & | operator*= (float scalar) |
const Quaternion | operator+ (const Quaternion &other) const |
const Quaternion | operator- (const Quaternion &other) const |
const Quaternion | operator* (const Quaternion &other) const |
const Quaternion | operator* (float scalar) const |
Vector3f | operator* (const Vector3f &v) const |
bool | operator== (const Quaternion &other) const |
bool | operator!= (const Quaternion &other) const |
void | Normalize () |
float | GetLength () const |
float | GetLengthSquared () const |
Quaternion | Inverse () const |
Public Attributes | |
float | x |
float | y |
float | z |
float | w |
PZ::Quaternion::Quaternion | ( | float | x = 0.f , |
float | y = 0.f , |
||
float | z = 0.f , |
||
float | w = 1.f |
||
) |
PZ::Quaternion::Quaternion | ( | const Vector3f & | axis, |
Angle::Radians | angle | ||
) |
PZ::Quaternion::Quaternion | ( | const Quaternion & | other | ) |
PZ::Quaternion::~Quaternion | ( | ) |
float PZ::Quaternion::GetLength | ( | ) | const |
float PZ::Quaternion::GetLengthSquared | ( | ) | const |
Quaternion PZ::Quaternion::Inverse | ( | ) | const |
void PZ::Quaternion::Normalize | ( | ) |
|
inline |
|
inline |
|
inline |
Quaternion& PZ::Quaternion::operator*= | ( | const Quaternion & | rhs | ) |
Quaternion& PZ::Quaternion::operator*= | ( | float | scalar | ) |
|
inline |
Quaternion& PZ::Quaternion::operator+= | ( | const Quaternion & | rhs | ) |
|
inline |
Quaternion& PZ::Quaternion::operator-= | ( | const Quaternion & | rhs | ) |
Quaternion& PZ::Quaternion::operator= | ( | const Quaternion & | rhs | ) |
bool PZ::Quaternion::operator== | ( | const Quaternion & | other | ) | const |
float PZ::Quaternion::w |
float PZ::Quaternion::x |
float PZ::Quaternion::y |
float PZ::Quaternion::z |