Table of Contents

Method IsPointOn

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

IsPointOn(GeoLine2, GeoPoint2)

Checks whether a point lies on the line segment using default tolerance.

public static bool IsPointOn(GeoLine2 line, GeoPoint2 point)

Parameters

line GeoLine2

The line segment.

point GeoPoint2

The target point.

Returns

bool

true if the point lies on the line segment; otherwise, false.

IsPointOn(GeoLine2, GeoPoint2, Tolerance)

Checks whether a point lies on the line segment within tolerance.

public static bool IsPointOn(GeoLine2 line, GeoPoint2 point, Tolerance tolerance)

Parameters

line GeoLine2

The line segment.

point GeoPoint2

The target point.

tolerance Tolerance

The tolerance.

Returns

bool

true if the point lies on the line segment within tolerance; otherwise, false.

IsPointOn(GeoCircle2, GeoPoint2)

Checks whether a point lies on the circumference of a circle using default tolerance.

public static bool IsPointOn(GeoCircle2 circle, GeoPoint2 point)

Parameters

circle GeoCircle2

The circle.

point GeoPoint2

The target point.

Returns

bool

true if the point lies on the circle boundary; otherwise, false.

IsPointOn(GeoCircle2, GeoPoint2, Tolerance)

Checks whether a point lies on the circumference of a circle within tolerance.

public static bool IsPointOn(GeoCircle2 circle, GeoPoint2 point, Tolerance tolerance)

Parameters

circle GeoCircle2

The circle.

point GeoPoint2

The target point.

tolerance Tolerance

The tolerance.

Returns

bool

true if the point lies on the circle boundary within tolerance; otherwise, false.

IsPointOn(GeoPolygon2, GeoPoint2)

Checks whether a point lies on any boundary edge of the polygon using default tolerance.

public static bool IsPointOn(GeoPolygon2 poly, GeoPoint2 point)

Parameters

poly GeoPolygon2

The polygon.

point GeoPoint2

The target point.

Returns

bool

true if the point lies on the polygon boundary; otherwise, false.

IsPointOn(GeoPolygon2, GeoPoint2, Tolerance)

Checks whether a point lies on any boundary edge of the polygon within tolerance.

public static bool IsPointOn(GeoPolygon2 poly, GeoPoint2 point, Tolerance tolerance)

Parameters

poly GeoPolygon2

The polygon.

point GeoPoint2

The target point.

tolerance Tolerance

The tolerance.

Returns

bool

true if the point lies on the polygon boundary within tolerance; otherwise, false.

IsPointOn(GeoPolyline2, GeoPoint2)

Checks whether a point lies on any segment of the polyline using default tolerance.

public static bool IsPointOn(GeoPolyline2 polyline, GeoPoint2 point)

Parameters

polyline GeoPolyline2

The polyline.

point GeoPoint2

The target point.

Returns

bool

true if the point lies on the polyline; otherwise, false.

IsPointOn(GeoPolyline2, GeoPoint2, Tolerance)

Checks whether a point lies on any segment of the polyline within tolerance.

public static bool IsPointOn(GeoPolyline2 polyline, GeoPoint2 point, Tolerance tolerance)

Parameters

polyline GeoPolyline2

The polyline.

point GeoPoint2

The target point.

tolerance Tolerance

The tolerance.

Returns

bool

true if the point lies on the polyline within tolerance; otherwise, false.

IsPointOn(GeoPolylineArc2, GeoPoint2)

Determines whether a point lies on a chain that may curve.

public static bool IsPointOn(GeoPolylineArc2 chain, GeoPoint2 point)

Parameters

chain GeoPolylineArc2
point GeoPoint2

Returns

bool

Exceptions

ArgumentNullException

Thrown when the chain is null.

IsPointOn(GeoPolylineArc2, GeoPoint2, Tolerance)

Determines whether a point lies on a chain that may curve, within a tolerance.

public static bool IsPointOn(GeoPolylineArc2 chain, GeoPoint2 point, Tolerance tolerance)

Parameters

chain GeoPolylineArc2
point GeoPoint2
tolerance Tolerance

Returns

bool

Exceptions

ArgumentNullException

Thrown when the chain is null.

IsPointOn(GeoPolygonArc2, GeoPoint2)

Determines whether a point lies on a loop that may curve.

public static bool IsPointOn(GeoPolygonArc2 loop, GeoPoint2 point)

Parameters

loop GeoPolygonArc2
point GeoPoint2

Returns

bool

Exceptions

ArgumentNullException

Thrown when the loop is null.

IsPointOn(GeoPolygonArc2, GeoPoint2, Tolerance)

Determines whether a point lies on a loop that may curve, within a tolerance.

public static bool IsPointOn(GeoPolygonArc2 loop, GeoPoint2 point, Tolerance tolerance)

Parameters

loop GeoPolygonArc2
point GeoPoint2
tolerance Tolerance

Returns

bool

Exceptions

ArgumentNullException

Thrown when the loop is null.