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 the default tolerance.

public GeoLine3 ExtendToLength(double length, LineEnd end)

Parameters

length double

The length the segment should have.

end LineEnd

The end that moves.

Returns

GeoLine3

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

length double

The length the segment should have.

end LineEnd

The end that moves.

tolerance Tolerance

The tolerance.

Returns

GeoLine3

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.