line calculations using its known coordinates

조회 수: 1 (최근 30일)
Ahmed Galal
Ahmed Galal 2021년 5월 30일
댓글: William Rose 2021년 5월 30일
Hello every one
How to calculate the angle between two lines (lines have known coordinates)
Thanks

답변 (1개)

William Rose
William Rose 2021년 5월 30일
Suppose slope of line 1 is a1 and slope of line 2 is a2. Then angle of line 1 relative to x axis is theta1=arctan(a1) and angle of line 2 is theta2=arctan(a2). Angle between lines is theta1-theta2.

카테고리

Help CenterFile Exchange에서 Cartesian Coordinate System Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by