Table of Contents

Method Extend

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

Extend(double, LineEnd)

Lengthens one end of this segment by a distance, using the default tolerance. A negative distance shortens it. See Lengthen3.

public GeoLine3 Extend(double distance, LineEnd end)

Parameters

distance double

How far the end moves outward; negative moves it back.

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 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 a tolerance. A negative distance shortens it.

public GeoLine3 Extend(double distance, LineEnd end, Tolerance tolerance)

Parameters

distance double

How far the end moves outward; negative moves it back.

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 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 the default tolerance. A negative distance shortens that end.

public GeoLine3 Extend(double startDistance, double endDistance)

Parameters

startDistance double

How far the start point moves outward.

endDistance double

How far the end point moves outward.

Returns

GeoLine3

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 a tolerance. A negative distance shortens that end.

public GeoLine3 Extend(double startDistance, double endDistance, Tolerance tolerance)

Parameters

startDistance double

How far the start point moves outward.

endDistance double

How far the end point moves outward.

tolerance Tolerance

The tolerance.

Returns

GeoLine3

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.