interactive demo of logic for finding the closest point on a spiral.