Method Extend
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
Extend(double, LineEnd)
Lengthens one end of this segment by a distance, using default tolerance. A negative distance shortens it. See Lengthen2.
public GeoLine2 Extend(double distance, LineEnd end)
Parameters
distancedoubleHow far the end moves outward; negative moves it back.
endLineEndThe end that moves.
Returns
Exceptions
- InvalidOperationException
Thrown when the segment is too short to have a direction.
- ArgumentOutOfRangeException
Thrown when the distance is not finite or would leave nothing of the segment.
Extend(double, LineEnd, Tolerance)
Lengthens one end of this segment by a distance, within tolerance. A negative distance shortens it.
public GeoLine2 Extend(double distance, LineEnd end, Tolerance tolerance)
Parameters
distancedoubleHow far the end moves outward; negative moves it back.
endLineEndThe end that moves.
toleranceToleranceThe tolerance.
Returns
Exceptions
- InvalidOperationException
Thrown when the segment is too short to have a direction.
- ArgumentOutOfRangeException
Thrown when the distance is not finite or would leave nothing of the segment.
Extend(double, double)
Lengthens both ends of this segment, each by its own distance, using default tolerance. A negative distance shortens that end.
public GeoLine2 Extend(double startDistance, double endDistance)
Parameters
startDistancedoubleHow far the start point moves outward.
endDistancedoubleHow far the end point moves outward.
Returns
Exceptions
- InvalidOperationException
Thrown when the segment is too short to have a direction.
- ArgumentOutOfRangeException
Thrown when a distance is not finite or would leave nothing of the segment.
Extend(double, double, Tolerance)
Lengthens both ends of this segment, each by its own distance, within tolerance. A negative distance shortens that end.
public GeoLine2 Extend(double startDistance, double endDistance, Tolerance tolerance)
Parameters
startDistancedoubleHow far the start point moves outward.
endDistancedoubleHow far the end point moves outward.
toleranceToleranceThe tolerance.
Returns
Exceptions
- InvalidOperationException
Thrown when the segment is too short to have a direction.
- ArgumentOutOfRangeException
Thrown when a distance is not finite or would leave nothing of the segment.