Method GetSide
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
GetSide(GeoLine2, GeoPoint2)
Determines which side of a segment a point lies on, using the default tolerance.
public static LineSide GetSide(GeoLine2 line, GeoPoint2 point)
Parameters
Returns
- LineSide
The side the point lies on, seen looking from the start of the segment to its end.
GetSide(GeoLine2, GeoPoint2, Tolerance)
Determines which side of a segment a point lies on, within a tolerance.
public static LineSide GetSide(GeoLine2 line, GeoPoint2 point, Tolerance tolerance)
Parameters
lineGeoLine2The segment, read as the infinite line carrying it.
pointGeoPoint2The point.
toleranceToleranceThe tolerance: a point within EqualPoint of the line counts as on it.
Returns
- LineSide
The side the point lies on, seen looking from the start of the segment to its end.
Exceptions
- InvalidOperationException
Thrown when the segment is too short to have a direction.