angle(a, asDegrees) → {number}
Returns the angle between this Point object and another object with public x and y properties.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
a | Phaser.Point | any | The object to get the angle from this Point to. | ||
asDegrees | boolean | <optional> | false | Is the given angle in radians (false) or degrees (true)? |
Returns
number -
The angle between the two objects.
- Source code: geom/Point.js (Line 281)
Please login to continue.