setFromVector3 method

Euler setFromVector3(
  1. Vector3 v, [
  2. RotationOrders? order
])

v - Vector3.

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

Set the x, y and z, and optionally update the order.

Implementation

Euler setFromVector3(Vector3 v, [RotationOrders? order]) {
  return set(v.x, v.y, v.z, order ?? _order);
}