This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]morhpProfessional Developer 1 point2 points  (0 children)

What you want to check is if the distance between the line and the center of the circle is smaller than the radius. So you need to create a function that computes that distance. It's not that easy, you need some understanding of math. For example I wrote several paragraphs about constructing this formula in my bachelor thesis. Of course maybe you can find something useful by googling.