Improved the affine transformation matrix class.