Rectangle

open 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
external object Companion : Packable<Rectangle>

Properties

Link copied to clipboard
external var east: Double

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

Link copied to clipboard
external val height: Double

Gets the height of the rectangle in radians.

Link copied to clipboard
external var north: Double

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

Link copied to clipboard
external var south: Double

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

Link copied to clipboard
external var west: Double

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

Link copied to clipboard
external val width: Double

Gets the width of the rectangle in radians.

Functions

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

Duplicates this Rectangle.

Link copied to clipboard
external 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.