union

fun union(latitude: Angle, longitude: Angle): Sector

Sets this sector to the union of itself and a specified location. Assumes normalized angles: -90, +90, -180, +180

Return

this sector, set to its union with the specified location

Parameters

latitude

the location's latitude

longitude

the location's longitude


fun union(location: Location): Sector

Sets this sector to the union of itself and a specified location.

Return

this sector, set to its union with the specified location

Parameters

location

the location


fun union(array: FloatArray, count: Int, stride: Int): Sector

Sets this sector to the union of itself and an array of specified locations. If this sector is empty, it bounds the specified locations. The array is understood to contain location of at least two coordinates organized as (longitude, latitude, ...), where stride indicates the number of coordinates between longitude values.

Return

This bounding box set to contain the specified array of locations.

Parameters

array

the array of locations to consider

count

the number of array elements to consider

stride

the number of coordinates between the first coordinate of adjacent locations - must be at least 2

Throws

If the array is empty, if the count is less than 0, or if the stride is less than 2


fun union(sector: Sector): Sector

Sets this sector to the union of itself and a specified sector. This has no effect if the specified sector is empty. If this sector is empty, it is set to the specified sector. Assumes normalized angles: -90, +90, -180, +180

Return

this sector, set to its union with the specified sector

Parameters

sector

the sector to union with