mirror of
https://github.com/penpot/penpot.git
synced 2025-07-02 06:17:16 +02:00
Add abs function to math tools.
This commit is contained in:
parent
0eec54fc30
commit
8b26da4e36
1 changed files with 4 additions and 0 deletions
|
@ -2,6 +2,10 @@
|
|||
"A collection of math utils."
|
||||
(:require [goog.math :as math]))
|
||||
|
||||
(defn abs
|
||||
[^number v]
|
||||
(js/Math.abs v))
|
||||
|
||||
(defn sin
|
||||
"Returns the sine of a number"
|
||||
[^number v]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue