distanceTo

fun distanceTo(l: Locatable?): Double

Calculates the euclidean distance between the Tile and the given Locatable.

Return

the distance between the two points. If either points are null, or they are on separate floors, it will return Double.POSITIVE_INFINITY.

Parameters

l

The secondary point to calculate the distance from.