Table of Contents

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

length double

The length the segment should have.

end LineEnd

The end that moves.

Returns

GeoLine2

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

length double

The length the segment should have.

end LineEnd

The end that moves.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

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.