CoordinateBounds

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

Constructors

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

Functions

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

Properties

Link copied to clipboard
Link copied to clipboard
val northeast: Point
Link copied to clipboard
val southwest: Point