PAL Matrix Operations: Geometric Matrix Rotation

Rotation of matrix-stored 3D vectors by roll, pitch, and yaw angles.

PAL Matrix Operations: Geometric Matrix Rotation — 1 functions

KiratPalRotateMatrixByRollPitchYaw

Signature
void KiratPalRotateMatrixByRollPitchYaw( T_FLOAT** ppfIn, T_FLOAT** ppfOut, T_INT iDim, T_FLOAT fRoll, T_FLOAT fPitch, T_FLOAT fYaw);
Description
Rotates the rows/3D vectors of a matrix using a roll-pitch-yaw rotation.
Mathematical operation
\(v_i\' = R_z(\psi)R_y(\theta)R_x(\phi)v_i\) for each 3-D row/vector represented by the matrix.
Supported implementations
  • ANSI C - portable reference implementation