https://kniteo.blogspot.com/2023/08/find-out-if-two-line-segments-intersect.html
Find Out If Two Line Segments Intersect