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

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

 

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