API Reference > OdGe Classes > OdGeCurve2d Class > OdGeCurve2d Methods > getClosestPointTo Method > OdGeCurve2d::getClosestPointTo Method (OdGeCurve2d&, OdGePointOnCurve2d&, OdGePointOnCurve2d&, OdGeTol&)
OdGeCurve2d::getClosestPointTo Method (OdGeCurve2d&, OdGePointOnCurve2d&, OdGePointOnCurve2d&, OdGeTol&)
Syntax
C++
void getClosestPointTo(const OdGeCurve2d& curve2d, OdGePointOnCurve2d& pntOnThisCrv, OdGePointOnCurve2d& pntOnOtherCrv, const OdGeTol& tol = OdGeContext::gTol) const;
Parameters 
Description 
const OdGeCurve2d& curve2d 
[in] Input curve.  
OdGePointOnCurve2d& pntOnThisCrv 
[out] Receives the closest point on this curve.  
OdGePointOnCurve2d& pntOnOtherCrv 
[in] A point on the other curve.  
const OdGeTol& tol = OdGeContext::gTol 
[in] Geometric tolerance.  

Returns the closest point of this curve.

Finds the point on this curve which is the closest to the point of an input curve.

This function is the same as getClosestPointTo(). By default this function throws the exception "not Implemented". Should be implemented in derived classes.

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