Table of Contents

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. The polyline is not extended past its ends.

public override GeoPoint3 GetClosestPointTo(GeoPoint3 givenPoint, bool extend)

Parameters

givenPoint GeoPoint3

The point.

extend bool

Not read: the polyline is taken as it is.

Returns

GeoPoint3

The nearest point, in the world.

Exceptions

InvalidOperationException

Thrown when the polyline has no vertex.