Circle

Circle

Methods


circle_circumference(circle)

Parameters:
Name Type Description
circle

circle to get circumference of

Code Equivalent:
circle.circumference()

circle_circumference_point(circle, degrees)


Returns a point containing the coordinates of the point on the circumference of the circle based on the given angle.

Check out the third party documentation for a more in depth explanation.

Parameters:
Name Type Description
circle

circle to get values from

degrees Number

angle to get the point at

Code Equivalent:
circle.circumferencePoint(degrees, true)

circle_clone(circle)


Returns a new circle object with the same properties as the original.

Check out the third party documentation for a more in depth explanation.

Parameters:
Name Type Description
circle

circle to clone

Code Equivalent:
circle.clone()

circle_contains(circle, x, y)


Returns true/false if the given x/y coordinate can be found within the circle.

Check out the third party documentation for a more in depth explanation.

Parameters:
Name Type Description
circle

circle to check

x Number

the x value to check

y Number

the y value to check

Code Equivalent:
circle.contains(x, y)

circle_create(x, y, diameter)

Parameters:
Name Type Description
x Number

x coordinate to create the circle at

y Number

y coordinate to create the circle at

diameter Number

diameter of the circle

Code Equivalent:
new Phaser.Circle(x, y, diameter)

circle_get_numeric_field(object, field)


Returns the chosen numeric field value of the circle.

Check out the third party documentation for a more in depth explanation.

Parameters:
Name Type Description
object

object to get values from

field

the field to get values of

Code Equivalent:
object.field

circle_intersects(circle_a, circle_b)


Returns true/false if the two circle objects intersect, determined by the radius distances between the two.

Check out the third party documentation for a more in depth explanation.

Parameters:
Name Type Description
circle_a

first circle to check

circle_b

second circle to check

Code Equivalent:
Phaser.Circle.intersects(circle_a, circle_b)

circle_intersects_rectangle(circle, rectangle)


Returns true/false if the circle and rectangle objects intersect.

Check out the third party documentation for a more in depth explanation.

Parameters:
Name Type Description
circle

circle to check

rectangle

rectangle to check

Code Equivalent:
Phaser.Circle.intersectsRectangle(circle, rectangle)

circle_set_numeric_field(object, field, value)

Parameters:
Name Type Description
object

object to set the value for

field

the field to set

value Number

value to set the field to

Code Equivalent:
object.field = value;

cirlce_random(circle)


Returns a point containing random values of x and y found within the circle.

Check out the third party documentation for a more in depth explanation.

Parameters:
Name Type Description
circle

circle to get values from

Code Equivalent:
undefined