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

Distance value.

Returns the distance of the closest points between this curve and the input curve. 

 

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