PIXI.Sector Class

Defined in: PIXI.Sector:10
Module: PIXI Display

The Sector object can be used to specify a hit area for display objects. It represents a sector of a circle, with angles expressed in degrees going counterclockwise.

Constructor

PIXI.Sector

(
  • x
  • y
  • radius
  • startAngle
  • endAngle
)

Defined in PIXI.Sector:10

Parameters:

  • x Number

    The X coord of the center of the circle this sector is on

  • y Number

    The Y coord of the center of the circle this sector is on

  • radius Number

    The radius of the circle

  • startAngle Number

    The starting angle of the sector, in degrees

  • endAngle Number

    The ending angle of the sector, in degrees

Methods

clone

() Sector

Defined in clone:69

Creates a clone of this Sector instance

Returns:

Sector:

a copy of the polygon

contains

(
  • x
  • y
)
Boolean

Defined in contains:80

Checks if the x, and y coords passed to this function are contained within this circle

Parameters:

  • x Number

    The X coord of the point to test

  • y Number

    The Y coord of the point to test

Returns:

Boolean:

if the x/y coords are within this polygon

endAngle

Number

Defined in endAngle:56

Default: 0

radius

Number

Defined in radius:39

Default: 0

startAngle

Number

Defined in startAngle:46

Default: 0

x

Number

Defined in x:25

Default: 0

y

Number

Defined in y:32

Default: 0