phaser/v3/typings/geom/polygon/GetNumberArray.d.ts

9 lines
350 B
TypeScript
Raw Normal View History

2017-01-16 21:43:07 +00:00
/**
* Export the points as an array of flat numbers, following the sequence [ x,y, x,y, x,y ]
*
* @method Phaser.Polygon#toNumberArray
* @param {array} [output] - The array to append the points to. If not specified a new array will be created.
* @return {array} The flattened array.
*/
export default function (polygon: any, output: any): any;