Phaser API Documentation

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

Description:

Rotates an entire Triangle at a given angle about a specific point.

Parameters:

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.

Returns:
Description:

The rotated Triangle.

Since: 3.0.0