Decomposes a Triangle into an array of its points.
name | type | arguments | description |
---|---|---|---|
triangle | Phaser.Geom.Triangle |
The Triangle to decompose. |
|
out | array | <optional> |
An array to store the points into. |
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.