Find the angle of a segment from (point1.x, point1.y) -> (point2.x, point2.y).
Calculates the angle of the vector from the first point to the second point.
name | type | description |
---|---|---|
point1 | Phaser.Types.Math.Vector2Like |
The first point. |
point2 | Phaser.Types.Math.Vector2Like |
The second point. |
The angle in radians.