Created
September 14, 2022 05:25
-
-
Save Shilo/6196b6826a2897b4e6d5c2ec2fe81807 to your computer and use it in GitHub Desktop.
Lua function to lerp between min and max numbers.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function Lerp(min, max, alpha) | |
return (max - min) * alpha + min | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment