API Reference > OdGe Classes > OdGeCurve2d Class > OdGeCurve2d Methods > closestPointTo Method > OdGeCurve2d::closestPointTo Method (OdGePoint2d&, OdGeTol&)
OdGeCurve2d::closestPointTo Method (OdGePoint2d&, OdGeTol&)
Syntax
C++
OdGePoint2d closestPointTo(const OdGePoint2d& point, const OdGeTol& tol = OdGeContext::gTol) const;
Parameters 
Description 
const OdGePoint2d& point 
[in] Input point according to which the closest point on this curve is searched.  
const OdGeTol& tol = OdGeContext::gTol 
[in] Geometric tolerance.  

The closest point on this curve.

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

 

This function is the same as getClosestPointTo().

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