Nearest point of a dense ring to p: its phase, the point on the closer
neighbouring segment, the distance, and the nearest sample's index.
A caller walking a ring in order passes the sample it found last as
guess: its distance bounds the scan from the first step, so the arc
length bound passes over almost every sample.
Nearest point of a dense ring to p: its phase, the point on the closer neighbouring segment, the distance, and the nearest sample's index. A caller walking a ring in order passes the sample it found last as
guess: its distance bounds the scan from the first step, so the arc length bound passes over almost every sample.