Calculate angles between two intersecting lines using the slopes
古いコメントを表示
Hi,
I have two slopes M1 and M2 that I wish to check the angle between them.
I was told that I can use the inverse tangent of (m1 - m2)/(1 + m1*m2)
atand((m1-m2)/(1-m1*m2))
Is it true, why? What is the difference if I use the (m1 - m2)/(1 - m1*m2) instead?
Thanks
1 件のコメント
Amit Haldar
2016 年 1 月 6 日
Yes that is how we calculate the angle between two lines.
採用された回答
その他の回答 (2 件)
Rick Rosson
2014 年 8 月 14 日
phi = atan(m1) - atan(m2);
Amir
2014 年 8 月 14 日
0 投票

This image is from this video: https://www.youtube.com/watch?v=4bGt5wQf818
Hope this can clarify this for you.
カテゴリ
ヘルプ センター および File Exchange で MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!