Polygon#toNumberArray()
  • References/Game Development/Phaser/Geometry/Polygon

toNumberArray(output) → {array} Export the points as an array of flat

2025-01-10 15:47:30
Polygon#clone()
  • References/Game Development/Phaser/Geometry/Polygon

clone(output) → {Phaser.Polygon}

2025-01-10 15:47:30
Polygon#type
  • References/Game Development/Phaser/Geometry/Polygon

type : number The base object type. Source code:

2025-01-10 15:47:30
Polygon#flattened
  • References/Game Development/Phaser/Geometry/Polygon

flattened : boolean Has this Polygon been flattened by a call to Polygon.flatten ?

2025-01-10 15:47:30
Polygon#area
  • References/Game Development/Phaser/Geometry/Polygon

area : number The area of this Polygon. Source code:

2025-01-10 15:47:30
Polygon#setTo()
  • References/Game Development/Phaser/Geometry/Polygon

setTo(points) → {Phaser.Polygon}

2025-01-10 15:47:30
Polygon#flatten()
  • References/Game Development/Phaser/Geometry/Polygon

flatten() → {Phaser.Polygon}

2025-01-10 15:47:30
Polygon#Polygon
  • References/Game Development/Phaser/Geometry/Polygon

new Polygon(points) Creates a new Polygon. The points can be set from a variety of formats: An array of Point objects:

2025-01-10 15:47:30
Polygon#contains()
  • References/Game Development/Phaser/Geometry/Polygon

contains(x, y) → {boolean} Checks whether the x and y coordinates are contained within this polygon

2025-01-10 15:47:30
Polygon#closed
  • References/Game Development/Phaser/Geometry/Polygon

closed : boolean Is the Polygon closed or not? Source code:

2025-01-10 15:47:30