I need to write a program which can output the intersection coordinates(points) of a circle and a line given the center and the radius of the circle and also the two points of a line. If there are no intersections it should say so. Any suggestions?

Recommended Answers

Hi felix, welcome.
It is always handy to study the formulas behind line and circle intersection, before beginning to program this. See this example.
It is just a matter now of inputting some …

Jump to Post

All 2 Replies

Hi felix, welcome.
It is always handy to study the formulas behind line and circle intersection, before beginning to program this. See this example.
It is just a matter now of inputting some values in your program. Plug them in some formulas and outputting the results. Success!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.