isInsideLocationArea

fun Location.isInsideLocationArea(location1: Location, location2: Location): Boolean

Determines if the current location is inside a defined 3D rectangular area.

Return

True if the current location is within or on the boundaries of the defined area, false otherwise.

Parameters

location1

One corner of the 3D rectangular area.

location2

The opposite corner of the 3D rectangular area.