mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 08:50:57 -05:00
Fix typo on radians function name.
This commit is contained in:
parent
8b26da4e36
commit
b00e2118bc
2 changed files with 3 additions and 3 deletions
|
@ -26,7 +26,7 @@
|
|||
[^number v]
|
||||
(- v))
|
||||
|
||||
(defn radiants
|
||||
(defn radians
|
||||
"Converts degrees to radians."
|
||||
[^number degrees]
|
||||
(math/toRadians degrees))
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue