From 22b7cf1d057a247171e2f43be3c3cea33eaca03f Mon Sep 17 00:00:00 2001 From: Pandafuchs Date: Sat, 2 Feb 2019 12:10:46 +0100 Subject: [PATCH] Added toString The default toString method resolves the address of the Memory, this is more useful. --- G-Earth/src/main/java/gearth/extensions/parsers/HPoint.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/G-Earth/src/main/java/gearth/extensions/parsers/HPoint.java b/G-Earth/src/main/java/gearth/extensions/parsers/HPoint.java index bdbbe83..ee3743b 100644 --- a/G-Earth/src/main/java/gearth/extensions/parsers/HPoint.java +++ b/G-Earth/src/main/java/gearth/extensions/parsers/HPoint.java @@ -34,4 +34,9 @@ public class HPoint { HPoint p = (HPoint) o; return this.x == p.getX() && this.y == p.getY() && this.z == p.getZ(); } + + @Override + public String toString() { + return "(" + this.getX() + "," + this.getY() + "," + this.getZ() + ")"; + } }