tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
lerp.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  etl
 

Functions

template<floating_point Float>
constexpr auto lerp (Float a, Float b, Float t) noexcept -> Float
 Computes a+t(b−a), i.e. the linear interpolation between a and b for the parameter t (or extrapolation, when t is outside the range [0,1]).