API Reference > OdGe Classes > OdGeCurve2d Class > OdGeCurve2d Methods > getClosestPointTo Method > OdGeCurve2d::getClosestPointTo Method (OdGePoint2d&, OdGePointOnCurve2d&, OdGeTol&)
OdGeCurve2d::getClosestPointTo Method (OdGePoint2d&, OdGePointOnCurve2d&, OdGeTol&)
Syntax
C++
void getClosestPointTo(const OdGePoint2d& point, OdGePointOnCurve2d& pntOnCrv, const OdGeTol& tol = OdGeContext::gTol) const;
Parameters 
Description 
const OdGePoint2d& point 
[in] Input point.  
OdGePointOnCurve2d& pntOnCrv 
[out] Closest point on this curve to the input point.  
const OdGeTol& tol = OdGeContext::gTol 
[in] Geometric tolerance.  

Returns the closest point of this curve.

Finds the closest point on this curve to the input point.

By default this function throws the exception "not Implemented". Should be implemented in derived classes.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.