🚧 Start working on shape rotation (with mouse handlers).

This commit is contained in:
Andrey Antukh 2020-01-15 00:15:23 +01:00
parent 747213dea3
commit 338a0b97ac
4 changed files with 89 additions and 36 deletions

View file

@ -116,7 +116,7 @@
If the second vector is not provided, the angle
will be measured from x-axis."
([p]
{:pre [(point? p)]}
(-> (mth/atan2 (:y p) (:x p))
(mth/degrees)))
([p center]