equalsExact
Returns true if geometries a and b are of the same type and have the
same vertices in the same order on the XY plane.
Vertices are checked by index so any additional midpoint or reversed order results in the geometries not being considered equal.
Vertices are compared only by their X and Y values, Z and M values are ignored.
Parameters
| Name | Type | Description |
|---|---|---|
a | Geometry | First geometry |
b | Geometry | Second geometry |
tolerance | number | Tolerance to determine vertex equality |
Returns
boolean
true if geometries a and b are of the same type and have
matching vertices
See also
equalschecks if two geometries are topologically equalequalsIdenticalchecks whether two geometries are of the same type and have exactly the same vertices in the same order on the XYZM planeGeometryRef#normalizenormalized geometries are easier to compare