FWIW: Over 40 years ago when I was in the Navy, we had a little hand held instrument called a "Stadimeter". It was totally mechanical/optical....that worked something like a Marine Sextant....by measuring angles..
Except it was designed to give you RANGE to a target. I'm sure that today it would be really easy to do the same thing with current technology.... for pennys.