lineIntersectCircleFarthestFromPt1

open fun lineIntersectCircleFarthestFromPt1(pt1: Mercator, pt2: Mercator, circlePt: Mercator, r: Float): Mercator

Finds the point of intersection between a circle and a line. Only returns one point, uses pt1 to disambiguate, if necessary

Return

returns point of intersection furthest from pt1

Parameters

pt1

line point 1 (will return point farthest from this one)

pt2

line point 2

circlePt

circle center point

r

circle radius