function getVectorAngle (shared-side)
Available since version: 0.3.0
Get angle on Y axis directed towards the second point.
Declaration
number getVectorAngle(number x1, number y1, number x2, number y2)
Parameters
numberx1: The position on X axis of the first point.numbery1: The position on Y axis of the first point.numberx2: The position on X axis of the second point.numbery2: The position on Y axis of the second point.
Returns number
The angle on Y axis directed towards the second point.