affine t matrix builder