extentA simple geographical extent.
Create a new extent object
Create a new extent object, given bounds as an array.
extent([w, s, e, n])
Expand the extent to include a lon, lat point.
Expand the extent to include another extent.
extent.union([w, s, e, n] or other extent)
Whether this extent is exactly equal to another.
extent.equals([w, s, e, n] or other extent)
Get the extent's value.
nullif no points have been included yet. Order is
[WSEN]to match the GeoJSON standard.
Get the centerpoint of the extent as a
Get the extent as a GeoJSON Polygon geometry object.
trueif this extent contains the given point, and false if not. Points on the boundary of the extent are considered to be contained. If the extent is invalid, returns
Returns a function that evaluates whether points are contained in the extent -
same behavior as
.contains([lon, lat]). This pre-compiles the function with the current extent values, yielding a roughly 3x speedup.