In the last week I tried to calculate angle between three points –
first I needed to get the points = easy
than to calculate the angle (not relatively) = easy too
and now I need to get the angle relative to the graph – the problem is that I dont know how (I am sure this is easy too).
PI = 3.141592654
A(2004,227)
B(2005,18)
C(2006,25)
Here’s the function/formula to calculate the Angle >
arctan((Xb - Xa)/(Ya - Yb)) * (180/PI) + arctan((Xc - Xb)/(Yc - Yb)) * (180/PI)
What do I need to add to the formula so it will be relatively to the graph? (I want an explanation too please)
Here’s the graph:

Thank you very much!
Edit : Here is the full code of my sub to compute it.
You’ll notice I hardcoded the points in the sub, but that’s just to have a small self-sufficient code.