ScummVM API documentation
dgQuaternion Class Reference

Public Member Functions

 dgQuaternion (const dgMatrix &matrix)
 
 dgQuaternion (dgFloat32 q0, dgFloat32 q1, dgFloat32 q2, dgFloat32 q3)
 
 dgQuaternion (const dgVector &unit_Axis, dgFloat32 angle=dgFloat32(0.0f))
 
void Scale (dgFloat32 scale)
 
void Normalize ()
 
dgFloat32 DotProduct (const dgQuaternion &QB) const
 
dgQuaternion Inverse () const
 
dgQuaternion Slerp (const dgQuaternion &q1, dgFloat32 t) const
 
dgVector CalcAverageOmega (const dgQuaternion &q1, dgFloat32 dt) const
 
dgQuaternion operator* (const dgQuaternion &B) const
 
dgQuaternion operator+ (const dgQuaternion &B) const
 
dgQuaternion operator- (const dgQuaternion &B) const
 

Public Attributes

dgFloat32 m_q0
 
dgFloat32 m_q1
 
dgFloat32 m_q2
 
dgFloat32 m_q3
 

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