Implemented matrix to transformation conversion