Created
March 28, 2026 18:45
-
-
Save fernoe1/f32716a0515e00092a21ecc7b2d766f8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 originMin, float originMax, float destinationMin, float destinationMax) { | |
| return destinationMin + (value - originMin) * (destinationMax - destinationMin) / (originMax - originMin); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment