getMaxScaleOnAxis method

double getMaxScaleOnAxis()

Implementation

double getMaxScaleOnAxis() {
  final te = storage;

  double scaleXSq = te[0] * te[0] + te[1] * te[1] + te[2] * te[2];
  double scaleYSq = te[4] * te[4] + te[5] * te[5] + te[6] * te[6];
  double scaleZSq = te[8] * te[8] + te[9] * te[9] + te[10] * te[10];

  return math.sqrt(math.max(math.max(scaleXSq, scaleYSq), scaleZSq));
}