I'm looking at the Planarity model's "crossed?" method from the Models Library in order to determine if two lines are intersecting.
This model seems to be working for the most part; however, there is one issue that I think I found. I don't have the Math skills to solve this.
Essentially, consider a nodes A and B which are connected, and C and D which are connected.
The issue occurs when AB is perpendicular to CD when the intersection point is on one of the end points.
For example,
Node xcor ycor
A 0 0
B 0 10
C -10 0
D 5 0
Any thoughts on how to extend the model to describe this boundary condition? I'm not that mathematically confident to describe when this condition occurs...I'd like an alternative to the intersecting lines example where it computes the equations for the lines and solves for the x's and checks if the x's are within the end points of one of the lines.