setFromQuaternion method

Euler setFromQuaternion(
  1. Quaternion q, [
  2. RotationOrders? order,
  3. bool update = false
])

q - a normalized quaternion.

order - (optional) a string representing the order that the rotations are applied.

Sets the angles of this euler transform from a normalized quaternion based on the orientation specified by order.

Implementation

Euler setFromQuaternion(Quaternion q, [RotationOrders? order, bool update = false]) {
  _matrix.makeRotationFromQuaternion(q);

  return setFromRotationMatrix(_matrix, order, update);
}