Method TrySplitAtDistance
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
TrySplitAtDistance(double, out GeoLine2, out GeoLine2)
Splits this segment at an arc length measured from its start point, using the default tolerance.
public bool TrySplitAtDistance(double distance, out GeoLine2 first, out GeoLine2 second)
Parameters
distancedoubleArc length from the start point.
firstGeoLine2The piece holding the start point.
secondGeoLine2The piece holding the end point.
Returns
- bool
true if the segment was split; otherwise, false.
TrySplitAtDistance(double, out GeoLine2, out GeoLine2, Tolerance)
Splits this segment at an arc length measured from its start point, within tolerance.
public bool TrySplitAtDistance(double distance, out GeoLine2 first, out GeoLine2 second, Tolerance tolerance)
Parameters
distancedoubleArc length from the start point.
firstGeoLine2The piece holding the start point.
secondGeoLine2The piece holding the end point.
toleranceToleranceThe tolerance.
Returns
- bool
true if the segment was split; otherwise, false.