Method MergeWith
- Namespace
- GeometryHelper.Extension
- Assembly
- GeometryHelper.dll
MergeWith(GeoPolyline2, GeoPolyline2)
Joins this chain to another if this one ends where the other begins.
public static GeoPolyline2 MergeWith(this GeoPolyline2 first, GeoPolyline2 second)
Parameters
firstGeoPolyline2secondGeoPolyline2
Returns
MergeWith(GeoPolyline2, GeoPolyline2, Tolerance)
Joins this chain to another if this one ends where the other begins, within a tolerance.
public static GeoPolyline2 MergeWith(this GeoPolyline2 first, GeoPolyline2 second, Tolerance tolerance)
Parameters
firstGeoPolyline2This chain.
secondGeoPolyline2The chain that may continue it.
toleranceToleranceThe tolerance.
Returns
- GeoPolyline2
The joined chain, or
nullwhen the two do not meet end to start.
Remarks
Null rather than an exception, because not meeting is the ordinary case: walking the pieces of a cut run, this is exactly what tells one stretch from the next.
Exceptions
- ArgumentNullException
Thrown when either chain is null.