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

three points;angle

Best Answer

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)))