distanceSquared

abstract fun distanceSquared(other: Location): Int(source)

Calculates the squared distance between this location and another location. This is useful for comparing distances without the need to calculate the square root. The squared distance is calculated as follows: (x2-x1 )^2 + (y2-y1)^2 + (z2-z1)^2.

Parameters

other

the other location to calculate the squared distance to