mirror of
https://github.com/penpot/penpot.git
synced 2026-07-23 06:28:14 +00:00
Add missing math functions.
This commit is contained in:
parent
0f16e1d1cb
commit
996770a625
@ -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]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user