Phaser API Documentation

  Version: 
<static> Decompose(triangle, [out])

Description:

Decomposes a Triangle into an array of its points.

Parameters:

name type arguments description
triangle Phaser.Geom.Triangle

The Triangle to decompose.

out array <optional>

An array to store the points into.

Returns:
Description:

The provided out array, or a new array if none was provided, with three objects with x and y properties representing each point of the Triangle appended to it.

Type:
  • array
Since: 3.0.0