Name | Type | Default | Description |
---|---|---|---|
x |
number | 0 |
optional
The X coordinate of the center of this ellipse |
y |
number | 0 |
optional
The Y coordinate of the center of this ellipse |
halfWidth |
number | 0 |
optional
The half width of this ellipse |
halfHeight |
number | 0 |
optional
The half height of this ellipse |
Members
-
- Default Value:
- 0
-
The type of the object, mainly used to avoid
instanceof
checks- Default Value:
- PIXI.SHAPES.ELIP
- See:
-
- Default Value:
- 0
-
- Default Value:
- 0
-
- Default Value:
- 0
Methods
-
clone ()PIXI.Ellipse
-
Creates a clone of this Ellipse instance
Returns:
Type Description PIXI.Ellipse a copy of the ellipse -
Checks whether the x and y coordinates given are contained within this ellipse
Name Type Description x
number The X coordinate of the point to test
y
number The Y coordinate of the point to test
Returns:
Type Description boolean Whether the x/y coords are within this ellipse -
getBounds ()PIXI.Rectangle
-
Returns the framing rectangle of the ellipse as a Rectangle object
Returns:
Type Description PIXI.Rectangle the framing rectangle