Controlling curves on the plane: An approach to shape control in fusion devices