![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Linear function functor: f(x) = a*x + b. More...
#include <MathUtils_FunctorScalar.hxx>
Public Member Functions | |
| Linear (double theSlope, double theIntercept) | |
| Constructor from slope and intercept. | |
| bool | Value (double theX, double &theY) const |
| Evaluates linear function a*x + b. | |
| bool | Values (double theX, double &theY, double &theDY) const |
| Evaluates linear function and derivative. | |
Constructor from slope and intercept.
| theSlope | coefficient a (slope) |
| theIntercept | coefficient b (y-intercept) |
Evaluates linear function a*x + b.
| [in] | theX | input value |
| [out] | theY | function value |
Evaluates linear function and derivative.
| [in] | theX | input value |
| [out] | theY | function value |
| [out] | theDY | derivative (= slope) |