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
distancedouble
Returns
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
Returns
Exceptions
- InvalidOperationException
Thrown when the segment is too short to have a direction.
- ArgumentOutOfRangeException
Thrown when the distance is not a finite number.