checkpoint
[anneal.git] / src / edu / berkeley / qfat / geom / HasPoint.java
index e72b0d0..200dab8 100644 (file)
@@ -1,7 +1,14 @@
 package edu.berkeley.qfat.geom;
 import javax.media.opengl.*;
 
-/** point in 3-space; immutable */
-public abstract class HasPoint {
+/** any object associated with a specific point in 3D space */
+public abstract class HasPoint implements HasBoundingBox {
     public abstract Point getPoint();
+    public float getMaxX() { return getPoint().getMaxX(); }
+    public float getMinX() { return getPoint().getMinX(); }
+    public float getMaxY() { return getPoint().getMaxY(); }
+    public float getMinY() { return getPoint().getMinY(); }
+    public float getMaxZ() { return getPoint().getMaxZ(); }
+    public float getMinZ() { return getPoint().getMinZ(); }
+    public String toString() { return getPoint().toString(); }
 }