add RTree classes
[anneal.git] / src / edu / berkeley / qfat / geom / HasPoint.java
index e72b0d0..f1914e3 100644 (file)
@@ -2,6 +2,12 @@ package edu.berkeley.qfat.geom;
 import javax.media.opengl.*;
 
 /** point in 3-space; immutable */
-public abstract class HasPoint {
+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(); }
 }