Interpolator.hpp
Go to the documentation of this file.
33 struct has_interpolate< T, typename interpolator::to_void<typename T::interpolate>::type > : std::true_type{};
44 static_assert( interpolator::always_false< Type >::value, "Interpolator::Distance not defined for given type." );
58 std::pair< Type, Interpolator_float > Interpolate( Type const & from, Type const & to, Interpolator_float distance ) const
60 static_assert( interpolator::always_false< Type >::value, "Interpolator::Interpolate not defined for given type." );
69 Interpolator_float Distance( std::optional< T > const & from, std::optional< T > const & to ) const
81 std::pair< std::optional< T >, Interpolator_float > Interpolate( std::optional< T > const & from, std::optional< T > const & to, Interpolator_float distance ) const
103 std::pair< Float, Interpolator_float > Interpolate( Float const & from, Float const & to, Interpolator_float distance ) const
121 std::pair< Int, Interpolator_float > Interpolate( Int const & from, Int const & to, Interpolator_float distance ) const
126 Interpolator_float fresult = mix_max( Interpolator_float( from ), Interpolator_float( to ), distance );
144 std::pair< std::string, Interpolator_float > Interpolate( std::string const & from, std::string const & to, Interpolator_float distance ) const