rotate(x, y, angle, asDegrees, distance) → {Phaser.Point}
Rotates this Point around the x/y coordinates given to the desired angle.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
x | number | The x coordinate of the anchor point. | ||
y | number | The y coordinate of the anchor point. | ||
angle | number | The angle in radians (unless asDegrees is true) to rotate the Point to. | ||
asDegrees | boolean | <optional> | false | Is the given angle in radians (false) or degrees (true)? |
distance | number | <optional> | An optional distance constraint between the Point and the anchor. |
Returns
The modified point object.
- Source code: geom/Point.js (Line 304)
Please login to continue.