The premultiply-transforms
function premultiplies the partial 3 x 3 matrix represented by transform1 by the partial 3 x 3 matrix represented by transform2 , storing the result in transform1 . In the result, the translation, scaling and rotation operations contained in transform2 are effectively performed before those in transform1 .
transform1 = transform2 . transform1