distanceToSquared method

double distanceToSquared(
  1. Vector3 arg
)
inherited

Squared distance from this to arg

Implementation

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

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