Lines and rotation of the earth and moon