0.12.0 Freundlich's C++ toolkit
fcppt::math::interpolation Namespace Reference

Contains interpolation functions and functors. More...

## Classes

struct  linear_functor

struct  perlin_fifth_degree_functor

struct  trigonometric_functor

## Functions

template<typename Float , typename Value >
boost::enable_if_c
< boost::is_floating_point
< Float >::value, Value const >
::type
linear (Float const &f, Value const &v1, Value const &v2)

template<typename Float , typename Value >
boost::enable_if_c
< boost::is_floating_point
< Float >::value, Value const >
::type
perlin_fifth_degree (Float const &f, Value const &v1, Value const &v2)

template<typename Float , typename Value >
boost::enable_if_c
< boost::is_floating_point
< Float >::value, Value const >
::type
trigonometric (Float const &f, Value const &v1, Value const &v2)

## Detailed Description

Contains interpolation functions and functors.

## Function Documentation

template<typename Float , typename Value >
 boost::enable_if_c< boost::is_floating_point::value, Value const>::type fcppt::math::interpolation::linear ( Float const & f, Value const & v1, Value const & v2 )

Interpolates between a and b (works only with a floating point parameter)

template<typename Float , typename Value >
 boost::enable_if_c< boost::is_floating_point::value, Value const>::type fcppt::math::interpolation::perlin_fifth_degree ( Float const & f, Value const & v1, Value const & v2 )

Interpolates between a and b (works only with a floating point parameter)

template<typename Float , typename Value >
 boost::enable_if_c< boost::is_floating_point::value, Value const>::type fcppt::math::interpolation::trigonometric ( Float const & f, Value const & v1, Value const & v2 )

Interpolates between a and b (works only with a floating point parameter)