API Reference > OdGe Classes > OdGeCurve2d Class > OdGeCurve2d Methods > distanceTo Method > OdGeCurve2d::distanceTo Method (OdGePoint2d&, OdGeTol&)
OdGeCurve2d::distanceTo Method (OdGePoint2d&, OdGeTol&)
Syntax
C++
double distanceTo(const OdGePoint2d& point, const OdGeTol& tol = OdGeContext::gTol) const;
Parameters 
Description 
const OdGePoint2d& point 
[in] Input point.  
const OdGeTol& tol = OdGeContext::gTol 
[in] Geometric tolerance. 

Returns the distance between the input point and the closest point on this curve.

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

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