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? – Lukas Lang Dec 25 '22 at 18:37VectorAngle[vecA, vecB]will do the trick (wherevecA={210,400}andvecB={-120,480}. ApplyNto get a finite precision value. – lericr Dec 25 '22 at 19:07