Public Member Functions | Private Attributes | List of all members
SurgSim::Math::PolynomialValues< T, 1 > Class Template Reference

PolynomialValues<T, 1> specializes the PolynomialValues class for degree 1 (linear polynomials) More...

#include <SurgSim/Math/PolynomialValues.h>

Public Member Functions

 PolynomialValues (const Polynomial< T, 1 > &p)
 Constructor. More...
 
const Polynomial< T, 1 > & getPolynomial () const
 
Interval< T > valuesOverInterval (const Interval< T > &interval) const
 

Private Attributes

Polynomial< T, 1 > m_polynomial
 The polynomial under consideration. More...
 

Detailed Description

template<class T>
class SurgSim::Math::PolynomialValues< T, 1 >

PolynomialValues<T, 1> specializes the PolynomialValues class for degree 1 (linear polynomials)

See also
PolynomialValues<T, N>

Constructor & Destructor Documentation

◆ PolynomialValues()

template<class T >
SurgSim::Math::PolynomialValues< T, 1 >::PolynomialValues ( const Polynomial< T, 1 > &  p)
explicit

Constructor.

Initialize based on the polynomial p

Parameters
ppolynomial on which the value calculations are based

Member Function Documentation

◆ getPolynomial()

template<class T >
const Polynomial< T, 1 > & SurgSim::Math::PolynomialValues< T, 1 >::getPolynomial ( ) const
Returns
the polynomial basis of this calculation

◆ valuesOverInterval()

template<class T >
Interval< T > SurgSim::Math::PolynomialValues< T, 1 >::valuesOverInterval ( const Interval< T > &  interval) const
Parameters
intervalan interval on the independent variable over which the values are to be calculated
Returns
the minimum and maximum polynomial values over interval

Member Data Documentation

◆ m_polynomial

template<class T >
Polynomial<T, 1> SurgSim::Math::PolynomialValues< T, 1 >::m_polynomial
private

The polynomial under consideration.


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