made rotreverse an S3 function for matrices and mesh3d