Projection of a square on a line