Last active
May 21, 2020 01:49
-
-
Save raganmd/b9354e51c27949013ef3317db584ae0c to your computer and use it in GitHub Desktop.
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
float remap(float value, float inMin, float inMax, float outMin, float outMax){ | |
return (outMax - outMin) * (value - inMin) / (inMax - outMin) + newMin; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment