How can you measure a ship's distance from the shore?