Version:

<static> RotateAroundXY(triangle, x, y, angle)

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.

Since: 3.0.0

Possible examples