Table of Contents

Method GetSide

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

GetSide(GeoPoint2)

Says which side of this line a point lies on, using the default tolerance.

public LineSide GetSide(GeoPoint2 point)

Parameters

point GeoPoint2

Returns

LineSide

GetSide(GeoPoint2, Tolerance)

Says which side of this line a point lies on, seen looking along its direction, within a tolerance.

public LineSide GetSide(GeoPoint2 point, Tolerance tolerance)

Parameters

point GeoPoint2

The point.

tolerance Tolerance

The tolerance: a point within EqualPoint of the line counts as on it.

Returns

LineSide

Left, Right or On.

Remarks

Looking along X, the point (5, 3) is to the left of the line through the origin and the point (5, -3) to the right.