How do you detect where two line segments intersect? [closed]
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Locked . This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions. How do I determine whether or not two lines intersect, and if they do, at what x,y point? 回答1: There’s a nice approach to this problem