Class: Extent

Extent.Extent(…args)

Class representing an extent

Constructor

new Extent(…args)

Create an extent

Parameters:
Name Type Attributes Description
args number | string <repeatable>

the 4 values describing the extent

Source:
Throws:
  • for number of args different of 4

    Type
    ValidationError
  • for values not number

    Type
    ConversionError

Extends

  • Array

Members

center :Array.<number>

Get the center of the extent

Type:
  • Array.<number>
Source:

xmax :number

Get the x maximum value

Type:
  • number
Source:

xmin :number

Get the x minimum value

Type:
  • number
Source:

ymax :number

Get the y maximum value

Type:
  • number
Source:

ymin :number

Get the y minimum value

Type:
  • number
Source:

Methods

equals(anOther) → {boolean}

Checks equality with an other extent or array

Parameters:
Name Type Description
anOther Extent | Array

An other extent or array with 4 values

Source:
Returns:

the other extent or array as the same values

Type
boolean