Line Segment Intersection

Опубликовано: 08 Февраль 2025
на канале: EngineerNick
15,304
328

Understanding the formula for computing line segment intersection.
I forget to mention that you need to check the value of t1 and t2 are between 0 and 1.
Thanks to @gi4nnni for pointing out that at 4:11, I the bottom cross product is wrong, -ABy * ACx + ABx * ACy should be AB x AC


Check out the python implementation in repl I am working on https://repl.it/@thehappycheese/linet...