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 default tolerance. The other end stays.
public GeoLine2 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 tolerance. The other end stays.
public GeoLine2 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.