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