Replace the ad-hoc transformation mechanisms with matrices. Prepares for more general transformation as well.