ScummVM API documentation
hpl::cQuaternion Class Reference

Public Member Functions

 cQuaternion (float afAngle, const cVector3< float > &avAxis)
 
constexpr cQuaternion (float afW, float afX, float afY, float afZ)
 
void Normalise ()
 
void ToRotationMatrix (cMatrix< float > &a_mtxDest) const
 
void FromRotationMatrix (const cMatrix< float > &a_mtxRot)
 
void FromAngleAxis (float afAngle, const cVector3< float > &avAxis)
 
cQuaternion operator+ (const cQuaternion &aqB) const
 
cQuaternion operator- (const cQuaternion &aqB) const
 
cQuaternion operator* (const cQuaternion &aqB) const
 
cQuaternion operator* (float afScalar) const
 

Public Attributes

cVector3< float > v
 
float w
 

Static Public Attributes

static const cQuaternion Identity
 

Member Function Documentation

◆ FromAngleAxis()

void hpl::cQuaternion::FromAngleAxis ( float  afAngle,
const cVector3< float > &  avAxis 
)

Set the quaternion from and angle and axis.

Parameters
afAngle
&avAxisMUST be unit length!

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