This project demonstrates a method for finding the intersection point of two line segments, if any. Click and drag the vertices to change the line segments. When the line segments intersect, a red dot will indicate the intersection.
------ Notes ------ Fining an intersection is pretty straightforward once you understand determinants and Cramer's rule. When I began this project though, I did not. And I still struggle. But now I know how to use them for this purpose at least :) This project does not handle overlapping segments, since they are a range instead of a single point. Learn more here: https://en.wikipedia.org/wiki/Line_segment_intersection https://en.wikipedia.org/wiki/Line%E2%80%93line_intersection https://en.wikipedia.org/wiki/Determinant https://en.wikipedia.org/wiki/Cramer%27s_rule ------ Credits ------ Thanks to ChatGPT for helpfully and pedagogically answering my every question. It is now a few weeks later, and I no longer feel like I understand everything, but I did at the time. I also used Wikipedia as a reference (see links above).