diff --git a/src/uxbox/util/math.cljs b/src/uxbox/util/math.cljs index fc34cdc1b..27b2880ad 100644 --- a/src/uxbox/util/math.cljs +++ b/src/uxbox/util/math.cljs @@ -16,11 +16,21 @@ [^number v] (js/Math.cos v)) +(defn acos + "Returns the arccosine of a number." + [^number v] + (js/Math.acos v)) + (defn tan "Returns the tangent of a number." [^number v] (js/Math.tan v)) +(defn atan2 + "Returns the arctangent of the quotient of its arguments." + [^number x ^number y] + (js/Math.atan2 x y)) + (defn neg "Negate the number" [^number v]