Skip to main content

@novorender/web_app / PitchRollYawOrientation

Class: PitchRollYawOrientation

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

See

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

Accessors

pitch

get pitch(): number

Pitch angle, in degrees.

set pitch(value): void

Parameters

ParameterType
valuenumber

Returns

number

Defined in

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


roll

get roll(): number

Roll angle, in degrees.

set roll(value): void

Parameters

ParameterType
valuenumber

Returns

number

Defined in

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


rotation

get rotation(): ReadonlyQuat

Rotation expressed as a quaternion.

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

Returns

ReadonlyQuat

Defined in

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


yaw

get yaw(): number

Yaw angle, in degrees.

set yaw(value): void

Parameters

ParameterType
valuenumber

Returns

number

Defined in

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

Constructors

new PitchRollYawOrientation()

new PitchRollYawOrientation(
pitch,
yaw,
roll): PitchRollYawOrientation

Parameters

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

Returns

PitchRollYawOrientation

Defined in

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

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

Defined in

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