rotate -package:diagrams-lib

rotate x i rotates x left by i bits if i is positive, or right by -i bits otherwise. For unbounded types like Integer, rotate is equivalent to shift. An instance can define either this unified rotate or rotateL and rotateR, depending on which is more convenient for the type in question.
Apply a rotation to a vector.
rotate left
Rotating log files.
Modifies the current transformation matrix (CTM) by rotating the user-space axes by angle radians. The rotation of the axes takes places after any existing transformation of user space. The rotation direction for positive angles is from the positive X axis toward the positive Y axis.
A picture rotated clockwise by the given angle (in degrees).
Copied from Graphics.Rendering.Cairo.Matrix Rotations angle is given in radians.
Rotates the stack elements between the valid index idx and the top of the stack. The elements are rotated n positions in the direction of the top, for a positive n, or -n positions in the direction of the bottom, for a negative n. The absolute value of n must not be greater than the size of the slice being rotated. This function cannot be called with a pseudo-index, because a pseudo-index is not an actual stack position. https://www.lua.org/manual/5.4/manual.html#lua_rotate
Specifies a rotation by rotate-angle degrees
Combinator for the rotate attribute.
Specifies a rotation by rotate-angle degrees
Rotate an Affinity (counter-clockwise)
Rotation matrix
Create a transformation representing a rotation on the plane.
fill . transform (applyTransformation $ rotate 0.2)
$ rectangle (V2 40 40) 120 120
rotate f rotates a diagram clockwise by fraction f of a complete revolution. rotate f is equivalent to rotateR (2*pi*f).
Create a transform that rotates by the given angle (radians).
Rotate the current transform matrix.
Rotates current coordinate system. Angle is specified in radians.
Applies a rotation transformation to the canvas. When you call functions such as fillRect after rotate, the drawings will be rotated clockwise by the angle given to rotate (in radians).

Example

rotate (pi/2)        -- Rotate the canvas 90°
fillRect(0, 0, 20, 10) -- Draw a 10x20 rectangle