Table of Contents

Method Extend

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

Extend(double, LineEnd)

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

public GeoLine2 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

GeoLine2

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

public GeoLine2 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

GeoLine2

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

public GeoLine2 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

GeoLine2

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

public GeoLine2 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

GeoLine2

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.