Angle determination between pinned curved line.
조회 수: 3 (최근 30일)
이전 댓글 표시

How to find out the angle ϕ shown in above figure? line is pinned at different points.
채택된 답변
Roger Stafford
2014년 1월 6일
편집: Roger Stafford
2014년 1월 6일
If s1 is the derivative of the curve on the left at the middle point and s2 the derivative of the curve on the right side at the middle point, the upper angle between the two tangent lines to the curves at that point is given in radians by:
a = mod(atan2(s2-s1,-1-s1*s2),2*pi);
To convert the angle to degrees, multiply this by 180/pi.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Interpolation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!