toNumberArray(output) → {array} Export the points as an array of flat
type : number The base object type. Source code:
clone(output) → {Phaser.Polygon}
flattened : boolean Has this Polygon been flattened by a call to Polygon.flatten ?
setTo(points) → {Phaser.Polygon}
area : number The area of this Polygon. Source code:
new Polygon(points) Creates a new Polygon. The points can be set from a variety of formats: An array of Point objects:
contains(x, y) → {boolean} Checks whether the x and y coordinates are contained within this polygon
flatten() → {Phaser.Polygon}
closed : boolean Is the Polygon closed or not? Source code:
Page 1 of 2