I have two lines (x1,y1) and (x2,y2) and I have a third one which is always randomly generated(only positive values), The function I am searching for will find out if the third line is crossing the first of the second(or both). I need a return of True when they are crossed and False if they are not...
If there is already an answer to this type of question it will be enough if you will just paste a link there to it. I tried to look for the answer but because of my bad english I didnt succeed.
Thank you for all your answers.

답변 (1개)

KSSV
KSSV 2019년 2월 28일

1 개 추천

Get the intersection point between two lines...if they intersect, they cross....if not the don't cross....use this file exchange function to get intrsections.

제품

릴리스

R2018b

질문:

2019년 2월 28일

답변:

2019년 2월 28일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by