Circle Class
Constructor
Circle
(
-
x
-
y
-
radius
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
-
radius
NumberThe radius of the circle
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
radius
Number
Default: 0
x
Number
Default: 0
y
Number
Default: 0