The principles of the theodolite are that a beam of light travels in a straight line, and that when you know the length of one side of a triangle and the angles of the corners as measured by reflecting beams of light then you can precisely map features on the ground both horizontally and vertically.