Phaser API Documentation

  Version: 
<static> Rotate(triangle, angle)

Description:

Rotates a Triangle about its incenter, which is the point at which its three angle bisectors meet.

Parameters:

name type description
triangle Phaser.Geom.Triangle

The Triangle to rotate.

angle number

The angle by which to rotate the Triangle, in radians.

Returns:
Description:

The rotated Triangle.

Since: 3.0.0