API Reference > OdGe Classes > OdGeCurve2d Class > OdGeCurve2d Methods > paramOf Method > OdGeCurve2d::paramOf Method (OdGePoint2d&, OdGeTol&)
OdGeCurve2d::paramOf Method (OdGePoint2d&, OdGeTol&)
Syntax
C++
double paramOf(const OdGePoint2d& point, const OdGeTol& tol = OdGeContext::gTol) const;
Parameters 
Description 
const OdGePoint2d& point 
[in] Input point on the curve.  
const OdGeTol& tol = OdGeContext::gTol 
[in] Geometric tolerance. 

Returns the parameter value of a point. 

 

The returned parameters specify a point within tol of point. If point is not on the curve, the results are unpredictable. If you are not sure the point is on the curve, use isOn () instead of this function. 

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

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