πŸͺž World 2 Β· Lesson 6

Diagonal Mirrors

The boss level of mirrors: y = x and y = βˆ’x. Luckily there's a cheat code.

Flashback

Your mission today: reflect points and shapes in the diagonal lines y = x and y = βˆ’x. About 8 minutes.

Meet the diagonals

The cheat codes

Mirror y = x (goes up to the right β†—): swap the coordinates. (a, b) β†’ (b, a)

Mirror y = βˆ’x (goes down to the right β†˜): swap them and flip both signs. (a, b) β†’ (βˆ’b, βˆ’a)

Why does swapping work? On the line y = x, the x and y numbers are always equal: (1, 1), (2, 2), (βˆ’3, βˆ’3)… So reflecting in it trades the two numbers.

Swap lab

Move point P. Watch its coordinates and its reflection Pβ€². Do the cheat codes always work?

Your turn: diagonal reflections

Tip: use the cheat code on each corner, then plot.

Quick check

Claim your badge

World 2 complete: Mirror Master! +50 XP

Get dizzy: it's time for the Spin power.

Lesson 7: The Spin Power β†’