Circle Class
The Circle object can be used to specify a hit area for displayObjects
Constructor
Circle
(
-
x
-
y
-
radius
Parameters:
-
x
FloatThe X coordinate of the center of this circle
-
y
FloatThe Y coordinate of the center of this circle
-
radius
FloatThe 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:
-
x
FloatThe X coordinate of the point to test
-
y
FloatThe 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