A dioptra (sometimes also named diopter or diopter from Greek: διόπτρα) is a classical astronomical and surveying instrument, dating from the 3rd century BCE. The dioptra was a sighting tube or, alternatively, a rod with a sight at both ends, attached to a stand. If fitted with protractors, it could be used to measure angles.
Greek astronomers used the dioptra to measure the positions of stars; both Euclid and Geminus refer to the dioptra in their astronomical works. By the time of Ptolemy (2nd century CE), it was obsolete as an astronomical instrument, having been replaced by the armillary sphere.
It continued in use as an effective surveying tool. Adapted to surveying, the dioptra is similar to the theodolite, or surveyor's transit, which dates to the sixteenth century. It is a more accurate version of the groma.
The dioptra may have been sophisticated enough, for example, to construct a tunnel through two opposite points in a mountain. There is some speculation that it may have been used to build the Eupalinian aqueduct. Called "one of the greatest engineering achievements of ancient times," it is a tunnel 1,036 meters (4,000 ft) long, "excavated through Mount Kastro on the Greek island of Samos, in the 6th century BCE" during the reign of Polycrates. Scholars disagree whether the dioptra was available that early.
An entire book about the construction and surveying usage of the dioptra is credited to Hero of Alexandria (also known as Heron; a brief description of the book is available online; see Lahanas link, below). Hero was "one of history’s most ingenious engineers and applied mathematicians."