Ellipse Class
Constructor
Ellipse
(
-
x -
y -
width -
height
Parameters:
-
xNumberThe X coord of the upper-left corner of the framing rectangle of this circle
-
yNumberThe Y coord of the upper-left corner of the framing rectangle of this circle
-
widthNumberThe overall height of this ellipse
-
heightNumberThe overall width of this ellipse
Methods
clone
()
Returns:
a copy of the polygon
contains
(
-
x -
y
Parameters:
-
xNumberThe X coord of the point to test
-
yNumberThe 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
