Method OffsetThrough
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
OffsetThrough(GeoLine3, GeoPoint3)
Gets the segment parallel to a segment that passes through a point, using the default tolerance.
public static GeoLine3 OffsetThrough(GeoLine3 line, GeoPoint3 point)
Parameters
Returns
- GeoLine3
The parallel segment, of the same length and running the same way.
Exceptions
- InvalidOperationException
Thrown when the segment is too short to have a direction.
OffsetThrough(GeoLine3, GeoPoint3, Tolerance)
Gets the segment parallel to a segment that passes through a point, within a tolerance. The segment is moved square to itself only, so the point need not lie between its ends.
public static GeoLine3 OffsetThrough(GeoLine3 line, GeoPoint3 point, Tolerance tolerance)
Parameters
lineGeoLine3The segment.
pointGeoPoint3A point the parallel segment passes through.
toleranceToleranceThe tolerance.
Returns
- GeoLine3
The parallel segment, of the same length and running the same way.
Exceptions
- InvalidOperationException
Thrown when the segment is too short to have a direction.