Very small bug in sanitise-angle, fixed.
This commit is contained in:
parent
252ddaf5a6
commit
9e20a60d71
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue