2D Transformations
Compose translate · scale · shear · rotate on a triangle.
rotation 0°
Transformed vertices (grid coords)
P0: (13, 7)
P1: (18, 7)
P2: (13, 12)
Order of application
Scale and shear around the origin first, then rotate, then translate. In matrix form a column vector is multiplied as T · R · Sh · S · P — rightmost applied first. Swap the matrix order and you get a completely different shape.