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!