Optionalx: numberThe x position of the center of the circle. Default 0.
Optionaly: numberThe y position of the center of the circle. Default 0.
Optionalradius: numberThe radius of the circle. Default 0.
The bottom position of the Circle.
The diameter of the Circle.
The left position of the Circle.
The radius of the Circle.
The right position of the Circle.
The top position of the Circle.
ReadonlytypeThe geometry constant type of this object: GEOM_CONST.CIRCLE.
Used for fast type comparisons.
The x position of the center of the circle.
The y position of the center of the circle.
Check to see if the Circle contains the given x / y coordinates.
The x coordinate to check within the circle.
The y coordinate to check within the circle.
Returns a Point object containing the coordinates of a point on the circumference of the Circle based on the given angle normalized to the range 0 to 1. I.e. a value of 0.5 will give the point at 180 degrees around the circle.
A value between 0 and 1, where 0 equals 0 degrees, 0.5 equals 180 degrees and 1 equals 360 around the circle.
Optionalout: OA Vector2 to store the return values in. If not given a Vector2 object will be created.
Returns an array of Point objects containing the coordinates of the points around the circumference of the Circle, based on the given quantity or stepRate values.
The amount of points to return. If a falsey value the quantity will be derived from the stepRate instead.
OptionalstepRate: numberSets the quantity by getting the circumference of the circle and dividing it by the stepRate.
Optionaloutput: OAn array to insert the Vector2s in to. If not provided a new array will be created.
Checks to see if the Circle is empty: has a radius of zero.
Sets this Circle to be empty with a radius of zero. Does not change its position.
Sets the position of this Circle.
Optionalx: numberThe x position of the center of the circle. Default 0.
Optionaly: numberThe y position of the center of the circle. Default 0.
Sets the x, y and radius of this circle.
Optionalx: numberThe x position of the center of the circle. Default 0.
Optionaly: numberThe y position of the center of the circle. Default 0.
Optionalradius: numberThe radius of the circle. Default 0.
StaticAreaCalculates the area of the circle.
The Circle to get the area of.
StaticCircumferenceReturns the circumference of the given Circle.
The Circle to get the circumference of.
StaticCircumferenceReturns a Vector2 object containing the coordinates of a point on the circumference of the Circle based on the given angle.
StaticCloneStaticContainsCheck to see if the Circle contains the given x / y coordinates.
The Circle to check.
The x coordinate to check within the circle.
The y coordinate to check within the circle.
StaticContainsStaticContainsStaticCopyStaticEqualsStaticGetStaticGetReturns a Vector2 object containing the coordinates of a point on the circumference of the Circle based on the given angle normalized to the range 0 to 1. I.e. a value of 0.5 will give the point at 180 degrees around the circle.
The Circle to get the circumference point on.
A value between 0 and 1, where 0 equals 0 degrees, 0.5 equals 180 degrees and 1 equals 360 around the circle.
Optionalout: OA Vector2 instance to store the return values in. If not given a new Vector2 object will be created.
StaticGetReturns an array of Vector2 objects containing the coordinates of the points around the circumference of the Circle, based on the given quantity or stepRate values.
The Circle to get the points from.
The amount of points to return. If a falsey value the quantity will be derived from the stepRate instead.
OptionalstepRate: numberSets the quantity by getting the circumference of the circle and dividing it by the stepRate.
Optionaloutput: any[]An array to insert the points in to. If not provided a new array will be created.
StaticOffsetStaticOffsetStaticRandom
A Circle object.
This is a geometry object, containing numerical values and related methods to inspect and modify them. It is not a Game Object, in that you cannot add it to the display list, and it has no texture. To render a Circle you should look at the capabilities of the Graphics class.