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

Returns the distance to the point on this curve closest to the specified curve. 

 

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