Constructor
# new Extent(coords)
Parameters:
Name | Type | Description |
---|---|---|
coords |
Array.<number>
|
The latitude of the location. |
Example
const extent = new Vexcel.Geometry.Extent([20,10,-20,-10]);
Classes
Methods
# buffer(value) → {Extent}
Return extent buffered by the provided value.
Parameters:
Name | Type | Description |
---|---|---|
value |
number
|
The amount by which the extent should be buffered. |
# containsExtent(extent) → {boolean}
Check if one extent contains another.
An extent is deemed contained if it lies completely within the other extent, including if they share one or more edges.
Parameters:
Name | Type | Description |
---|---|---|
extent |
Extent
|
boolean
# containsLocation(location) → {boolean}
Check if the passed location is contained or on the edge of the extent
Parameters:
Name | Type | Description |
---|---|---|
location |
Location
|
boolean