Class: Extent

Extent(minX, minY, maxX, maxY)

Represents a 2D extent defined by its minimum and maximum coordinates.

Constructor

new Extent(minX, minY, maxX, maxY)

Parameters:
Name Type Description
minX Number The minimum x coordinate.
minY Number The minimum y coordinate.
maxX Number The maximum x coordinate.
maxY Number The maximum y coordinate.
Source:
Example
const extent = new Extent(0.0, 0.0, 1.0, 1.0);

Classes

Extent

Methods

getArea() → {number}

Returns the area of the extent
Source:
Returns:
Type
number

getCenter() → {Object}

Returns the center of the extent
Source:
Returns:
Type
Object

getCenterLonLat()

Returns the center of the extent
Source:

getHeight() → {number}

Returns the height of the extent
Source:
Returns:
Type
number

getMaxLat() → {*}

Returns the maximum latitude of the extent
Source:
Returns:
Type
*

getMaxLon() → {*}

Returns the maximum longitude of the
Source:
Returns:
Type
*

getMinLat() → {*}

Returns the minimum latitude of the extent
Source:
Returns:
Type
*

getMinLon() → {*}

Returns the minimum longitude of the extent
Source:
Returns:
Type
*

getWidth() → {number}

Returns the width of the extent
Source:
Returns:
Type
number

(static) createFromDegrees()

Returns the minimum longitude of the extent
Source: