API Reference > OdGe Classes > OdGeCurve3d Class > OdGeCurve3d Methods > OdGeCurve3d::midPoint Method
OdGeCurve3d::midPoint Method
Syntax
C++
OdGePoint3d midPoint(double coef = 0.5) const;
Parameters 
Description 
double coef = 0.5 
[in] Coefficient from the interval [0; 1].  

Point from the curve interval that corresponds to the coefficient parameter.

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.
Otherwise, an exception eNotApplicable will be thrown. 

The curve must have a bounded interval otherwise, an exception eCurveEndsMissed will be thrown.

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