@novorender/api / decomposeRotation
Function: decomposeRotation()
function decomposeRotation(rot): object;
Defined in: @novorender/src/web_app/controller/orientation.ts:133
Decompose rotation quaternioan into roll, pitch and yaw angles.
Parameters
Parameter | Type | Description |
---|---|---|
rot | ReadonlyQuat | Rotation quaternion. |
Returns
Rotation angles in radians.
pitch
pitch: number;
The pitch angle, in radians.
roll
roll: number;
The roll angle, in radians.
yaw
yaw: number;
The yaw angle, in radians.