Calculating in radians the rotation of one point around another
问题 I have been trying to get this problem resolved for week and have get to come to a solution. What I have is 2 points in a 2d space, what I need to resolve is what the rotation of one is around the other. With luck the attached diagram will help, what I need to be able to calculate is the rotational value of b around a. I have found lots of stuff that points to finding the dot product etc but I am still searching for that golden solution :o( Thanks! 回答1: Vector2 difference = pointB - pointA;