API Reference > FacetModeler Namespace > Classes > Segment2D Class > Segment2D Methods > Segment2D::isOn Method
Segment2D::isOn Method
Syntax
C++
bool isOn(const OdGePoint2d& ptTest, double* pParam = NULL, const OdGeTol& gTol = FMGeGbl::gTol) const;
Parameters 
Description 
const OdGePoint2d& ptTest 
[in] Point to test.  
double* pParam = NULL 
[out] Resulting parameter.  
const OdGeTol& gTol = FMGeGbl::gTol 
[in] Tolerance.  

true if the point lies on the segment, or false otherwise.

Checks whether the point lies within a tolerance on the segment. 

 

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