distanceToSquared method

double distanceToSquared (Vector3 arg)

Squared distance from this to arg

Implementation

double distanceToSquared(Vector3 arg) {
  final Float64List argStorage = arg._v3storage;
  final double dx = _v3storage[0] - argStorage[0];
  final double dy = _v3storage[1] - argStorage[1];
  final double dz = _v3storage[2] - argStorage[2];

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