I am trying to calculate the intersection between 'thick' line segments. That is, lines which, on screen, have quite a thick stroke. This is because they may occasionally need to intersect but in reality lie parallel with either other without their actual centre lines intersecting.
The solution I have at the moment is to treat them as rectangles, which means treating each side as a line segment and testing them all sides of one rectangle against all sides of the other rectangle.
Is there a better way?