Function VectorMath.QuaternionAngle

QuaternionAngle (quaternion rot)

Number of radians that this quaternion rotates around its axis of rotation.

Public Static
float QuaternionAngle (

quaternion

rot

)

Number of radians that this quaternion rotates around its axis of rotation.

Will be in the range [-PI, PI].

Note

A quaternion of q and -q represent the same rotation, but their axis of rotation point in opposite directions, so the angle will be different.