# CoordinateBounds

open class CoordinateBounds : Serializable

A rectangular area as measured on a two-dimensional map projection.

## Constructors

CoordinateBounds
open fun CoordinateBounds(southwest: Point, northeast: Point, infiniteBounds: Boolean)
CoordinateBounds
open fun CoordinateBounds(southwest: Point, northeast: Point)

## Functions

center
open fun center(): Point
Returns the center coordinate of the bounds.
constrain
open fun constrain(point: Point): Point
Constrains `point` against the bounds.
contains
open fun contains(point: Point, wrappedCoordinates: Boolean): Boolean
Returns whether the bounds contains `point` or not.
open fun contains(area: CoordinateBounds, wrappedCoordinates: Boolean): Boolean
Returns whether the bounds contains `area` or not.
containsLatitude
open fun containsLatitude(latitude: Double): Boolean
Returns whether the bounds contains `latitude` or not.
containsLongitude
open fun containsLongitude(longitude: Double): Boolean
Returns whether the bounds contains `longitude` or not.
crossesAntimeridian
open fun crossesAntimeridian(): Boolean
Returns whether the bounds cross the date line or not.
east
open fun east(): Double
Returns the eastern longitude of the bounds.
equals
open fun equals(object: Any): Boolean
extend
open fun extend(point: Point): CoordinateBounds
Extends these bounds to include `point`.
open fun extend(area: CoordinateBounds): CoordinateBounds
Extends these bounds to include `area`.
hashCode
open fun hashCode(): Int
hull
open fun hull(a: Point, b: Point): CoordinateBounds
Returns the convex hull of two points; the smallest bounds that contains both.
intersects
open fun intersects(area: CoordinateBounds, wrappedCoordinates: Boolean): Boolean
Returns whether the bounds intersects `area` or not.
isBounded
open fun isBounded(): Boolean
Returns whether the bounds are infinite or bounded.
isEmpty
open fun isEmpty(): Boolean
Returns whether the bounds are empty or not.
isValid
open fun isValid(): Boolean
Returns whether the bounds are valid or not.
latitudeSpan
open fun latitudeSpan(): Double
Returns the absolute distance, in degrees, between the north and south boundaries of these bounds.
longitudeSpan
open fun longitudeSpan(): Double
Returns the absolute distance, in degrees, between the west and east boundaries of these bounds.
north
open fun north(): Double
Returns the northern latitude of the bounds.
northwest
open fun northwest(): Point
Returns the northwest coordinate of the bounds.
singleton
open fun singleton(point: Point): CoordinateBounds
Returns the bounds consisting of the single point.
south
open fun south(): Double
Returns the southern latitude of the bounds.
southeast
open fun southeast(): Point
Returns the southeast coordinate of the bounds.
toString
open fun toString(): String
west
open fun west(): Double
Returns the western longitude of the bounds.
world
open fun world(): CoordinateBounds
Returns a bounds covering the entire (unwrapped) world.

infiniteBounds