Add @Override to toString

This commit is contained in:
2022-04-07 18:08:05 +02:00
parent dfbdd6dc9d
commit 95a4907dd2
3 changed files with 3 additions and 0 deletions

View File

@ -97,6 +97,7 @@ public class Vector3 {
* Returns the coordinates of this vector in brackets as a string
* in the form "[x,y,z]", e.g., "[1.48E11,0.0,0.0]".
*/
@Override
public String toString() {
return String.format("[%g,%g,%g]", x, y, z);
}