Merge pull request #28 from Pandafuchs/patch-3

Added toString
This commit is contained in:
sirjonasxx 2019-02-02 13:33:30 +01:00 committed by GitHub
commit 16157793c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,4 +34,9 @@ public class HPoint {
HPoint p = (HPoint) o; HPoint p = (HPoint) o;
return this.x == p.getX() && this.y == p.getY() && this.z == p.getZ(); return this.x == p.getX() && this.y == p.getY() && this.z == p.getZ();
} }
@Override
public String toString() {
return "(" + this.getX() + "," + this.getY() + "," + this.getZ() + ")";
}
} }