Uses math's to calculate if a point with a radius intersects 2 points (line), and calculates the distance along that line. Credit if used pls :D