Polygon#toNumberArray()

toNumberArray(output) → {array}

Export the points as an array of flat numbers, following the sequence [ x,y, x,y, x,y ]

Parameters
Name Type Argument Description
output array <optional>

The array to append the points to. If not specified a new array will be created.

Returns
array -

The flattened array.

Source code: geom/Polygon.js (Line 61)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.