Graphics /Build / Homogeneous coordinates

Homogeneous coordinates

goal

You will replace the separate transformation paths with one 3 by 3 homogeneous matrix-vector path. Convert an ordinary point (x,y) to (x,y,1), apply scale, rotation, shear or translation through the same multiplication mechanism, and recover a finite Cartesian point by dividing by w. Proportional homogeneous inputs should produce the same represented 2D result after division, while a non-zero result with w = 0 must be recognised as having no finite Cartesian conversion.