| Access | Constructor and Description |
|---|---|
| public | |
| public | Circle(float
X coordinate of the center of the circle x, float Y coordinate of the center of the circle y, float The radius of the circle radius)Constructs a new circle with the given X and Y coordinates and the given radius. |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public float | |
| public float | |
| public boolean | Returns: true if this circle contains the given point.X coordinate x, float Y coordinate y)Implements com. Checks whether or not this circle contains a given point. |
| public boolean | Returns: true if this circle contains this point; false otherwise.The point)Vector2 that contains the point coordinates.Implements com. Checks whether or not this circle contains a given point. |
| public boolean | |
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public boolean | |
| public void | set(float
X coordinate of the center of the circle x, float Y coordinate of the center of the circle y, float Circle radius radius)Sets a new location and radius for this circle. |
| public void | |
| public void | |
| public void | |
| public void | setPosition(Vector2
The position vector position)Sets the x and y-coordinates of circle center from vector |
| public void | setPosition(float
The x-coordinate x, float The y-coordinate y)Sets the x and y-coordinates of circle center |
| public void | |
| public void | |
| public void | |
| public String | toString()
Overrides java. Returns a |
| radius | back to summary |
|---|---|
| public float radius | |
| x | back to summary |
|---|---|
| public float x | |
| y | back to summary |
|---|---|
| public float y | |
| Circle | back to summary |
|---|---|
| public Circle() Constructs a new circle with all values set to zero | |
| Circle | back to summary |
|---|---|
| public Circle(float x, float y, float radius) Constructs a new circle with the given X and Y coordinates and the given radius.
| |
| Circle | back to summary |
|---|---|
| public Circle(Vector2 position, float radius) Constructs a new circle using a given | |
| Circle | back to summary |
|---|---|
| public Circle(Circle circle) Copy constructor
| |
| Circle | back to summary |
|---|---|
| public Circle(Vector2 center, Vector2 edge) Creates a new | |
| area | back to summary |
|---|---|
public float area()
| |
| circumference | back to summary |
|---|---|
public float circumference()
| |
| contains | back to summary |
|---|---|
| public boolean contains(float x, float y) Implements com. Checks whether or not this circle contains a given point.
| |
| contains | back to summary |
|---|---|
| public boolean contains(Vector2 point) Implements com. Checks whether or not this circle contains a given point. | |
| contains | back to summary |
|---|---|
| public boolean contains(Circle c) | |
| 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
| |
| overlaps | back to summary |
|---|---|
| public boolean overlaps(Circle c) | |
| set | back to summary |
|---|---|
| public void set(float x, float y, float radius) Sets a new location and radius for this circle.
| |
| set | back to summary |
|---|---|
| public void set(Vector2 position, float radius) Sets a new location and radius for this circle. | |
| set | back to summary |
|---|---|
| public void set(Circle circle) Sets a new location and radius for this circle, based upon another circle.
| |
| set | back to summary |
|---|---|
| public void set(Vector2 center, Vector2 edge) Sets this | |
| setPosition | back to summary |
|---|---|
| public void setPosition(Vector2 position) Sets the x and y-coordinates of circle center from vector
| |
| setPosition | back to summary |
|---|---|
| public void setPosition(float x, float y) Sets the x and y-coordinates of circle center
| |
| setRadius | back to summary |
|---|---|
| public void setRadius(float radius) Sets the radius of circle
| |
| setX | back to summary |
|---|---|
| public void setX(float x) Sets the x-coordinate of circle center
| |
| setY | back to summary |
|---|---|
| public void setY(float y) Sets the y-coordinate of circle center
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a
| |