contains

fun contains(latitude: Angle, longitude: Angle): Boolean

Indicates whether this sector contains a specified geographic location. An empty sector never contains a location. Assumes normalized angles: -90, +90, -180, +180

Return

true if this sector contains the location, false otherwise

Parameters

latitude

the location's latitude

longitude

the location's longitude


fun contains(location: Location): Boolean

Indicates whether this sector contains a specified geographic location. An empty sector never contains a location.

Return

true if this sector contains the location, false otherwise

Parameters

location

the location


fun contains(sector: Sector): Boolean

Indicates whether this sector fully contains a specified sector. This sector contains the specified sector when the specified sector's boundaries are completely contained within this sector's boundaries, or are equal to this sector's boundaries. An empty sector never contains another sector.
The sectors are assumed to have normalized angles (angles within the range -90, +90 latitude and -180, +180 longitude).

Return

true if the specified sector contains this sector, false otherwise

Parameters

sector

the sector to test containment with