Example
Shear a triangle horizontally with an exact matrix.
highlighted = computed this step
Step 1 — Set up
Use column vectors with matrix times vertex.
M=[1021]
Step 2 — Move vertex A
Multiply the matrix by vertex A.
A′=[1021][11]=[1⋅1+2⋅10⋅1+1⋅1]=[31]
Step 3 — Move vertex B
Multiply the matrix by vertex B.
B′=[1021][31]=[1⋅3+2⋅10⋅3+1⋅1]=[51]
Step 4 — Move vertex C
Multiply the matrix by vertex C.
C′=[1021][12]=[1⋅1+2⋅20⋅1+1⋅2]=[52]
Step 5 — Result
The transformed triangle is complete.
transformed triangle complete
shear
A shear moves one coordinate by a multiple of the other coordinate while leaving the other coordinate fixed.