Skip to content

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

  • number x1: The position on X axis of the first point.
  • number y1: The position on Y axis of the first point.
  • number x2: The position on X axis of the second point.
  • number y2: The position on Y axis of the second point.

Returns number

The angle on Y axis directed towards the second point.