Graphics /Discover / Homogeneous coordinates
Homogeneous coordinates
scenario
Give Translation Somewhere to Live
Your 2 by 2 transformation machinery handles rotation, scale and shear, but translation is still a separate coordinate addition. That means one family of transformations uses matrix multiplication while another needs different machinery.
Suppose you want one matrix representation that can express all of them. The obstacle is that a 2 by 2 product can only combine the existing x and y values; it has no independent value that can contribute a fixed offset when both x and y are zero.
The representation itself may therefore need to change before the matrix can do more.
How could you change the stored representation of a 2D point so that matrix multiplication has an additional value available for producing fixed translation offsets?