Phaser API Documentation

  Version: 

Member of: Phaser.Math.Angle

<static> BetweenY(x1, y1, x2, y2)

Description:

Find the angle of a segment from (x1, y1) -> (x2, y2).

The difference between this method and Phaser.Math.Angle.Between is that this assumes the y coordinate travels down the screen.

Parameters:

name type description
x1 number

The x coordinate of the first point.

y1 number

The y coordinate of the first point.

x2 number

The x coordinate of the second point.

y2 number

The y coordinate of the second point.

Returns:
Description:

The angle in radians.

Type:
  • number
Since: 3.0.0
Source: src/math/angle/BetweenY.js (Line 7)