Circle#left

left The x coordinate of the leftmost point of the circle. Changing the left property of a Circle object has no effect on the x and y properties. However it does affect the diameter, whereas changing the x value does not affect the diameter property. Source code: geom/Circle.js (Line 304)

Circle#getBounds()

getBounds() → {Phaser.Rectangle} Returns the framing rectangle of the circle as a Phaser.Rectangle object. Returns Phaser.Rectangle - The bounds of the Circle. Source code: geom/Circle.js (Line 97)

Circle#empty

empty : boolean Determines whether or not this Circle object is empty. Will return a value of true if the Circle objects diameter is less than or equal to 0; otherwise false.If set to true it will reset all of the Circle objects properties to 0. A Circle object is empty if its diameter is less than or equal to 0. Gets or sets the empty state of the circle. Source code: geom/Circle.js (Line 435)

Circle#distance()

distance(dest, round) → {number} Returns the distance from the center of the Circle object to the given object(can be Circle, Point or anything with x/y properties) Parameters Name Type Argument Default Description dest object The target object. Must have visible x and y properties that represent the center of the object. round boolean <optional> false Round the distance to the nearest integer. Returns number - The distance between this Point object and the destination

Circle#diameter

diameter : number The largest distance between any two points on the circle. The same as the radius * 2. Gets or sets the diameter of the circle. Source code: geom/Circle.js (Line 258)

Circle#copyTo()

copyTo(dest) → {object} Copies the x, y and diameter properties from this Circle to any given object. Parameters Name Type Description dest any The object to copy to. Returns object - This dest object. Source code: geom/Circle.js (Line 140)

Circle#copyFrom()

copyFrom(source) → {Circle} Copies the x, y and diameter properties from any given object to this Circle. Parameters Name Type Description source any The object to copy from. Returns Circle - This Circle object. Source code: geom/Circle.js (Line 128)

Circle#contains()

contains(x, y) → {boolean} Return true if the given x/y coordinates are within this Circle object. Parameters Name Type Description x number The X value of the coordinate to test. y number The Y value of the coordinate to test. Returns boolean - True if the coordinates are within this circle, otherwise false. Source code: geom/Circle.js (Line 192)

Circle#clone()

clone(output) → {Phaser.Circle} Returns a new Circle object with the same values for the x, y, width, and height properties as this Circle object. Parameters Name Type Description output Phaser.Circle Optional Circle object. If given the values will be set into the object, otherwise a brand new Circle object will be created and returned. Returns Phaser.Circle - The cloned Circle object. Source code: geom/Circle.js (Line 171)

Circle#circumferencePoint()

circumferencePoint(angle, asDegrees, out) → {Phaser.Point} Returns a Point object containing the coordinates of a point on the circumference of the Circle based on the given angle. Parameters Name Type Argument Default Description angle number The angle in radians (unless asDegrees is true) to return the point from. asDegrees boolean <optional> false Is the given angle in radians (false) or degrees (true)? out Phaser.Point <optional> An optional Point object to pu