Rotate a given point by a given angle around the origin (0, 0), in an anti-clockwise direction.
name | type | description |
---|---|---|
point | object | Phaser.Geom.Point |
The point to be rotated. |
angle | number |
The angle to be rotated by in an anticlockwise direction. |
The given point, rotated by the given angle in an anticlockwise direction.