getScaleOnZAxis method

double getScaleOnZAxis()

Returns the scale on the z-axis. The z-axis doesnt get changed by translation or rotation, so the scale on the z-axis is the original intended scale. This is useful for stretching effect on the x and y axis, which is applied to simulate for example a over-scroll effect.

Implementation

double getScaleOnZAxis() {
  Float64List m4storage = storage;
  final scaleZSq = m4storage[8] * m4storage[8] +
      m4storage[9] * m4storage[9] +
      m4storage[10] * m4storage[10];
  return math.sqrt(scaleZSq);
}