Method ExtendToLength
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
ExtendToLength(double, LineEnd)
Moves one end of this segment so that it measures a given length, using the default tolerance.
public GeoLine3 ExtendToLength(double length, LineEnd end)
Parameters
Returns
Exceptions
- InvalidOperationException
Thrown when the segment is too short to have a direction.
- ArgumentOutOfRangeException
Thrown when the length is not a finite number above the tolerance.
ExtendToLength(double, LineEnd, Tolerance)
Moves one end of this segment so that it measures a given length, within a tolerance.
public GeoLine3 ExtendToLength(double length, LineEnd end, Tolerance tolerance)
Parameters
lengthdoubleThe length the segment should have.
endLineEndThe end that moves.
toleranceToleranceThe tolerance.
Returns
Exceptions
- InvalidOperationException
Thrown when the segment is too short to have a direction.
- ArgumentOutOfRangeException
Thrown when the length is not a finite number above the tolerance.