Euler
Euler angles.
Static Member Summary
| Static Public Members | ||
| public static get |
The default rotation order. |
|
Constructor Summary
| Public Constructor | ||
| public |
constructor(x: Number, y: Number, z: Number) Constructs a new set of Euler angles. |
|
Member Summary
| Public Members | ||
| public |
The rotation order. |
|
| public |
The rotation around the X-axis. |
|
| public |
The rotation around the Y-axis. |
|
| public |
The rotation around the Z-axis. |
|
Method Summary
| Public Methods | ||
| public |
Clones this set of Euler angles. |
|
| public |
Copies the values of another set of Euler angles. |
|
| public |
Checks if this set of Euler angles equals the given one. |
|
| public |
Copies angles and the rotation order from an array. |
|
| public |
reorder(newOrder: RotationOrder): Euler Reorder the rotation angles. |
|
| public |
Sets the Euler angles and rotation order. |
|
| public |
setFromQuaternion(q: Matrix4, order: RotationOrder): Euler Copies the rotation from a given quaternion. |
|
| public |
setFromRotationMatrix(m: Matrix4, order: RotationOrder): Euler Copies the rotation from a given matrix. |
|
| public |
setFromVector3(v: Matrix4, order: RotationOrder): Euler Copies the rotation from a given vector. |
|
| public |
Stores this set of Euler angles and the rotation order in an array. |
|
| public |
Stores this set of Euler angles in a vector. |
|
Static Public Members
Public Constructors
Public Members
Public Methods
public copy(e: Euler): Euler source
Copies the values of another set of Euler angles.
Params:
| Name | Type | Attribute | Description |
| e | Euler | A set of Euler angles. |
public equals(e: Euler): Boolean source
Checks if this set of Euler angles equals the given one.
Params:
| Name | Type | Attribute | Description |
| e | Euler | Euler angles. |
public fromArray(array: Number[], offset: Number): Euler source
Copies angles and the rotation order from an array.
public reorder(newOrder: RotationOrder): Euler source
Reorder the rotation angles.
WARNING: this operation discards revolution information!
Params:
| Name | Type | Attribute | Description |
| newOrder | RotationOrder | The new rotation order. |
public set(x: Number, y: Number, z: Number, order: Number): Euler source
Sets the Euler angles and rotation order.
public setFromQuaternion(q: Matrix4, order: RotationOrder): Euler source
Copies the rotation from a given quaternion.
Params:
| Name | Type | Attribute | Description |
| q | Matrix4 | A quaternion. |
|
| order | RotationOrder |
|
An override rotation order. |
public setFromRotationMatrix(m: Matrix4, order: RotationOrder): Euler source
Copies the rotation from a given matrix.
Params:
| Name | Type | Attribute | Description |
| m | Matrix4 | A rotation matrix. The upper 3x3 is assumed to be a pure rotation matrix (i.e. unscaled). |
|
| order | RotationOrder |
|
An override rotation order. |
public setFromVector3(v: Matrix4, order: RotationOrder): Euler source
Copies the rotation from a given vector.
Params:
| Name | Type | Attribute | Description |
| v | Matrix4 | A vector. |
|
| order | RotationOrder |
|
A rotation order. |
