Each line sector has 2 xy collaborates provided,
Input are listed below,
[3,4],[5,4]
[8,4],[20,4]
[10,4],[15,4]
In the above image, if the lines are overlapping, it can be thought about as a line sector May I recognize the reasoning or math behind addressing it which outputs the 2 non-overlapping line sectors which are [3,4],[5,4] and also [8,4],[20,4]?
The input I offered is simply 3 line sectors that we need to strain to non-overlapping line sectors, so this obtains complex quick with even more line sectors if we do not have the appropriate math I am doing this since I encountered this insect in my programs:-RRB-.
I will certainly value any type of assistance that I can get:-RRB-
My service is I have actually looked for whether 2 lines are overlapping from by utilizing several of the reasoning which is A.start <