Is it possible to determine if two segments intersect by looking at their domain and range?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m assuming you’re talking about domain and range as intervals of the x and y axis on a 2d plane. In that case, the domain and range of the segment only define rectangular regions of the plane. For the same rectangular regions, the segments will sometimes intersect and sometimes not, depending on their orientation:
So this is a counter-example to your assertion. There is however something useful that you can do with the bounding boxes (domain and range) of the segments. You can “trivially reject” them as not possibly intersecting if their bounding boxes don’t intersect.