Example
Scale each vertex with a diagonal matrix using column vectors.
highlighted = computed this step
Step 1 — Set up
Use column vectors with matrix times vertex.
M=[2003]
Step 2 — Move vertex A
Multiply the matrix by vertex A.
A′=[2003][11]=[2⋅1+0⋅10⋅1+3⋅1]=[23]
Step 3 — Move vertex B
Multiply the matrix by vertex B.
B′=[2003][31]=[2⋅3+0⋅10⋅3+3⋅1]=[63]
Step 4 — Move vertex C
Multiply the matrix by vertex C.
C′=[2003][12]=[2⋅1+0⋅20⋅1+3⋅2]=[26]
Step 5 — Result
The transformed triangle is complete.
transformed triangle complete
scale-about-origin
With column vectors, a 2x2 matrix multiplies a vertex on the left: M v. Scaling about the origin uses a diagonal matrix.