transform templated and producing correct composed matrix, quaternions implemented