Rotates an entire Triangle at a given angle about a specific point.
name | type | description |
---|---|---|
triangle | Phaser.Geom.Triangle |
The Triangle to rotate. |
x | number |
The X coordinate of the point to rotate the Triangle about. |
y | number |
The Y coordinate of the point to rotate the Triangle about. |
angle | number |
The angle by which to rotate the Triangle, in radians. |
The rotated Triangle.