springroll.native.Circle Class
The Circle object can be used to specify a hit area for displayobjects
Constructor
springroll.native.Circle
Parameters:
-
x
Number
The X coord of the upper-left corner of the framing rectangle of this circle
-
y
Number
The Y coord of the upper-left corner of the framing rectangle of this circle
-
radius
Number
clone
()
Circle
Creates a clone of this Circle instance
Returns:
Circle:
a copy of the polygon
contains
Boolean
Checks if the x, and y coords passed to this function are contained within this circle
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 polygon