Circle Class
The Circle object can be used to specify a hit area for displayObjects
Constructor
Circle
(
-
x
-
y
-
radius
Parameters:
-
x
NumberThe X coordinate of the center of this circle
-
y
NumberThe Y coordinate of the center of this circle
-
radius
NumberThe radius of the circle
Methods
contains
(
Boolean
-
x
-
y
Checks whether the x, and y coordinates passed to this function are contained within this circle
Parameters:
-
x
NumberThe X coordinate of the point to test
-
y
NumberThe Y coordinate of the point to test
Returns:
Boolean:
Whether the x/y coordinates are within this polygon
Properties
radius
Number
Default: 0
x
Number
Default: 0
y
Number
Default: 0