@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
Parameter | Type |
---|---|
value | number |
Returns
number
Defined in
@novorender/web_app/controller/orientation.ts:26
roll
get roll(): number
Roll angle, in degrees.
set roll(value): void
Parameters
Parameter | Type |
---|---|
value | number |
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
Parameter | Type |
---|---|
value | number |
Returns
number
Defined in
@novorender/web_app/controller/orientation.ts:51
Constructors
new PitchRollYawOrientation()
new PitchRollYawOrientation(
pitch,
yaw,
roll): PitchRollYawOrientation
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
pitch | number | 0 | Pitch angle, in degrees. |
yaw | number | 0 | Yaw angle, in degrees. |
roll | number | 0 | Roll angle, in degrees. |
Returns
Defined in
@novorender/web_app/controller/orientation.ts:19
Methods
decomposeRotation()
decomposeRotation(rot): void
Set pitch, roll and yaw angles from rotation quaternion.
Parameters
Parameter | Type | Description |
---|---|---|
rot | ReadonlyQuat | The rotation quaternion to decompose into angles. |
Returns
void