Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
MathUtils::Constant Class Reference

Constant function functor: f(x) = c. More...

#include <MathUtils_FunctorScalar.hxx>

Public Member Functions

 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).
 

Detailed Description

Constant function functor: f(x) = c.

Constructor & Destructor Documentation

◆ Constant()

MathUtils::Constant::Constant ( double theValue)
inlineexplicit

Constructor from constant value.

Parameters
theValueconstant value

Member Function Documentation

◆ Value()

bool MathUtils::Constant::Value ( double ,
double & theY ) const
inline

Evaluates constant function.

Parameters
[in]theXinput value (ignored)
[out]theYconstant 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]theXinput value (ignored)
[out]theYconstant value
[out]theDYderivative (always 0)
Returns
true (always succeeds)

The documentation for this class was generated from the following file: