4
Assuming the following matrix multiplication convention, where \$M\$ is the matrix you want to decompose, and the \$\vec p\$ variables represent points as column vectors with a w coordinate \$p_w = 1\$...
$$\begin{array}{lc}
\vec p_{transformed} = M \times \vec p_{local}
& M=\begin{bmatrix}
...