Euler
A class representing Euler angles.
Euler angles describe a rotational transformation by rotating an object on its various axes in specified amounts per axis, and a specified axis order.
Iterating through an instance yields its components (x, y, z, order) in that order: three Doubles followed by an EulerOrder.
Instances are mutable and not thread-safe; confine an instance (and any object graph holding it) to a single thread, exactly as in three.js.
Reading x/y/z/order has no side effect. Writing any of them, or calling a mutating method, fires the registered onChange callback (see that method).
Properties
The order in which the axis rotations are applied. Assigning fires the onChange callback.
Functions
Resets the euler angle with a new order by creating a quaternion from this euler angle and then setting this euler angle with the quaternion and the new order.
Sets the angles of this Euler instance from a normalized quaternion q.
Sets the angles of this Euler instance from a pure rotation matrix m (the upper 3x3 of which must be an unscaled rotation).
Sets the angles of this Euler instance from the given vector v.
Writes the components of this Euler instance into array at offset, growing the list as needed, and returns it. The order is written as the fourth element (an EulerOrder).