Method GetClosestPoint
- Namespace
- GeometryHelper.Spatial
- Assembly
- GeometryHelper.dll
GetClosestPoint(GeoPoint2)
Gets the point of the indexed edges nearest a point.
public GeoPoint2 GetClosestPoint(GeoPoint2 point)
Parameters
pointGeoPoint2
Returns
Exceptions
- InvalidOperationException
Thrown when nothing was indexed.
GetClosestPoint(GeoPoint2, Tolerance)
Gets the point of the indexed edges nearest a point, within a tolerance.
public GeoPoint2 GetClosestPoint(GeoPoint2 point, Tolerance tolerance)
Parameters
Returns
Remarks
A branch whose box is further away than the best found so far cannot hold anything nearer, so it is not looked at. That is the whole of what the tree buys.
Exceptions
- InvalidOperationException
Thrown when nothing was indexed.