Ellipse Class
The Ellipse object can be used to specify a hit area for displayObjects
Constructor
Ellipse
(
-
x -
y -
width -
height
Parameters:
-
xFloatThe X coordinate of the center of the ellipse
-
yFloatThe Y coordinate of the center of the ellipse
-
widthFloatThe half width of this ellipse
-
heightFloatThe half height of this ellipse
Methods
contains
(
Bool
-
x -
y
Checks whether the x and y coordinates passed to this function are contained within this ellipse
Parameters:
-
xFloatThe X coordinate of the point to test
-
yFloatThe Y coordinate of the point to test
Returns:
Bool:
Whether the x/y coords are within this ellipse
Properties
height
Float
Default: 0
width
Float
Default: 0
x
Float
Default: 0
y
Float
Default: 0
