Skip to main content

class.PitchRollYawOrientation

API > PitchRollYawOrientation

Class: PitchRollYawOrientation

A 3D rotation expressed as pitch, roll and yaw angles.

See

https://en.wikipedia.org/wiki/Aircraft_principal_axes

Constructors

constructor

new PitchRollYawOrientation( pitch = 0, yaw = 0, roll = 0): PitchRollYawOrientation

Parameters

ParameterTypeDefault valueDescription
pitchnumber0Pitch angle, in degrees.
yawnumber0Yaw angle, in degrees.
rollnumber0Roll angle, in degrees.

Returns

PitchRollYawOrientation

Source

@novorender/web_app/controller/orientation.ts:19

Accessors

pitch

get set pitch(): number

Pitch angle, in degrees.

Returns

number

Source

@novorender/web_app/controller/orientation.ts:26


roll

get set roll(): number

Roll angle, in degrees.

Returns

number

Source

@novorender/web_app/controller/orientation.ts:38


rotation

get rotation(): ReadonlyQuat

Rotation expressed as a quaternion.

Returns

ReadonlyQuat

Source

@novorender/web_app/controller/orientation.ts:71

Remarks

The rotation will return a new object if after pitch, roll or yaw angles have changed since last time this accessor was called. Othewise, it returns the previous, cached, object. This enables strict equality to determine when the rotation remains unchanged.

See

https://glmatrix.net/docs/module-quat.html


yaw

get set yaw(): number

Yaw angle, in degrees.

Returns

number

Source

@novorender/web_app/controller/orientation.ts:51

Methods

decomposeRotation

decomposeRotation(rot): void

Set pitch, roll and yaw angles from rotation quaternion.

Parameters

ParameterTypeDescription
rotReadonlyQuatThe rotation quaternion to decompose into angles.

Returns

void

Source

@novorender/web_app/controller/orientation.ts:81