Phaser API Documentation

  Version: 
<static> RotateAroundPoint(triangle, point, angle)

Description:

Rotates a Triangle at a certain angle about a given Point or object with public x and y properties.

Parameters:

name type description
triangle Phaser.Geom.Triangle

The Triangle to rotate.

point Phaser.Geom.Point

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