MeshLib Documentation
Loading...
Searching...
No Matches
MR::PolynomialWrapper< T > Struct Template Reference

This is a unifying interface for a polynomial of some degree, known only in runtime. More...

#include <MRBestFitPolynomial.h>

Public Member Functions

template<size_t degree>
 PolynomialWrapper (const Polynomial< T, degree > &p)
 
MRMESH_APIoperator() (T x) const
 
MRMESH_API PolynomialWrapper< T > deriv () const
 
MRMESH_API std::optional< T > intervalMin (T a, T b) const
 

Public Attributes

Polynomialx< T > poly
 

Detailed Description

template<typename T>
struct MR::PolynomialWrapper< T >

This is a unifying interface for a polynomial of some degree, known only in runtime.

Constructor & Destructor Documentation

◆ PolynomialWrapper()

template<typename T >
template<size_t degree>
MR::PolynomialWrapper< T >::PolynomialWrapper ( const Polynomial< T, degree > & p)
inline

Member Function Documentation

◆ deriv()

template<typename T >
MRMESH_API PolynomialWrapper< T > MR::PolynomialWrapper< T >::deriv ( ) const

◆ intervalMin()

template<typename T >
MRMESH_API std::optional< T > MR::PolynomialWrapper< T >::intervalMin ( T a,
T b ) const

◆ operator()()

template<typename T >
MRMESH_API T MR::PolynomialWrapper< T >::operator() ( T x) const

Member Data Documentation

◆ poly

template<typename T >
Polynomialx<T> MR::PolynomialWrapper< T >::poly

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