ProtoZed  awesome branch
A simple but powerful game framework
Public Member Functions | Public Attributes | List of all members
PZ::Quaternion Class Reference

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 ()
 
Quaternionoperator= (const Quaternion &rhs)
 
Quaternionoperator+= (const Quaternion &rhs)
 
Quaternionoperator-= (const Quaternion &rhs)
 
Quaternionoperator*= (const Quaternion &rhs)
 
Quaternionoperator*= (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
 

Constructor & Destructor Documentation

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 ( )

Member Function Documentation

float PZ::Quaternion::GetLength ( ) const
float PZ::Quaternion::GetLengthSquared ( ) const
Quaternion PZ::Quaternion::Inverse ( ) const
void PZ::Quaternion::Normalize ( )
bool PZ::Quaternion::operator!= ( const Quaternion other) const
inline
const Quaternion PZ::Quaternion::operator* ( const Quaternion other) const
inline
const Quaternion PZ::Quaternion::operator* ( float  scalar) const
inline
Vector3f PZ::Quaternion::operator* ( const Vector3f v) const
Quaternion& PZ::Quaternion::operator*= ( const Quaternion rhs)
Quaternion& PZ::Quaternion::operator*= ( float  scalar)
const Quaternion PZ::Quaternion::operator+ ( const Quaternion other) const
inline
Quaternion& PZ::Quaternion::operator+= ( const Quaternion rhs)
const Quaternion PZ::Quaternion::operator- ( const Quaternion other) const
inline
Quaternion& PZ::Quaternion::operator-= ( const Quaternion rhs)
Quaternion& PZ::Quaternion::operator= ( const Quaternion rhs)
bool PZ::Quaternion::operator== ( const Quaternion other) const

Member Data Documentation

float PZ::Quaternion::w
float PZ::Quaternion::x
float PZ::Quaternion::y
float PZ::Quaternion::z

The documentation for this class was generated from the following file: