mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
AK: Make grepping for "lerp" find mix()
This commit is contained in:
parent
7ca71959e1
commit
077164ae15
Notes:
sideshowbarker
2024-07-17 06:54:15 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/077164ae15 Pull-request: https://github.com/SerenityOS/serenity/pull/18322 Reviewed-by: https://github.com/linusg
@ -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