Intersections between line and rectangle

How can I find the locations of the intersections between multiple vertical lines with multiple rectangles ?

2 Comments

Do you have any data? Any code?
In what context? How are the lines and rectangles defined? By equations? endpoints? Are you trying to find intersections between objects in an image? A binarized image?
If you want a wholly generalized answer, then you can just look up basic line-line intersection routines and expand from there. I doubt that's what you actually want.

Sign in to comment.

More Answers (0)

Asked:

on 31 Aug 2021

Answered:

on 2 Sep 2021

Community Treasure Hunt

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

Start Hunting!