I'm having some trouble with calculating the angle between 2 vectors with the same starting point - means there are 3 coordinates,
I have tried to define this func but it doesnt work when giving more then 1 vector:
def AngleBtw2Points(pointA, pointB):
ang1 = np.arctan2(*pointA[::-1])
ang2 = np.arctan2(*pointB[::-1])
return np.rad2deg((ang1 - ang2) % (2 * np.pi))
picture with example of the issue
The input is (X0,Y0) (X1,Y1) (X2,Y2)