Constant function functor: f(x) = c.
More...
#include <MathUtils_FunctorScalar.hxx>
|
| | Constant (double theValue) |
| | Constructor from constant value.
|
| bool | Value (double, double &theY) const |
| | Evaluates constant function.
|
| bool | Values (double, double &theY, double &theDY) const |
| | Evaluates constant and derivative (derivative is always 0).
|
Constant function functor: f(x) = c.
◆ Constant()
| MathUtils::Constant::Constant |
( |
double | theValue | ) |
|
|
inlineexplicit |
Constructor from constant value.
- Parameters
-
◆ Value()
| bool MathUtils::Constant::Value |
( |
double | , |
|
|
double & | theY ) const |
|
inline |
Evaluates constant function.
- Parameters
-
| [in] | theX | input value (ignored) |
| [out] | theY | constant value |
- Returns
- true (always succeeds)
◆ Values()
| bool MathUtils::Constant::Values |
( |
double | , |
|
|
double & | theY, |
|
|
double & | theDY ) const |
|
inline |
Evaluates constant and derivative (derivative is always 0).
- Parameters
-
| [in] | theX | input value (ignored) |
| [out] | theY | constant value |
| [out] | theDY | derivative (always 0) |
- Returns
- true (always succeeds)
The documentation for this class was generated from the following file: