API Reference > OdGe Classes > OdGeCurve2d Class > OdGeCurve2d Methods > OdGeCurve2d::hasMidPoint Method
OdGeCurve2d::hasMidPoint Method
Syntax
C++
bool hasMidPoint(OdGePoint2d& point, double coef = 0.5) const;
Parameters 
Description 
OdGePoint2d& point 
[out] Receives the point from the curve interval that corresponds to the coefficient.  
double coef = 0.5 
[in] Coefficient from the interval [0; 1].  

true if and only if the parametric interval of the curve is bounded and the value of the coef variable lies within [0; 1].

Checks the boundaries of the curve interval and calculates a point from the curve interval that corresponds to the specified coefficient. 

 

The value of the coef variable must be within [0; 1], where

  • 0 is the beginning of the curve interval,
  • 0.5 is the middle of the curve interval,
  • 1 is the end of the curve interval.

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