mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-24 03:25:02 +00:00
AK: Make grepping for "lerp" find mix()
This commit is contained in:
parent
7ca71959e1
commit
077164ae15
|
@ -114,7 +114,7 @@ constexpr T clamp(T const& value, IdentityType<T> const& min, IdentityType<T> co
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T, typename U>
|
template<typename T, typename U>
|
||||||
constexpr T mix(T const& v1, T const& v2, U const& interpolation)
|
constexpr T mix(T const& v1, T const& v2, U const& interpolation) // aka lerp
|
||||||
{
|
{
|
||||||
return v1 + (v2 - v1) * interpolation;
|
return v1 + (v2 - v1) * interpolation;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue