How to use the three points A1, A2, and B0 to calculate ∠A1B0A2?

3 vues (au cours des 30 derniers jours)
Wesley
Wesley le 15 Déc 2020
Commenté : James Tursa le 17 Déc 2020
  1 commentaire
Daniel Pollard
Daniel Pollard le 15 Déc 2020
Do you know Pythagoras' theorem or the cosine rule?

Connectez-vous pour commenter.

Réponse acceptée

KSSV
KSSV le 15 Déc 2020
A1 = [171 422] ;
A2 = [415 413] ;
B0 = [277 386] ;
d1 = A1-B0 ;
d2 = A2-B0 ;
theta = atan((d2(2)-d1(2))/(d2(1)-d1(1)))
  4 commentaires
Wesley
Wesley le 17 Déc 2020
I'm very sorry. It was my mistake, your procedure is correct.
James Tursa
James Tursa le 17 Déc 2020
@KSSV: Your solution produces the angle that the A2-A1 vector makes with the x-axis. It does not involve B0 at all. This does not seem to answer the question.

Connectez-vous pour commenter.

Plus de réponses (1)

James Tursa
James Tursa le 17 Déc 2020
Modifié(e) : James Tursa le 17 Déc 2020
A1 = [171 422] ;
A2 = [415 413] ;
B0 = [277 386] ;
d1 = A1-B0 ;
d2 = A2-B0 ;
theta = atan2( norm(cross([d1 0],[d2 0])), dot(d1,d2) );
See this link:

Catégories

En savoir plus sur Elementary Math dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by