MathLib
Loading...
Searching...
No Matches
Namespaces | Functions
Functions.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  Math
 

Functions

template<class Type >
constexpr Type lerp (Type input_lower_bound, Type input_upper_bound, float percentage_zero_to_one)
 
template<class Type >
constexpr Type mix (Type input_lower_bound, Type input_upper_bound, float percentage_zero_to_one)
 
template<class Type >
constexpr Type inverse_lerp (Type input_lower_bound, Type input_upper_bound, Type value_between)
 
template<class Type >
constexpr Type remap (Type input_value, Type orig_range_min, Type orig_range_max, Type new_range_min, Type new_range_max)
 
template<class Type >
constexpr const Type & saturate (const Type &value, const Type &lower_bound, const Type &upper_bound)
 
template<class Type >
constexpr Type step (Type y, Type x)
 
constexpr float smoothstep (float input_value, float left_edge=0.0f, float right_edge=1.0f)
 
template<class Type >
constexpr Type smootherstep (Type input_value, Type left_edge, Type right_edge)
 
template<class Type = float>
constexpr Type smoothstep_generalized (Type input_value, Type left_edge=0, Type right_edge=1, int Order=1)
 
template<class Type = float>
constexpr Type inverse_smoothstep (Type input_value)
 
template<class Type >
Type fract (Type input)