refactoring Orbit.transform_matrix