Returns an array of points from the perimeter of the Rectangle, where each point is spaced out based
on either the
step value, or the
The Rectangle to get the perimeter points from.
The distance between each point of the perimeter. Set to
The total number of points to return. The step is then calculated based on the length of the Rectangle, divided by this value.
|array | Array.<Phaser.Geom.Point>
An array in which the perimeter points will be stored. If not given, a new array instance is created.
An array containing the perimeter points from the Rectangle.