mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +00:00
AK: Make grepping for "lerp" find mix()
This commit is contained in:
parent
7ca71959e1
commit
077164ae15
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue