Euler
new Euler(x?, y?, z?, order?)THREE equivalent: THREE.Euler
Euler angle rotation with configurable axis order. Synced with Quaternion on Node via onChange callbacks.
Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
x |
number |
Rotation around X axis in radians. |
y |
number |
Rotation around Y axis in radians. |
z |
number |
Rotation around Z axis in radians. |
order |
string |
Axis order: ‘XYZ’, ‘YXZ’, ‘ZXY’, ‘ZYX’, ‘YZX’, or ‘XZY’. Default ‘XYZ’. |
Methods
Section titled “Methods”| Method | Description |
|---|---|
set(x: number, y: number, z: number, order?: string): this |
Sets rotation angles and optionally the order. |
setFromQuaternion(q: Quaternion, order?: string): this |
Derives Euler angles from a quaternion. |
setFromRotationMatrix(m: Matrix4, order?: string): this |
Derives Euler angles from a rotation matrix. |
reorder(newOrder: string): this |
Changes the axis order, recomputing angles to preserve the same rotation. |
clone(): Euler |
Returns a new Euler with the same values. |