dst2

abstract infix fun dst2(vector: T): Float

Returns the squared distance between this and the other vector

This method is faster than dst because it avoids calculating a square root. It is useful for comparisons, but not for getting exact distance, as the return value is the square of the actual distance.