In the book, Basilica by RA Scotti, architects of the 16th century used a mirror placed on the ground to calculate building height. The book says, "Laying a mirror on the ground so that the top of the building was reflected in its center and measuring the distance from the base of the building to the mirror, he could then calculate the height of the building."
How did he do it exactly? What calculations did he employ?