distanceToSquared method

double distanceToSquared(
  1. Vector3 arg
)

Squared distance from this to arg

Implementation

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

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