Method GetClosestPointOnBoundary
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GetClosestPointOnBoundary(GeoPoint3)
Gets the point of the outline nearest another point.
public GeoPoint3 GetClosestPointOnBoundary(GeoPoint3 point)
Parameters
pointGeoPoint3
Returns
GetClosestPointOnBoundary(GeoPoint3, Tolerance)
Gets the point of the outline nearest another point, within a tolerance.
public GeoPoint3 GetClosestPointOnBoundary(GeoPoint3 point, Tolerance tolerance)
Parameters
Returns
Remarks
A point whose foot in the plane falls within the tolerance of the centre of a bend is read as at the centre, which has no direction, and that bend offers its start, as GetClosestPointOnBoundary(GeoPoint3, Tolerance) does; the start is one candidate among the edges' points, and another edge can still be nearer. The distance to the point is the exact one, so the line can be longer than it, by at most twice the foot's offset from the centre.
A straight side offers its nearest point as the side it is however short, as the distance measures it, where an edge on its own no longer than the tolerance is read as its start: at a tolerance of a thousandth, the loop (0, 0, 0), (10, 0, 0), (10, 0.0006, 0), (0, 10, 0), built within a ten-thousandth, is 0.00098 from (10.00098, 0.0001, 0), and the closest point is (10, 0.0001, 0), 0.00098 away, where it was (10, 0, 0), 0.000985 away.