Table of Contents

Method GetClosestPointTo

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

GetClosestPointTo(GeoPoint3, bool)

Gets the point of the line nearest a point, as AutoCAD's GetClosestPointTo: on the segment, or on the infinite line through it where it is extended.

public override GeoPoint3 GetClosestPointTo(GeoPoint3 givenPoint, bool extend)

Parameters

givenPoint GeoPoint3

The point.

extend bool

Whether the line is taken as the infinite line through it.

Returns

GeoPoint3

The nearest point; the start for a line of no length.