set method

Euler set(
  1. double x,
  2. double y,
  3. double z, [
  4. RotationOrders? order,
])

x - the angle of the x axis in radians.

y - the angle of the y axis in radians.

z - the angle of the z axis in radians.

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

Sets the angles of this euler transform and optionally the order.

Implementation

Euler set(double x, double y, double z, [RotationOrders? order]) {
  _x = x;
  _y = y;
  _z = z;
  _order = order ?? _order;

  onChangeCallback();

  return this;
}