distanceToSquared method

double distanceToSquared(
  1. Vector4 arg
)

Squared distance from this to arg

Implementation

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

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