Skip to content

Instantly share code, notes, and snippets.

@JamesMcMahon
Created May 4, 2016 19:43
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JamesMcMahon/3010c6e514f6828199878788541e7a75 to your computer and use it in GitHub Desktop.
Save JamesMcMahon/3010c6e514f6828199878788541e7a75 to your computer and use it in GitHub Desktop.
Lerp code in Ruby, just for reference
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