| Modifier and Type | Field and Description |
|---|---|
| public float | |
| private static final long | |
| public float | |
| public float | |
| public float |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | Ellipse(float
X coordinate of the center of the ellipse x, float Y coordinate of the center of the ellipse y, float the width of the ellipse width, float the height of the ellipse height)Constructs a new ellipse |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public float | |
| public float | Returns: The Ramanujan approximation to the circumference of an ellipse if one dimension is at least three times longer than the other, else the simpler approximationApproximates the circumference of this |
| public boolean | Returns: true if this ellipse contains the given point; false otherwise.X coordinate x, float Y coordinate y)Implements com. Checks whether or not this ellipse contains the given point. |
| public boolean | Returns: true if this ellipse contains the given point; false otherwise.Position vector point)Implements com. Checks whether or not this ellipse contains the given point. |
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public void | set(float
X coordinate of the center of the ellipse x, float Y coordinate of the center of the ellipse y, float the width of the ellipse width, float the height of the ellipse height)Sets a new position and size for this ellipse. |
| public void | |
| public void | |
| public void | |
| public Ellipse | Returns: this ellipse for chainingThe position vector of the center of the ellipse position)Sets the x and y-coordinates of ellipse center from a |
| public Ellipse | Returns: this ellipse for chainingThe x-coordinate of the center of the ellipse x, float The y-coordinate of the center of the ellipse y)Sets the x and y-coordinates of ellipse center |
| public Ellipse | Returns: this ellipse for chainingThe width width, float The height height)Sets the width and height of this ellipse |
| public String | toString()
Overrides java. Returns a |
| height | back to summary |
|---|---|
| public float height | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| width | back to summary |
|---|---|
| public float width | |
| x | back to summary |
|---|---|
| public float x | |
| y | back to summary |
|---|---|
| public float y | |
| Ellipse | back to summary |
|---|---|
| public Ellipse() Construct a new ellipse with all values set to zero | |
| Ellipse | back to summary |
|---|---|
| public Ellipse(Ellipse ellipse) Copy constructor
| |
| Ellipse | back to summary |
|---|---|
| public Ellipse(float x, float y, float width, float height) Constructs a new ellipse
| |
| Ellipse | back to summary |
|---|---|
| public Ellipse(Vector2 position, float width, float height) Constructs a new ellipse
| |
| Ellipse | back to summary |
|---|---|
| public Ellipse(Vector2 position, Vector2 size) Constructs a new ellipse | |
| Ellipse | back to summary |
|---|---|
| public Ellipse(Circle circle) Constructs a new
| |
| area | back to summary |
|---|---|
public float area()
| |
| circumference | back to summary |
|---|---|
| public float circumference() Approximates the circumference of this
| |
| contains | back to summary |
|---|---|
| public boolean contains(float x, float y) Implements com. Checks whether or not this ellipse contains the given point.
| |
| contains | back to summary |
|---|---|
| public boolean contains(Vector2 point) Implements com. Checks whether or not this ellipse contains the given point.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| set | back to summary |
|---|---|
| public void set(float x, float y, float width, float height) Sets a new position and size for this ellipse.
| |
| set | back to summary |
|---|---|
| public void set(Ellipse ellipse) Sets a new position and size for this ellipse based upon another ellipse.
| |
| set | back to summary |
|---|---|
| public void set(Circle circle) | |
| set | back to summary |
|---|---|
| public void set(Vector2 position, Vector2 size) | |
| setPosition | back to summary |
|---|---|
| public Ellipse setPosition(Vector2 position) Sets the x and y-coordinates of ellipse center from a | |
| setPosition | back to summary |
|---|---|
| public Ellipse setPosition(float x, float y) Sets the x and y-coordinates of ellipse center
| |
| setSize | back to summary |
|---|---|
| public Ellipse setSize(float width, float height) Sets the width and height of this ellipse
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a
| |