1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-05 22:10:24 +00:00

AK: Make grepping for "lerp" find mix()

This commit is contained in:
Nico Weber 2023-04-12 08:58:29 -04:00 committed by Linus Groh
parent 7ca71959e1
commit 077164ae15

View File

@ -114,7 +114,7 @@ constexpr T clamp(T const& value, IdentityType<T> const& min, IdentityType<T> co
}
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;
}