Ellipse Class
The Ellipse object can be used to specify a hit area for displayObjects
Constructor
Ellipse
(
-
x -
y -
width -
height
Parameters:
-
xNumberThe X coord of the upper-left corner of the framing rectangle of this ellipse
-
yNumberThe Y coord of the upper-left corner of the framing rectangle of this ellipse
-
widthNumberThe overall width of this ellipse
-
heightNumberThe overall height of this ellipse
Methods
contains
(
Boolean
-
x -
y
Checks if the x and y coords passed to this function are contained within this ellipse
Parameters:
-
xNumberThe X coord of the point to test
-
yNumberThe Y coord of the point to test
Returns:
Boolean:
if 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
