Rotating a Point Through Ninety Degrees

Follow a counterclockwise quarter turn around the origin in coordinates with the x-axis pointing right and the y-axis pointing up.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace two points
  2. Change the center when needed

The rotation sends \((x,y)\) to \((-y,x)\). In particular, the positive x-axis moves to the positive y-axis.

Trace two points

The unit x point \((1,0)\) becomes \((0,1)\). Point \((2,3)\) becomes \((-3,2)\). The rotation preserves Euclidean length. See norms and distances.

Change the center when needed

Subtract the rotation center, apply the rule, and add the center back. A downward vertical screen axis changes visual interpretation. Image coordinates establish that separate convention.[1]

References

  1. Matt Pharr, Wenzel Jakob and Greg Humphreys, Physically Based Rendering ↩