Constructors
constructor
- new Polygon(points): Polygon
- new Polygon(...points): Polygon
Properties
closeStroke
closeStroke: boolean
points
points: number[]
Readonly
type
Methods
clone
- clone(): Polygon
-
contains
- contains(x, y): boolean
Returns boolean
- Whether the x/y coordinates are within this polygon.
A class to define a shape via user defined coordinates.
Memberof
PIXI