Added transformation function for Plane and Sphere