RectangleGeographicArea

constructor(minLat: Double, maxLat: Double, minLon: Double, maxLon: Double)

Constructs a RectangleGeographicArea object with minimum and maximum latitudes and longitudes.

Parameters

minLat

Minimum latitude of the rectangle.

maxLat

Maximum latitude of the rectangle.

minLon

Minimum longitude of the rectangle.

maxLon

Maximum longitude of the rectangle. Ensures that the coordinates form a valid rectangle by sorting the inputs.


constructor(topLeft: Coordinates, bottomRight: Coordinates)

Constructs a RectangleGeographicArea object from top-left and bottom-right coordinates.

Parameters

topLeft

Coordinates of the top-left corner.

bottomRight

Coordinates of the bottom-right corner. Ensures that the coordinates form a valid rectangle.


constructor(coords: Coordinates, horizRadius: Double, vertRadius: Double)

Constructs a RectangleGeographicArea object from center coordinates and horizontal/vertical radii.

Parameters

coords

Center coordinates of the rectangle.

horizRadius

Horizontal radius in meters.

vertRadius

Vertical radius in meters.


constructor(address: Long)