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