Close

Relief for ODA Team in Ukraine

Learn more
ODA Kernel SDK
OdGeCurve2d::midPoint Method
Syntax
C++
OdGePoint2d midPoint(double coef = 0.5) const;

Calculates a point from the curve interval that corresponds to the specified coefficient. 

 

Parameters
Description
coef
[in] Coefficient from the interval [0; 1].

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

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-2022. Open Design Alliance All rights reserved.