Table of Contents

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

line GeoLine2

The segment, read as the infinite line carrying it.

point GeoPoint2

The point.

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

line GeoLine2

The segment, read as the infinite line carrying it.

point GeoPoint2

The point.

tolerance Tolerance

The 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.