From 996770a62590031b4b164462291299612b8ba129 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 4 Feb 2016 22:41:17 +0200 Subject: [PATCH] Add missing math functions. --- src/uxbox/util/math.cljs | 10 ++++++++++ 1 file changed, 10 insertions(+) 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]