API Docs for: 1.3.0
Show:

Polygon Class

Module: PIXI

Constructor

Polygon

(
  • points
)

Parameters:

  • points Array | Array

    This cna be an array of Points or a flat array of numbers that will be interpreted as [x,y, x,y, ...]

Item Index

Methods

Methods

clone

()

Returns:

a copy of the polygon

contains

(
  • x
  • y
)

Parameters:

  • x Number

    The X coord of the point to test

  • y Number

    The Y coord of the point to test

Returns:

if the x/y coords are within this polygon