Created
May 4, 2016 19:43
-
-
Save JamesMcMahon/3010c6e514f6828199878788541e7a75 to your computer and use it in GitHub Desktop.
Lerp code in Ruby, just for reference
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
def lerp(start, stop, step) | |
(stop * step) + (start * (1.0 - step)) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment