The rotation number of some transformation related to billiards in an ellipse