Constructor
new Euler(xopt, yopt, zopt, orderopt)
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
x | number | <optional> | 0 | |
y | number | <optional> | 0 | |
z | number | <optional> | 0 | |
order | string | <optional> | Euler.DefaultOrder |
Members
order :string
- string
order :string
- string
x :number
- number
x :number
- number
y :number
- number
y :number
- number
z :number
- number
z :number
- number
(static, readonly) DefaultOrder
The default order in which to apply rotations.
(static, readonly) RotationOrders
The order in which to apply rotations.
Methods
clone() → {Euler}
Returns a new Euler with the same parameters as this one.
- Type:
- Euler
copy(euler) → {Euler}
Copies value of euler to this euler.
Name | Type | Description |
---|---|---|
euler | Euler |
- Type:
- Euler
onChange(callback) → {Euler}
Name | Type | Description |
---|---|---|
callback | function | When the Euler angle value changes, the callback method is triggered |
- Type:
- Euler
set(x, y, z, order) → {Euler}
Name | Type | Default | Description |
---|---|---|---|
x | number | 0 | the angle of the x axis in radians. |
y | number | 0 | the angle of the y axis in radians. |
z | number | 0 | the angle of the z axis in radians. |
order | string | (optional) a string representing the order that the rotations are applied. |
- Type:
- Euler
setFromQuaternion(q, order, updateopt) → {Euler}
Sets the angles of this euler transform from a normalized quaternion based on the orientation specified by order.
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
q | Quaternion | a normalized quaternion. | ||
order | string | (optional) a string representing the order that the rotations are applied. | ||
update | boolean | <optional> | true | Whether to notify Euler angle has changed |
- Type:
- Euler
setFromRotationMatrix(m, order, updateopt) → {Euler}
Sets the angles of this euler transform from a pure rotation matrix based on the orientation specified by order.
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
m | Matrix4 | a Matrix4 of which the upper 3x3 of matrix is a pure rotation matrix | ||
order | string | (optional) a string representing the order that the rotations are applied. | ||
update | boolean | <optional> | true | Whether to notify Euler angle has changed |
- Type:
- Euler