c4d_quaternion.h File Reference

Classes

class  Quaternion
 

Functions

Quaternion QSlerp (const Quaternion &q1, const Quaternion &q2, Float64 alfa)
 
Quaternion QSquad (const Quaternion &q0, const Quaternion &q1, const Quaternion &q2, const Quaternion &q3, Float64 alfa)
 
Quaternion QBlend (const Quaternion &q1, const Quaternion &q2, const Float64 r)
 
Quaternion QSpline (const Quaternion &qn_m1, const Quaternion &qn, const Quaternion &qn_p1, const Quaternion &qn_p2, Float64 t)
 
Quaternion QSmoothCubic (const Quaternion &qn_m1, const Quaternion &qn, const Quaternion &qn_p1, Float64 t)
 
Quaternion QNorm (const Quaternion &q)
 
Quaternion QMul (const Quaternion &q1, const Quaternion &q2)
 
Quaternion QMul (const Quaternion &q, Float64 s)
 
Quaternion QAdd (const Quaternion &q1, const Quaternion &q2)
 
Quaternion QSub (const Quaternion &q1, const Quaternion &q2)
 
Quaternion QInvert (const Quaternion &q)
 
Float64 QDot (const Quaternion &q1, const Quaternion &q2)
 
Quaternion QDeriv (const Quaternion &q, const Vector64 &w)
 
Quaternion QLogN (const Quaternion &q)
 
Quaternion QExpQ (const Quaternion &q)
 
Vector64 Matrix64ToHPB (const Matrix64 &m)
 
Matrix64 LHPBToMatrix (const Vector64 &w)
 

Function Documentation

◆ Matrix64ToHPB()

Vector64 Matrix64ToHPB ( const Matrix64 m)

Calculates Euler angles from matrix m.

Parameters
[in]mThe rotation matrix.
Returns
The HPB.

◆ LHPBToMatrix()

Matrix64 LHPBToMatrix ( const Vector64 w)

A double precision version of HPBToMatrix().

Parameters
[in]wThe HPB.
Returns
The matrix calculated from the HPB rotations in w.