Table of Contents

Method TrySplitAt

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

TrySplitAt(GeoArc2, double, out GeoArc2[])

Splits an arc at a normalized parameter, using the default tolerance.

public static bool TrySplitAt(GeoArc2 arc, double parameter, out GeoArc2[] pieces)

Parameters

arc GeoArc2
parameter double
pieces GeoArc2[]

Returns

bool

TrySplitAt(GeoArc2, double, out GeoArc2[], Tolerance)

Splits an arc at a normalized parameter, within a tolerance.

public static bool TrySplitAt(GeoArc2 arc, double parameter, out GeoArc2[] pieces, Tolerance tolerance)

Parameters

arc GeoArc2

The arc to cut.

parameter double

Where to cut it, from 0 at its start to 1 at its end.

pieces GeoArc2[]

The pieces in order along the arc, or the arc whole when the method returns false.

tolerance Tolerance

The tolerance: a cut within it of either end leaves the arc whole.

Returns

bool

true if the arc was cut in two; otherwise, false.

TrySplitAt(GeoArc2, GeoPoint2, out GeoArc2[])

Splits an arc at the point of it nearest a point, using the default tolerance.

public static bool TrySplitAt(GeoArc2 arc, GeoPoint2 point, out GeoArc2[] pieces)

Parameters

arc GeoArc2
point GeoPoint2
pieces GeoArc2[]

Returns

bool

TrySplitAt(GeoArc2, GeoPoint2, out GeoArc2[], Tolerance)

Splits an arc at the point of it nearest a point, within a tolerance.

public static bool TrySplitAt(GeoArc2 arc, GeoPoint2 point, out GeoArc2[] pieces, Tolerance tolerance)

Parameters

arc GeoArc2

The arc to cut.

point GeoPoint2

Where to cut it; a point off the arc cuts at the point of the arc nearest it.

pieces GeoArc2[]

The pieces in order along the arc, or the arc whole when the method returns false.

tolerance Tolerance

The tolerance.

Returns

bool

true if the arc was cut in two; otherwise, false.