Rectangle

external class Rectangle(var west: Double = definedExternally, var south: Double = definedExternally, var east: Double = definedExternally, var north: Double = definedExternally)(source)

A two dimensional region specified as longitude and latitude coordinates.

See also

Constructors

Link copied to clipboard
constructor(west: Double = definedExternally, south: Double = definedExternally, east: Double = definedExternally, north: Double = definedExternally)

Types

Link copied to clipboard

Properties

Link copied to clipboard

The easternmost longitude, in radians, in the range -Pi, Pi. Default value - 0.0

Link copied to clipboard

Gets the height of the rectangle in radians.

Link copied to clipboard

The northernmost latitude, in radians, in the range -Pi/2, Pi/2. Default value - 0.0

Link copied to clipboard

The southernmost latitude, in radians, in the range -Pi/2, Pi/2. Default value - 0.0

Link copied to clipboard

The westernmost longitude, in radians, in the range -Pi, Pi. Default value - 0.0

Link copied to clipboard

Gets the width of the rectangle in radians.

Functions

Link copied to clipboard
fun clone(result: Rectangle? = definedExternally): Rectangle

Duplicates this Rectangle.

Link copied to clipboard
fun equalsEpsilon(other: Rectangle? = definedExternally, epsilon: Double? = definedExternally): Boolean

Compares the provided Rectangle with this Rectangle componentwise and returns true if they are within the provided epsilon, false otherwise.