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

Cosine function functor: f(x) = a * cos(b*x + c) + d. More...

#include <MathUtils_FunctorScalar.hxx>

Public Member Functions

 Cosine (double theAmplitude=1.0, double theFrequency=1.0, double thePhase=0.0, double theOffset=0.0)
 Constructor with full parameters.
 
bool Value (double theX, double &theY) const
 Evaluates cosine function.
 
bool Values (double theX, double &theY, double &theDY) const
 Evaluates cosine function and derivative.
 

Detailed Description

Cosine function functor: f(x) = a * cos(b*x + c) + d.

Constructor & Destructor Documentation

◆ Cosine()

MathUtils::Cosine::Cosine ( double theAmplitude = 1.0,
double theFrequency = 1.0,
double thePhase = 0.0,
double theOffset = 0.0 )
inline

Constructor with full parameters.

Parameters
theAmplitudeamplitude a
theFrequencyangular frequency b
thePhasephase shift c
theOffsetvertical offset d

Member Function Documentation

◆ Value()

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

Evaluates cosine function.

Parameters
[in]theXinput value
[out]theYfunction value
Returns
true (always succeeds)

◆ Values()

bool MathUtils::Cosine::Values ( double theX,
double & theY,
double & theDY ) const
inline

Evaluates cosine function and derivative.

Parameters
[in]theXinput value
[out]theYfunction value
[out]theDYderivative value
Returns
true (always succeeds)

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