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;

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

The distance is returned as a double value.

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