Poncelet’s theorem and billiard knots