Ellipse Class
The Ellipse object can be used to specify a hit area for displayObjects
Constructor
Ellipse
(
-
x
-
y
-
width
-
height
Parameters:
-
x
NumberThe X coord of the upper-left corner of the framing rectangle of this ellipse
-
y
NumberThe Y coord of the upper-left corner of the framing rectangle of this ellipse
-
width
NumberThe overall width of this ellipse
-
height
NumberThe 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:
-
x
NumberThe X coord of the point to test
-
y
NumberThe 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