Example
Reflect a triangle with an exact matrix across the x-axis.
highlighted = computed this step
Step 1 — Set up
Use column vectors with matrix times vertex.
M=[100−1]
Step 2 — Move vertex A
Multiply the matrix by vertex A.
A′=[100−1][11]=[1⋅1+0⋅10⋅1+(−1)⋅1]=[1−1]
Step 3 — Move vertex B
Multiply the matrix by vertex B.
B′=[100−1][31]=[1⋅3+0⋅10⋅3+(−1)⋅1]=[3−1]
Step 4 — Move vertex C
Multiply the matrix by vertex C.
C′=[100−1][12]=[1⋅1+0⋅20⋅1+(−1)⋅2]=[1−2]
Step 5 — Result
The transformed triangle is complete.
transformed triangle complete
reflect
A reflection matrix flips the sign of the coordinate perpendicular to the mirror axis.