Table of Contents

Method GetClosestPointOnBoundary

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

GetClosestPointOnBoundary(GeoPoint2)

Gets the point of the edge closest to a point.

public GeoPoint2 GetClosestPointOnBoundary(GeoPoint2 point)

Parameters

point GeoPoint2

Returns

GeoPoint2

GetClosestPointOnBoundary(GeoPoint2, Tolerance)

Gets the point of the edge closest to a point, within a tolerance.

public GeoPoint2 GetClosestPointOnBoundary(GeoPoint2 point, Tolerance tolerance)

Parameters

point GeoPoint2
tolerance Tolerance

Returns

GeoPoint2

Remarks

A point within the tolerance of the centre of an arc is read as at the centre, which has no direction, and is carried to the arc's start; the distance to the point is the exact one, so the line can be longer than it, by at most twice the point's offset from the centre. At a tolerance of a thousandth, the point (0, -0.0009) and the arc of radius 50 about the origin from (-50, 0) to (50, 0) through (0, -50): the closest point is (-50, 0), 50.00000001 away, where the distance is 49.9991.