flatten() → {Phaser.Polygon}
Flattens this Polygon so the points are a sequence of numbers.
Any Point objects found are removed and replaced with two numbers.
Also sets the Polygon.flattened property to true
.
Returns
This Polygon object
- Source code: geom/Polygon.js (Line 91)
Please login to continue.