Finding the intersection point of two lines (in JavaScript) - How To Build A Web Game

preview_player
Показать описание
In this video I show how you can calculate the intersection point of two infinite lines and use that to determine if two line segments intersect.

Line Intersection
Рекомендации по теме
Комментарии
Автор

Thank you! I did not realize how easy it was to calculate the intersection's value for x. It is literally just (b2 -b1) / (m1 - m2)

audiomac
visit shbcf.ru