The bottom position of the Ellipse.
The height of the ellipse.
The left position of the Ellipse.
The right position of the Ellipse.
The top position of the Ellipse.
ReadonlytypeThe geometry constant type of this object: GEOM_CONST.ELLIPSE.
Used for fast type comparisons.
The width of the ellipse.
The x position of the center of the ellipse.
The y position of the center of the ellipse.
Check to see if the Ellipse contains the given x / y coordinates.
The x coordinate to check within the ellipse.
The y coordinate to check within the ellipse.
Returns the major radius of the ellipse. Also known as the Semi Major Axis.
Returns the minor radius of the ellipse. Also known as the Semi Minor Axis.
Returns a Point object containing the coordinates of a point on the circumference of the Ellipse 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 ellipse.
Optionalout: OA Vector2 to store the return values in. If not given a Vector2 object will be created.
Returns an array of Vector2 objects containing the coordinates of the points around the circumference of the Ellipse, 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 ellipse and dividing it by the stepRate.
Optionaloutput: OAn array to insert the Vector2s in. If not provided a new array will be created.
Checks to see if the Ellipse is empty: has a width or height equal to zero.
Sets this Ellipse to be empty with a width and height of zero. Does not change its position.
Sets the position of this Ellipse.
The x position of the center of the ellipse.
The y position of the center of the ellipse.
Sets the size of this Ellipse. Does not change its position.
The width of the ellipse.
Optionalheight: numberThe height of the ellipse. Default width.
Sets the x, y, width and height of this ellipse.
The x position of the center of the ellipse.
The y position of the center of the ellipse.
The width of the ellipse.
The height of the ellipse.
StaticAreaStaticCircumferenceStaticCircumferenceReturns a Vector2 containing the coordinates of a point on the circumference of the Ellipse based on the given angle.
StaticCloneStaticContainsStaticContainsStaticContainsStaticCopyCopies the x, y, width and height properties from the source Ellipse
into the given dest Ellipse, then returns the dest Ellipse.
StaticEqualsStaticGetStaticGetReturns a Vector2 object containing the coordinates of a point on the circumference of the Ellipse 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 Ellipse 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 ellipse.
Optionalout: OA Vector2 object 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 Ellipse, based on the given quantity or stepRate values.
The Ellipse 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 ellipse and dividing it by the stepRate.
Optionalout: OAn array to insert the Vector2 objects in to. If not provided a new array will be created.
StaticOffsetStaticOffsetStaticRandom
An Ellipse 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 an Ellipse you should look at the capabilities of the Graphics class.