Find the angle of a segment from (point1.x, point1.y) -> (point2.x, point2.y).
The difference between this method and Phaser.Math.Angle.BetweenPoints is that this assumes the y coordinate travels down the screen.
name | type | description |
---|---|---|
point1 | Phaser.Types.Math.Vector2Like |
The first point. |
point2 | Phaser.Types.Math.Vector2Like |
The second point. |
The angle in radians.