diff options
author | Logan Hunt <loganhunt@simponic.xyz> | 2022-04-18 21:07:55 -0600 |
---|---|---|
committer | Logan Hunt <loganhunt@simponic.xyz> | 2022-04-18 21:07:55 -0600 |
commit | 9b597426ac45775f63b1fe4365c6fa8f3c3179af (patch) | |
tree | 0768f5aebcd9ef9f60824f389e1e197f32e4e578 /src/utils/clamp.js | |
parent | 1cffeb5520e416893a93545dc4356365b762a1f7 (diff) | |
download | bbiy-9b597426ac45775f63b1fe4365c6fa8f3c3179af.tar.gz bbiy-9b597426ac45775f63b1fe4365c6fa8f3c3179af.zip |
Wow this is some shitty fucking code god damn
Diffstat (limited to 'src/utils/clamp.js')
-rw-r--r-- | src/utils/clamp.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/clamp.js b/src/utils/clamp.js index b709ee5..b0da861 100644 --- a/src/utils/clamp.js +++ b/src/utils/clamp.js @@ -3,4 +3,4 @@ const clamp = (vector, maxX, maxY) => { newVector.x = Math.max(0, Math.min(maxX, vector.x)); newVector.y = Math.max(0, Math.min(maxY, vector.y)); return newVector; -}
\ No newline at end of file +}; |