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

Returns the closest point of this curve.

Finds the closest point between this curve and the point of an input curve.

This function is the same as getClosestPointTo(). By default this function throws the exception "not Implemented". Should be implemented in derived classes.

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