API Reference > FacetModeler Namespace > Classes > Segment2D Class > Segment2D Methods > Segment2D::nearestParam Method
Segment2D::nearestParam Method
Syntax
C++
double nearestParam(const OdGePoint2d& ptTest, OdGePoint2d* ptNearest = NULL) const;
Parameters 
Description 
const OdGePoint2d& ptTest 
[in] Point to test.  
OdGePoint2d* ptNearest = NULL 
[out] Nearest point.  

parameter of a point on the curve that is closest to ptTest.

Calculates the nearest parameter to the specified point. 

 

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