20template <
typename Type>
26template <
typename Type>
33template <
typename Type>
50template <
typename Type>
60template <
typename Type>
69template <
typename Type>
79template <
typename InputType,
82 const InputType& minInput,
83 const InputType& maxInput,
84 const OutputType& minOutput,
85 const OutputType& maxOutput,
86 const InputType& value);
Definition Interpolation.h:11
Definition Interpolation.h:12
Definition Interpolation.h:9
Definition Interpolation.h:16
constexpr Type clampedLerp(const Type &min, const Type &max, const float value)
Clamped linear interpolation, it always return a value in [min, max] regardless of if value is in [0,...
constexpr OutputType remap(const InputType &minInput, const InputType &maxInput, const OutputType &minOutput, const OutputType &maxOutput, const InputType &value)
Remap a value from [minInput, maxInput] range to [minOutput, maxOutput], depending on where value is ...
constexpr sf::Vector2< Type > round(const sf::Vector2< Type > &value)
Round sf::Vector2 components.
constexpr Type lerp(const Type &min, const Type &max, const float value)
Linear interpolation between min and max if value belong to [0, 1], with extrapolation otherwise (see...
constexpr Type clamp(const Type min, const Type max, const Type value)
Clamp value between min and max.
constexpr float inverseLerp(const Type &min, const Type &max, const Type &value)
Inverse linear interpolation. Return in [0, 1] range if value is in [min, max].