フィルターのクリア

Intersection points of multiply lines?

1 回表示 (過去 30 日間)
hu
hu 2013 年 10 月 31 日
回答済み: Simon 2013 年 10 月 31 日
Hi,
In the last couple of days and nights I am trying to find a way to get the intersection points of 3 lines without any success since I encounter special cases (e.g., slope=0 or Inf, -Inf). Any idea how to get the intersection points that will work both on case 1 and case 2 (Visually presented in the attached image).
Thanks a lot in advance.

採用された回答

Simon
Simon 2013 年 10 月 31 日
Hi!
Take a look at the great pages of Paul Bourke: http://paulbourke.net/. You can find a matlab code for the distance of two lines in 3d in section "The shortest line between two lines in 3D" on page http://paulbourke.net/geometry/pointlineplane/.
You can as well use 2d coordinates with the third entry 0. Then you just check every line against the others.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by