C++, I want calculate the angle of the direction of the two points.
Here is a picture which shows the two points and the direction of how to get the angle of the direction?
p1 - start point. p2 - direction point. me need direction angle(facing?) from p1 to p2
If you want to, you can also make sure that
p1 != p2
, because if it is then you'll get a domain error.