Modifies a transform such that a specified rotation around a specified point is performed on any points multiplied by the transform.
graphics-ports
apply-rotation-around-point transform theta x y => transform
transform⇩ |
A transform. |
theta⇩ |
A real number. |
x⇩ |
A real number. |
y⇩ |
A real number. |
transform |
A transform. |
The function apply-rotation-around-point
modifies transform such that a clockwise rotation of theta radians around the point (x,y) is performed on any points multiplied by the transform. Any operations already contained in the transform occur before the new rotation.
apply-rotation-around-point
returns the transform.
See graphics-state for details of how a transform is used.
(example-edit-file "capi/graphics/rotation-around-point")
There are further examples in 20 Self-contained examples.
CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:44