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
Returns
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
arcGeoArc2The arc to cut.
parameterdoubleWhere to cut it, from 0 at its start to 1 at its end.
piecesGeoArc2[]The pieces in order along the arc, or the arc whole when the method returns false.
toleranceToleranceThe 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
Returns
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
arcGeoArc2The arc to cut.
pointGeoPoint2Where to cut it; a point off the arc cuts at the point of the arc nearest it.
piecesGeoArc2[]The pieces in order along the arc, or the arc whole when the method returns false.
toleranceToleranceThe tolerance.
Returns
- bool
true if the arc was cut in two; otherwise, false.