distanceTo

open override fun distanceTo(other: Location): Double(source)

Calculates the distance between this location and another location. This is useful for calculating the actual distance between two locations. The distance is calculated as follows: sqrt((x2-x1 )^2 + (y2-y1)^2 + (z2-z1)^2) and therefore yields the exact same result as the square root of distanceSquared.

Parameters

other

the other location to calculate the distance to