API Reference > OdGe Classes > OdGeCurve3d Class > OdGeCurve3d Methods > OdGeCurve3d::hasMidPoint Method
OdGeCurve3d::hasMidPoint Method
Syntax
C++
bool hasMidPoint(OdGePoint3d& point, double coef = 0.5) const;
Parameters 
Description 
OdGePoint3d& 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.