getMaxScaleOnAxis method

double getMaxScaleOnAxis()

Implementation

double getMaxScaleOnAxis() {
  var te = elements;

  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));
}