Check the intersection is on both line segments