Table of Contents

Method Offset

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

Offset(double)

Gets the segment parallel to this one at a distance to its left, using default tolerance. A negative distance moves it to the right. See Offset2.

public GeoLine2 Offset(double distance)

Parameters

distance double

Returns

GeoLine2

Exceptions

InvalidOperationException

Thrown when the segment is too short to have a direction.

ArgumentOutOfRangeException

Thrown when the distance is not a finite number.

Offset(double, Tolerance)

Gets the segment parallel to this one at a distance to its left, within tolerance. A negative distance moves it to the right.

public GeoLine2 Offset(double distance, Tolerance tolerance)

Parameters

distance double
tolerance Tolerance

Returns

GeoLine2

Exceptions

InvalidOperationException

Thrown when the segment is too short to have a direction.

ArgumentOutOfRangeException

Thrown when the distance is not a finite number.