Euler constructor

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

x - (optional) the angle of the x axis in radians. Default is 0.

y - (optional) the angle of the y axis in radians. Default is 0.

z - (optional) the angle of the z axis in radians. Default is 0.

order - (optional) a enum representing the order that the rotations are applied, defaults to RotationOrders.xyz.

Implementation

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