Table of Contents

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

first GeoPolyline2
second GeoPolyline2

Returns

GeoPolyline2

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

first GeoPolyline2

This chain.

second GeoPolyline2

The chain that may continue it.

tolerance Tolerance

The tolerance.

Returns

GeoPolyline2

The joined chain, or null when 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.