CoordinateBounds

open class CoordinateBounds : Serializable

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

Constructors

CoordinateBounds
Link copied to clipboard
open fun CoordinateBounds(southwest: Point, northeast: Point, infiniteBounds: Boolean)
CoordinateBounds
Link copied to clipboard
open fun CoordinateBounds(southwest: Point, northeast: Point)

Functions

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

Properties

infiniteBounds
Link copied to clipboard
private val infiniteBounds: Boolean
northeast
Link copied to clipboard
private val northeast: Point
southwest
Link copied to clipboard
private val southwest: Point