Very small bug in sanitise-angle, fixed.

This commit is contained in:
Simon Brooke 2025-08-30 12:59:49 +01:00
parent 252ddaf5a6
commit 9e20a60d71

View file

@ -45,7 +45,7 @@
p (pos? angle)
v (cond (.isNaN js/Number a) 0
(< a 0.5) 0
(<= a 360) angle
(<= a 360) a
;; TODO: `rem` is possibly wrong when we get into negative numbers
:else (loop [r a]
(if (<= r 360) r