lerpOp1< T > Struct Template Reference

Linear interpolation (lerp) with interpolation value defined on construct. More...

Public Member Functions

 lerpOp1 (scalar v)
 
FOAM_NODISCARD T operator() (const T &a, const T &b) const
 

Public Attributes

const scalar value
 

Detailed Description

template<class T>
struct Foam::lerpOp1< T >

Linear interpolation (lerp) with interpolation value defined on construct.

Definition at line 286 of file ops.H.

Constructor & Destructor Documentation

◆ lerpOp1()

lerpOp1 ( scalar  v)
inline

Definition at line 290 of file ops.H.

Member Function Documentation

◆ operator()()

FOAM_NODISCARD T operator() ( const T a,
const T b 
) const
inline

Definition at line 292 of file ops.H.

References Foam::constant::physicoChemical::b, Foam::lerp(), and lerpOp1< T >::value.

Here is the call graph for this function:

Member Data Documentation

◆ value

const scalar value

Definition at line 288 of file ops.H.

Referenced by lerpOp1< T >::operator()().


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