📖 Turn it
The rule
- A rotation turns a point about a centre. Here the centre is the origin (0, 0).
- A turn keeps the point the same distance from the origin.
- 90° clockwise: (x, y) becomes (y, −x).
- 90° anticlockwise: (x, y) becomes (−y, x).
- 180° either way: (x, y) becomes (−x, −y).
Examples
Rotate (2, 3) 90° clockwise about the origin. → (3, −2)
(x, y) becomes (y, −x): (3, −2).
Rotate (2, 3) 90° anticlockwise about the origin. → (−3, 2)
(x, y) becomes (−y, x): (−3, 2).
Rotate (−4, 1) 180° about the origin. → (4, −1)
A half turn flips both signs.
Watch out
- “Swapping x and y turns the point.” No: swapping flips over a diagonal. A turn also changes a sign.
- “Clockwise and anticlockwise give the same point.” They are a half turn apart, so the signs are opposite.
- “180° flips only one sign.” A half turn flips both.