pixi.geom.Circle

type
class
metadata
:native
"PIXI.Circle"

Constructor

new(x : Float, y : Float, radius : Float)
parameters
x {Float} The X coordinate of the center of this circle
y {Float} The Y coordinate of the center of this circle
radius {Float} The radius of the circle
The Circle object can be used to specify a hit area for displayObjects

Instance Variables

radius : Float

x : Float

y : Float

Instance Methods

clone() : Circle

returns
{Circle} a copy of the circle
Creates a clone of this Circle instance

contains(x : Float, y : Float) : Bool

parameters
x {Float} The X coordinate of the point to test
y {Float} The Y coordinate of the point to test
returns
{Bool} Whether the x/y coordinates are within this polygon
Checks whether the x, and y coordinates passed to this function are contained within this circle

getBounds() : Rectangle

returns
{Rectangle} the framing rectangle
Returns the framing rectangle of the circle as a PIXI.Rectangle object