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>

Type:
  • Array.<number>
Source:

xmax :number

Type:
  • number
Source:

xmin :number

Type:
  • number
Source:

ymax :number

Type:
  • number
Source:

ymin :number

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