mirror of
https://github.com/penpot/penpot.git
synced 2025-07-02 08:27:18 +02: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]
|
[^number v]
|
||||||
(- v))
|
(- v))
|
||||||
|
|
||||||
(defn radiants
|
(defn radians
|
||||||
"Converts degrees to radians."
|
"Converts degrees to radians."
|
||||||
[^number degrees]
|
[^number degrees]
|
||||||
(math/toRadians degrees))
|
(math/toRadians degrees))
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
|
|
||||||
(defn rotation-matrix
|
(defn rotation-matrix
|
||||||
[^number degrees]
|
[^number degrees]
|
||||||
(let [v1 (mth/cos (mth/radiants degrees))
|
(let [v1 (mth/cos (mth/radians degrees))
|
||||||
v2 (mth/sin (mth/radiants degrees))
|
v2 (mth/sin (mth/radians degrees))
|
||||||
v3 (mth/neg v2)]
|
v3 (mth/neg v2)]
|
||||||
(mtx/matrix [[v1 v3 0]
|
(mtx/matrix [[v1 v3 0]
|
||||||
[v2 v1 0]
|
[v2 v1 0]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue