Matrices · manipulative

Rotating a shape with a matrix

Drag θ. Every vertex (x, y) maps to (x cos θ − y sin θ, x sin θ + y cos θ) — that's the rotation matrix acting on each point.

original rotated
40°

Symbolic form

Vertices