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

Returns the point on this curve closest to the specified point when this curve is projected in the specified direction. 

 

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

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