Implement == operator for Transformation and Rotation