0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 00:40:30 -05:00

Add missing math functions.

This commit is contained in:
Andrey Antukh 2016-02-04 22:41:17 +02:00
parent 0f16e1d1cb
commit 996770a625

View file

@ -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]