Angle to

Calculate the angle from one point to another

Formula:

angleTo = (x1,y1,x2,y2) => Math.atan2(y2-y1,x2-x1)

Stack Exchange