springroll.native.Ellipse Class
The Ellipse object can be used to specify a hit area for displayobjects
Constructor
springroll.native.Ellipse
Parameters:
-
x
Number
The X coord of the upper-left corner of the framing rectangle of this ellipse
-
y
Number
The Y coord of the upper-left corner of the framing rectangle of this ellipse
-
width
Number
The overall width of this ellipse
-
height
Number
The overall height of this ellipse
clone
()
Ellipse
Creates a clone of this Ellipse instance
Returns:
Ellipse:
a copy of the ellipse
contains
Boolean
Checks if the x, and y coords passed to this function are contained within this ellipse
Parameters:
-
x
Number
The X coord of the point to test
-
y
Number
The Y coord of the point to test
Returns:
Boolean:
if the x/y coords are within this ellipse