distanceToSquared method

double distanceToSquared (Vector4 arg)

Squared distance from this to arg

Implementation

double distanceToSquared(Vector4 arg) {
  final Float64List argStorage = arg._v4storage;
  final double dx = _v4storage[0] - argStorage[0];
  final double dy = _v4storage[1] - argStorage[1];
  final double dz = _v4storage[2] - argStorage[2];
  final double dw = _v4storage[3] - argStorage[3];

  return dx * dx + dy * dy + dz * dz + dw * dw;
}