Coordinate Bounds
A rectangular area as measured on a two-dimensional map projection.
Constructors
CoordinateBounds
Link copied to clipboard
open fun CoordinateBounds(@NonNull southwest: Point, @NonNull northeast: Point, infiniteBounds: Boolean)
Content copied to clipboard
CoordinateBounds
Link copied to clipboard
open fun CoordinateBounds(@NonNull southwest: Point, @NonNull northeast: Point)
Content copied to clipboard
Functions
contains Latitude
Link copied to clipboard
Returns whether the bounds contains `latitude` or not.
contains Longitude
Link copied to clipboard
Returns whether the bounds contains `longitude` or not.
crosses Antimeridian
Link copied to clipboard
Returns whether the bounds cross the date line or not.
extend
Link copied to clipboard
Extends these bounds to include `point`.
Extends these bounds to include `area`.
intersects
Link copied to clipboard
open fun intersects(@NonNull area: CoordinateBounds, wrappedCoordinates: Boolean): Boolean
Content copied to clipboard
Returns whether the bounds intersects `area` or not.
latitude Span
Link copied to clipboard
Returns the absolute distance, in degrees, between the north and south boundaries of these bounds.
longitude Span
Link copied to clipboard
Returns the absolute distance, in degrees, between the west and east boundaries of these bounds.
singleton
Link copied to clipboard
Returns the bounds consisting of the single point.
world
Link copied to clipboard
Returns a bounds covering the entire (unwrapped) world.