Crossed lines detection function
显示 更早的评论
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
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Signal Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!