angleBetweenPoints(point1, point2) → {number}
Find the angle of a segment from (point1.x, point1.y) -> (point2.x, point2.y).
Parameters
Name | Type | Description |
---|---|---|
point1 | Phaser.Point | The first point. |
point2 | Phaser.Point | The second point. |
Returns
number -
The angle between the two points, in radians.
- Source code: math/Math.js (Line 439)
Please login to continue.