2D Transformation Matrix Formulas
The calculator uses active transformations on a standard Cartesian plane where positive y points upward. Each point is represented as the homogeneous column vector [x, y, 1]ᵀ.
Translation
T = [[1, 0, tx], [0, 1, ty], [0, 0, 1]]
Adds tx to x and ty to y.
Rotation
R = [[cosθ, −sinθ, 0], [sinθ, cosθ, 0], [0, 0, 1]]
Positive angles rotate counter-clockwise. A custom center uses T(c)R T(−c).
Scale
S = [[sx, 0, 0], [0, sy, 0], [0, 0, 1]]
Equal factors give uniform scale. A custom center uses T(c)S T(−c).
Reflection across an angled line
F = [[cos2α, sin2α], [sin2α, −cos2α]]
This is the 2×2 linear part for a line through the origin at angle α.
