Table of Contents

Method GetClosestPointTo

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

GetClosestPointTo(GeoPoint3, bool)

Gets the point of the leader 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

givenPoint GeoPoint3

The point.

extend bool

Not read: the leader is taken as it is.

Returns

GeoPoint3

The nearest point, in the world.

Exceptions

InvalidOperationException

Thrown when the leader has no vertex.