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. 

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

This function is the same as getClosestPointTo().

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