function getVectorAngle (shared-side)
Available since version: 0.3.0
This function will get angle on Y axis directed towards the second point.
Declaration
float getVectorAngle(float x1, float y1, float x2, float y2)
Parameters
floatx1: The position on X axis of the first point.floaty1: The position on Y axis of the first point.floatx2: The position on X axis of the second point.floaty2: The position on Y axis of the second point.
Returns float
The angle on Y axis directed towards the second point.