line calculations using its known coordinates

Hello every one
How to calculate the angle between two lines (lines have known coordinates)
Thanks

Respuestas (1)

William Rose
William Rose el 30 de Mayo de 2021

0 votos

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.

Categorías

Más información sobre Predictive Maintenance Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 30 de Mayo de 2021

Comentada:

el 30 de Mayo de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by