A line can be defined by two numbers : distance of line to origin and the angle from the origin to closest point on the line. Is there a formula to find the coordinates of intersection of two lines given this representation?
I can go to y=a*x+b representation for each line and calculate intersection point using basic algebra. However, vertical lines behave poorly. I can do a if (angle == 0 or angle == pi){.. check, but checking if two doubles are equal is pointless.