API Docs for: 2.2.1
Show:

File: pixi/geom/Circle.hx

                        package pixi.geom;
                        
                        @:native("PIXI.Circle")
                        extern class Circle {
                        
                        	/**
                        	 * The Circle object can be used to specify a hit area for displayObjects
                        	 *
                        	 * @class Circle
                        	 * @constructor
                        	 * @param x {Float} The X coordinate of the center of this circle
                        	 * @param y {Float} The Y coordinate of the center of this circle
                        	 * @param radius {Float} The radius of the circle
                        	 */
                        	function new(x:Float, y:Float, radius:Float):Void;
                        
                        	/**
                        	 * Creates a clone of this Circle instance
                        	 *
                        	 * @method clone
                        	 * @return {Circle} a copy of the circle
                        	 */
                        	function clone():Circle;
                        
                        	/**
                        	 * Checks whether the x, and y coordinates passed to this function are contained within this circle
                        	 *
                        	 * @method contains
                        	 * @param x {Float} The X coordinate of the point to test
                        	 * @param y {Float} The Y coordinate of the point to test
                        	 * @return {Bool} Whether the x/y coordinates are within this polygon
                        	 */
                        	function contains(x:Float, y:Float):Bool;
                        
                        	/**
                        	 * Returns the framing rectangle of the circle as a PIXI.Rectangle object
                        	 *
                        	 * @method getBounds
                        	 * @return {Rectangle} the framing rectangle
                        	 */
                        	function getBounds():Rectangle;
                        
                        	/**
                        	 * @property x
                        	 * @type Float
                        	 * @default 0
                        	 */
                        	var x:Float;
                        
                        	/**
                        	 * @property y
                        	 * @type Float
                        	 * @default 0
                        	 */
                        	var y:Float;
                        
                        	/**
                        	 * @property radius
                        	 * @type Float
                        	 * @default 0
                        	 */
                        	var radius:Float;
                        }