Phaser API Documentation

  Version: 
<static> GetPoints(triangle, quantity, stepRate, [out])

Description:

Returns an array of evenly spaced points on the perimeter of a Triangle.

Parameters:

name type arguments description
triangle Phaser.Geom.Triangle

The Triangle to get the points from.

quantity number

The number of evenly spaced points to return. Set to 0 to return an arbitrary number of points based on the stepRate.

stepRate number

If quantity is 0, the distance between each returned point.

out array | Array.<Phaser.Geom.Point> <optional>

An array to which the points should be appended.

Returns:
Description:

The modified out array, or a new array if none was provided.

Type:
Since: 3.0.0