I should check intersection between a single line and another lines when mouse released.
So, as example i have four different line entity in the world each has variables below.
MasterLine(x1,y1,x2,y2);
Line(x1,y1,x2,y2);
Line(x1,y1,x2,y2);
Line(x1,y1,x2,y2);
When i release the mouse, i wanna check if any of them intersecting with MasterLine then remove intersecting lines.
How can i do that, i need some mathhhh… :!
NOTE: x1 and y1 variables for each “Line”(not master line) entity have same value everymoment. So, that may help to find an easier code for whole process.