Skip to main content

@novorender/api / PitchRollYawOrientation

Class: PitchRollYawOrientation

Defined in: @novorender/src/web_app/controller/orientation.ts:14

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

See

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

Accessors

pitch

Get Signature

get pitch(): number;

Defined in: @novorender/src/web_app/controller/orientation.ts:32

Pitch angle, in degrees.

Returns

number

Set Signature

set pitch(value): void;

Defined in: @novorender/src/web_app/controller/orientation.ts:35

Parameters
ParameterType
valuenumber
Returns

void


roll

Get Signature

get roll(): number;

Defined in: @novorender/src/web_app/controller/orientation.ts:44

Roll angle, in degrees.

Returns

number

Set Signature

set roll(value): void;

Defined in: @novorender/src/web_app/controller/orientation.ts:47

Parameters
ParameterType
valuenumber
Returns

void


rotation

Get Signature

get rotation(): ReadonlyQuat;

Defined in: @novorender/src/web_app/controller/orientation.ts:77

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


yaw

Get Signature

get yaw(): number;

Defined in: @novorender/src/web_app/controller/orientation.ts:57

Yaw angle, in degrees.

Returns

number

Set Signature

set yaw(value): void;

Defined in: @novorender/src/web_app/controller/orientation.ts:60

Parameters
ParameterType
valuenumber
Returns

void

Constructors

Constructor

new PitchRollYawOrientation(
pitch,
yaw,
roll): PitchRollYawOrientation;

Defined in: @novorender/src/web_app/controller/orientation.ts:25

Parameters

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

Returns

PitchRollYawOrientation

Methods

decomposeRotation()

decomposeRotation(rot): void;

Defined in: @novorender/src/web_app/controller/orientation.ts:87

Set pitch, roll and yaw angles from rotation quaternion.

Parameters

ParameterTypeDescription
rotReadonlyQuatThe rotation quaternion to decompose into angles.

Returns

void