Define rotation transform
This commit is contained in:
parent
8738229053
commit
668d369943
@ -61,6 +61,10 @@
|
|||||||
:y-transform (* scale-factor y)
|
:y-transform (* scale-factor y)
|
||||||
:scalar-transform (* scale-factor s))
|
:scalar-transform (* scale-factor s))
|
||||||
|
|
||||||
|
(define-transform rotate (theta)
|
||||||
|
:x-transform (- (* x (cos theta)) (* y (sin theta)))
|
||||||
|
:y-transform (+ (* x (sin theta)) (* y (cos theta))))
|
||||||
|
|
||||||
(defun overlay (&rest drawings)
|
(defun overlay (&rest drawings)
|
||||||
(apply #'append drawings))
|
(apply #'append drawings))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user