Name | Type | Description |
---|---|---|
points |
Array<PIXI.IPointData> | Array<number> |
This can be an array of Points
that form the polygon, a flat array of numbers that will be interpreted as [x,y, x,y, ...], or
the arguments passed can be all the points of the polygon e.g.
|
Members
false
after moveTo, true
after closePath
. In all other cases it is true
.
An array of the points of this polygon.
The type of the object, mainly used to avoid instanceof
checks
- Default Value:
- PIXI.SHAPES.POLY
- See:
Methods
clone () PIXI.Polygon
Creates a clone of this polygon.
Returns:
Type | Description |
---|---|
PIXI.Polygon |
|
Checks whether the x and y coordinates passed to this function are contained within this polygon.
Name | Type | Description |
---|---|---|
x |
number |
The X coordinate of the point to test. |
y |
number |
The Y coordinate of the point to test. |
Returns:
Type | Description |
---|---|
boolean |
|