diff --git a/src/uxbox/util/math.cljs b/src/uxbox/util/math.cljs index ed392183e..ff8c97fac 100644 --- a/src/uxbox/util/math.cljs +++ b/src/uxbox/util/math.cljs @@ -26,7 +26,7 @@ [^number v] (- v)) -(defn radiants +(defn radians "Converts degrees to radians." [^number degrees] (math/toRadians degrees)) diff --git a/src/uxbox/util/svg.cljs b/src/uxbox/util/svg.cljs index 212a587b7..add325208 100644 --- a/src/uxbox/util/svg.cljs +++ b/src/uxbox/util/svg.cljs @@ -23,8 +23,8 @@ (defn rotation-matrix [^number degrees] - (let [v1 (mth/cos (mth/radiants degrees)) - v2 (mth/sin (mth/radiants degrees)) + (let [v1 (mth/cos (mth/radians degrees)) + v2 (mth/sin (mth/radians degrees)) v3 (mth/neg v2)] (mtx/matrix [[v1 v3 0] [v2 v1 0]