distanceToSquared

Computes the squared distance from this vector to a specified vector. This is equivalent to squaring the result of distanceTo but is potentially much more efficient.

Return

the squared distance between the vectors

Parameters

vector

the vector to compute the distance to