Pyrogenesis trunk
Public Member Functions | Public Attributes | List of all members
CQuaternion Class Reference

#include <Quaternion.h>

Collaboration diagram for CQuaternion:
Collaboration graph
[legend]

Public Member Functions

 CQuaternion ()
 
 CQuaternion (float x, float y, float z, float w)
 
CQuaternion operator+ (const CQuaternion &quat) const
 
CQuaternionoperator+= (const CQuaternion &quat)
 
CQuaternion operator- (const CQuaternion &quat) const
 
CQuaternionoperator-= (const CQuaternion &quat)
 
CQuaternion operator* (const CQuaternion &quat) const
 
CQuaternionoperator*= (const CQuaternion &quat)
 
CQuaternion operator* (float factor) const
 
float Dot (const CQuaternion &quat) const
 
void FromEulerAngles (float x, float y, float z)
 
CVector3D ToEulerAngles ()
 
CMatrix3D ToMatrix () const
 
void ToMatrix (CMatrix3D &result) const
 
void Slerp (const CQuaternion &from, const CQuaternion &to, float ratio)
 
void Nlerp (const CQuaternion &from, const CQuaternion &to, float ratio)
 
void FromAxisAngle (const CVector3D &axis, float angle)
 
void ToAxisAngle (CVector3D &axis, float &angle)
 
void Normalize ()
 
CVector3D Rotate (const CVector3D &vec) const
 
CQuaternion GetInverse () const
 

Public Attributes

CVector3D m_V
 
float m_W
 

Constructor & Destructor Documentation

◆ CQuaternion() [1/2]

CQuaternion::CQuaternion ( )

◆ CQuaternion() [2/2]

CQuaternion::CQuaternion ( float  x,
float  y,
float  z,
float  w 
)

Member Function Documentation

◆ Dot()

float CQuaternion::Dot ( const CQuaternion quat) const

◆ FromAxisAngle()

void CQuaternion::FromAxisAngle ( const CVector3D axis,
float  angle 
)

◆ FromEulerAngles()

void CQuaternion::FromEulerAngles ( float  x,
float  y,
float  z 
)

◆ GetInverse()

CQuaternion CQuaternion::GetInverse ( ) const

◆ Nlerp()

void CQuaternion::Nlerp ( const CQuaternion from,
const CQuaternion to,
float  ratio 
)

◆ Normalize()

void CQuaternion::Normalize ( )

◆ operator*() [1/2]

CQuaternion CQuaternion::operator* ( const CQuaternion quat) const

◆ operator*() [2/2]

CQuaternion CQuaternion::operator* ( float  factor) const

◆ operator*=()

CQuaternion & CQuaternion::operator*= ( const CQuaternion quat)

◆ operator+()

CQuaternion CQuaternion::operator+ ( const CQuaternion quat) const

◆ operator+=()

CQuaternion & CQuaternion::operator+= ( const CQuaternion quat)

◆ operator-()

CQuaternion CQuaternion::operator- ( const CQuaternion quat) const

◆ operator-=()

CQuaternion & CQuaternion::operator-= ( const CQuaternion quat)

◆ Rotate()

CVector3D CQuaternion::Rotate ( const CVector3D vec) const

◆ Slerp()

void CQuaternion::Slerp ( const CQuaternion from,
const CQuaternion to,
float  ratio 
)

◆ ToAxisAngle()

void CQuaternion::ToAxisAngle ( CVector3D axis,
float &  angle 
)

◆ ToEulerAngles()

CVector3D CQuaternion::ToEulerAngles ( )

◆ ToMatrix() [1/2]

CMatrix3D CQuaternion::ToMatrix ( ) const

◆ ToMatrix() [2/2]

void CQuaternion::ToMatrix ( CMatrix3D result) const

Member Data Documentation

◆ m_V

CVector3D CQuaternion::m_V

◆ m_W

float CQuaternion::m_W

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