PIXI.Sector Class
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
)
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
-
startAngle
Number
The starting angle of the sector, in degrees
-
endAngle
Number
The ending angle of the sector, in degrees
clone
()
Sector
Creates a clone of this Sector instance
Returns:
Sector:
a copy of the polygon
contains
Boolean
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