math.hpp
Go to the documentation of this file.
7 Float mix_max( Float from, Float to, Float maxDist, std::enable_if_t< std::is_floating_point< Float >::value, std::nullptr_t > = nullptr )
43 return bounds.template get< 0 >() + factor * ( bounds.template get< 1 >() - bounds.template get< 0 >() );
57 return double( value - bounds.template get< 0 >() ) / double( bounds.template get< 1 >() - bounds.template get< 0 >() );