Method GetClosestPointTo
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
GetClosestPointTo(GeoPoint3, bool)
Gets the point of the polyline nearest a point, as AutoCAD's GetClosestPointTo: the first segment's where two are as near.
public override GeoPoint3 GetClosestPointTo(GeoPoint3 givenPoint, bool extend)
Parameters
Returns
- GeoPoint3
The nearest point, in the world.
Exceptions
- InvalidOperationException
Thrown when the polyline has no vertex.