resetToZScale method

void resetToZScale()

Implementation

void resetToZScale() {
  final scaleX = getScaleOnXAxis();
  final scaleY = getScaleOnYAxis();
  final scaleZ = getScaleOnZAxis();
  if (scaleX != scaleZ) {
    scale(scaleX / scaleZ, 1.0, 1.0);
  }
  if (scaleY != scaleZ) {
    scale(1.0, scaleY / scaleZ, 1.0);
  }
}