I found this post while searching for the topic, and am very surprised to see it is locked and closed. What gives? How do you detect where two line segments intersect?
Checking the Help Center and its requirements:
Stack Overflow is for professional and enthusiast programmers, people who write code because they love it. We feel the best Stack Overflow questions have a bit of source code in them, but if your question generally covers…
- a specific programming problem, or
- a software algorithm, or
- software tools commonly used by programmers; and is
- a practical, answerable problem that is unique to software development
… then you’re in the right place to ask your question!
the question seems to very obviously satisfy both criteria #1 and #2. "How do I compute whether two lines intersect" is a specific programming problem that is solved by specific algorithms. Note that this is not a question about mathematical concepts or definitions (Q: When do two lines intersect? A: When they have at least one point in common), but about how to compute an intersection point. Note also that the two highest voted answers cite programming books and textbooks.