Added ability to get matrix from Transform.