Ellipse Class
Constructor
Ellipse
(
-
x
-
y
-
width
-
height
Parameters:
-
x
NumberThe X coord of the upper-left corner of the framing rectangle of this circle
-
y
NumberThe Y coord of the upper-left corner of the framing rectangle of this circle
-
width
NumberThe overall height of this ellipse
-
height
NumberThe overall width of this ellipse
Methods
clone
()
Returns:
a copy of the polygon
contains
(
-
x
-
y
Parameters:
-
x
NumberThe X coord of the point to test
-
y
NumberThe Y coord of the point to test
Returns:
if the x/y coords are within this polygon
Properties
height
Number
Default: 0
width
Number
Default: 0
x
Number
Default: 0
y
Number
Default: 0