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.

Antworten (1)

KSSV
KSSV am 28 Feb. 2019

1 Stimme

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.

Produkte

Version

R2018b

Gefragt:

am 28 Feb. 2019

Beantwortet:

am 28 Feb. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by