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:
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>
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user