Created
October 29, 2017 06:15
-
-
Save nashvail/7c0114ae0f2e5057d21781a7d0f55ab3 to your computer and use it in GitHub Desktop.
General physics simulation utils.
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
export default { | |
clamp (n, min, max) { | |
return Math.min(Math.max(n, min), max); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment