successfully tested distance to segment at a given angle