Changed the MatrixUtils class to allow origin-based and local-based rotations.