decomposeAffine function

Decompose an affine matrix into its constituent transformations