rotateTo method

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

Implementation

void rotateTo({double? x, double? y, double? z}) {
  if (x != null) {
    rotationOffset =
        rotationOffset.copy(x: (x * transformFactors.rotationFactor));
  }
  if (y != null) {
    rotationOffset =
        rotationOffset.copy(y: (y * transformFactors.rotationFactor));
  }
  if (z != null) {
    rotationOffset =
        rotationOffset.copy(z: (z * transformFactors.rotationFactor));
  }
  _updateState();
}