intersect

fun intersect(sector: Sector): Boolean

Computes the intersection of this sector and a specified sector, storing the result in this sector and returning whether or not the sectors intersect. Two sectors intersect when both the latitude boundaries and the longitude boundaries overlap by a non-zero amount. An empty sector never intersects another sector. When there is no intersection, this returns false and leaves this sector unchanged.
The sectors are assumed to have normalized angles (angles within the range -90, +90 latitude and -180, +180 longitude).

Return

this true if this sector intersects the specified sector, false otherwise

Parameters

sector

the sector to intersect with