PolyFEM
Loading...
Searching...
No Matches
polyfem::utils::LinearRamp Class Reference

#include <Interpolation.hpp>

Inheritance diagram for polyfem::utils::LinearRamp:
[legend]
Collaboration diagram for polyfem::utils::LinearRamp:
[legend]

Public Member Functions

double eval (const double t) const override
 
void init (const json &params) override
 
- Public Member Functions inherited from polyfem::utils::Interpolation
virtual ~Interpolation ()
 

Private Attributes

double to_
 
double from_
 

Additional Inherited Members

- Static Public Member Functions inherited from polyfem::utils::Interpolation
static std::shared_ptr< Interpolationbuild (const json &params)
 

Detailed Description

Definition at line 32 of file Interpolation.hpp.

Member Function Documentation

◆ eval()

double polyfem::utils::LinearRamp::eval ( const double  t) const
overridevirtual

Implements polyfem::utils::Interpolation.

Definition at line 47 of file Interpolation.cpp.

References from_, and to_.

◆ init()

void polyfem::utils::LinearRamp::init ( const json params)
overridevirtual

Reimplemented from polyfem::utils::Interpolation.

Definition at line 41 of file Interpolation.cpp.

References from_, and to_.

Member Data Documentation

◆ from_

double polyfem::utils::LinearRamp::from_
private

Definition at line 40 of file Interpolation.hpp.

Referenced by eval(), and init().

◆ to_

double polyfem::utils::LinearRamp::to_
private

Definition at line 39 of file Interpolation.hpp.

Referenced by eval(), and init().


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