rotateTo method
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();
}