Please make sure, you arrange your parameters like this:
Longitude 1, Latitude 1, Altitude 1 (optional), Longitude 2, Latitude 2, Altitude 2 (optional)
You can either specify 4 or 6 parameters
If you are using the default constructor with two dimensional positions (lng + lat only), please use the constructor like this:
BBox(lng1, lat1, lng2, lat2);
Returns true if a point is on a line. Accepts an optional parameter to ignore the
start and end vertices of the LineString.
The ignoreEndVertices=false controls whether to ignore the start and end vertices.
epsilon is the Fractional number to compare with the cross product result.
It's useful for dealing with floating points in lng/lat
example:
Takes a ring and return true or false whether or not the ring is clockwise
or counter-clockwise.
Takes a Feature<LineString> orLineString or a List<Position> to be
evaluated.
example:
booleanContains returns true if the second geometry is completely contained
by the first geometry.
The interiors of both geometries must intersect and, the interior and
boundary of the secondary must not intersect the exterior of the primary.
booleanContains returns the exact opposite result of the booleanWithin.
example:
Determine whether two geometries of the same type have identical X,Y coordinate values.
See http://edndoc.esri.com/arcsde/9.0/general_topics/understand_spatial_relations.htmprecision=6 sets decimal precision to use when comparing coordinates.
With direction set to true, even if the LineStrings are reverse versions
of each other but they have similar Positions, they will be considered the
same. If shiftedPolygon is true, two Polygons with shifted Positions
are considered the same.
Returns true if the objects are equal, false otherwise
example:
Takes a Point, and a Polygon or MultiPolygonand determines if the
Point resides within the Polygon. The Polygon can be convex or concave.
The function accounts for holes. By taking a Feature<Polygon> or a
Feature<MultiPolygon>. ignoreBoundary=false should be set to true if
Polygon's boundary should be ignored when determining if the Point is
inside the Polygon, otherwise, false.
example:
Returns true if the first GeoJSONObject is completely within the second GeoJSONObject.
The interiors of both geometries must intersect and, the interior and boundary
of the primary (geometry a) must not intersect the exterior of the secondary
(geometry b). booleanWithin returns the exact opposite result of booleanContains.
Returns if point is on the segment between start and end.
Borrowed from booleanPointOnLine to speed up the evaluation (instead of
using the module as dependency).
start is the coord pair of start of line, end is the coord pair of end
of line, and point is the coord pair of point to check.