This commit is contained in:
Hua 2019-11-18 11:17:15 +08:00
parent f0d2394c6f
commit a8516d70c9

View file

@ -297,9 +297,9 @@ var Curve = new Class({
*
* @param {integer} divisions - The number of evenly spaced points from the curve to return. If falsy, step param will be used to calculate the number of points.
* @param {number} step - Step between points. Used to calculate the number of points to return when quantity is falsy. Ignored if quantity is positive.
* @param {(array|Phaser.Geom.Point[])} [out] - An optional array to store the points in.
* @param {(array|Phaser.Math.Vector2[])} [out] - An optional array to store the points in.
*
* @return {(array|Phaser.Geom.Point[])} An array of Points from the perimeter of the rectangle.
* @return {(array|Phaser.Math.Vector2[])} An array of Points from the perimeter of the rectangle.
*/
getPoints: function (divisions, stepRate, out)
{