Antkeeper  0.0.1
Namespaces | Functions
interpolation.hpp File Reference
#include <engine/math/angles.hpp>
#include <cmath>

Go to the source code of this file.

Namespaces

 math
 Mathematical functions and data types.
 

Functions

template<typename T , typename S = float>
constexpr T math::lerp (const T &x, const T &y, S a) noexcept
 Linearly interpolates between x and y. More...
 
template<typename T >
constexpr T math::lerp_angle (T x, T y, T a)
 Linearly interpolates between two angles, x and y. More...
 
template<typename T , typename S = float>
math::log_lerp (const T &x, const T &y, S a)
 Logarithmically interpolates between x and y. More...