Table of Contents

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

point GeoPoint2

Returns

GeoPoint2

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

point GeoPoint2
tolerance Tolerance

Returns

GeoPoint2

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.