Skip to content

Commit

Permalink
Add Ellipse#toString() (libgdx#7576)
Browse files Browse the repository at this point in the history
  • Loading branch information
soundasleep authored Feb 24, 2025
1 parent 7db7626 commit 648f9b0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gdx/src/com/badlogic/gdx/math/Ellipse.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,12 @@ public float circumference () {
}
}

/** Returns a {@link String} representation of this {@link Ellipse} of the form {@code [x,y,width,height]}. */
@Override
public String toString () {
return "[" + x + "," + y + "," + width + "," + height + "]";
}

@Override
public boolean equals (Object o) {
if (o == this) return true;
Expand Down

0 comments on commit 648f9b0

Please sign in to comment.