Angle determination between pinned curved line.

2 visualizaciones (últimos 30 días)
GA optimization
GA optimization el 6 de En. de 2014
Editada: Roger Stafford el 6 de En. de 2014
How to find out the angle ϕ shown in above figure? line is pinned at different points.

Respuesta aceptada

Roger Stafford
Roger Stafford el 6 de En. de 2014
Editada: Roger Stafford el 6 de En. de 2014
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.

Más respuestas (0)

Categorías

Más información sobre Interpolation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by