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