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

Fix typo on radians function name.

This commit is contained in:
Andrey Antukh 2016-01-19 22:00:21 +02:00
parent 8b26da4e36
commit b00e2118bc
2 changed files with 3 additions and 3 deletions

View file

@ -26,7 +26,7 @@
[^number v]
(- v))
(defn radiants
(defn radians
"Converts degrees to radians."
[^number degrees]
(math/toRadians degrees))

View file

@ -23,8 +23,8 @@
(defn rotation-matrix
[^number degrees]
(let [v1 (mth/cos (mth/radiants degrees))
v2 (mth/sin (mth/radiants degrees))
(let [v1 (mth/cos (mth/radians degrees))
v2 (mth/sin (mth/radians degrees))
v3 (mth/neg v2)]
(mtx/matrix [[v1 v3 0]
[v2 v1 0]