Assuming, Point A=vector2( 210,400) B=vector2(-120,480)
Is there a short formula to find the angle to rotate A towards B ? (A is currently heading towards the Y-axis)
Currently, using Pythagorean theorem by getting quadrant info for third point (A.x,B.y) or (B.x,A.y). Then acos... Little complicated.
Respecting A if if B.x>A.x then quadrant=1. Assuming C=(A.x,B.y) Rotation=acos(AC/BC)
VectorAngle
? $\endgroup$VectorAngle[vecA, vecB]
will do the trick (wherevecA={210,400}
andvecB={-120,480}
. ApplyN
to get a finite precision value. $\endgroup$