setRotation method

void setRotation({
  1. double? x,
  2. double? y,
  3. double? z,
})

Sets absolute rotation angles in degrees, normalized to 0-360 range.

Implementation

void setRotation({double? x, double? y, double? z}) {
  update(
    rotationX: x != null ? _normalizeAngle(x) : null,
    rotationY: y != null ? _normalizeAngle(y) : null,
    rotationZ: z != null ? _normalizeAngle(z) : null,
  );
}