Method IsEqualTo
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
IsEqualTo(GeoPolyline2)
Determines whether another chain runs through the same points, within the default tolerance.
public bool IsEqualTo(GeoPolyline2 other)
Parameters
otherGeoPolyline2The chain to compare with.
Returns
- bool
true if the chains are the same within tolerance; otherwise, false.
IsEqualTo(GeoPolyline2, Tolerance)
Determines whether another chain runs through the same points, within a tolerance.
public bool IsEqualTo(GeoPolyline2 other, Tolerance tolerance)
Parameters
otherGeoPolyline2The chain to compare with.
toleranceToleranceThe tolerance.
Returns
- bool
true if the chains are the same within tolerance; otherwise, false.
Remarks
A chain has ends, so it is compared vertex by vertex from its start. A chain and the same chain
reversed are not equal; compare one against other.Reverse() when either direction will do.