WLJS LogoWLJS Notebook

RollPitchYawAngles

RollPitchYawAngles[r] gives the roll-pitch-yaw angles {α, β, γ} corresponding to the rotation matrix r.

  • RollPitchYawAngles[r, {a, b, c}] gives the roll-pitch-yaw angles {α, β, γ} corresponding to rotation order {a, b, c}.

Examples

Get angles from rotation matrix:

RollPitchYawAngles[RotationMatrix[Pi/4, {0, 0, 1}]]

Specify rotation order:

RollPitchYawAngles[rotMatrix, {3, 2, 1}]

Please visit the official Wolfram Language Reference for more details.

On this page