Test if two lines intersect - JavaScript function

前端 未结 10 1554
谎友^
谎友^ 2020-12-02 09:08

I\'ve tried searching for a javascript function that will detect if two lines intersect each other.

The function will take the x,y values of both the start end point

10条回答
  •  暖寄归人
    2020-12-02 09:45

    Use the pythageorum theorum to find the distance between the 2 objects and add the radius Pythageorum Theorum Distance Formula

提交回复
热议问题