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
givenPointGeoPoint3The point.
extendboolWhether the line is taken as the infinite line through it.
Returns
- GeoPoint3
The nearest point; the start for a line of no length.