2D Rotation Matrix Visualizer
Run the 2D Rotation Visualizer Fullscreen
Edit the MicroSim with the p5.js editor
About This MicroSim
This visualization demonstrates 2D rotation matrices and their properties:
- Rotation matrix structure: R(θ) = [[cos θ, -sin θ], [sin θ, cos θ]]
- Orthogonality: The transpose equals the inverse (R⁻¹ = Rᵀ)
- Determinant = 1: Rotations preserve area and orientation
- Basis vector transformation: Watch how e₁ and e₂ rotate together
How to Use
- Drag the angle slider to rotate shapes from -360° to 360°
- Select different shapes to see how rotation affects various geometries
- Click Animate to watch continuous rotation
- Toggle checkboxes to show/hide the unit circle and angle arc
- Observe the matrix panel to see how cos(θ) and sin(θ) values change
Key Observations
- At 0°: Matrix is identity [[1,0],[0,1]]
- At 90°: Matrix is [[0,-1],[1,0]]
- At 180°: Matrix is [[-1,0],[0,-1]]
- At 270°: Matrix is [[0,1],[-1,0]]
Embedding
You can include this MicroSim on your website using:
1 | |
Lesson Plan
Learning Objectives
Students will be able to:
- Calculate cos(θ) and sin(θ) values for common angles
- Write the 2D rotation matrix for any given angle
- Verify that rotation matrices preserve lengths and angles
Suggested Activities
- Verify orthogonality: Compute R(θ)·R(θ)ᵀ and verify it equals I
- Composition: Set angle to 30°, note the matrix, then 60°. What's R(30°)·R(30°)?
- F-Shape orientation: Use F-shape to verify counterclockwise rotation direction
References
- Chapter 4: Linear Transformations - 2D Rotation section
- Rotation matrix on Wikipedia