sorta works in a half-crippled way
[anneal.git] / src / edu / berkeley / qfat / geom / Point.java
index 38f872d..fdef5e6 100644 (file)
@@ -7,9 +7,13 @@ public final class Point implements HasBoundingBox {
     public Point(double x, double y, double z) { this((float)x, (float)y, (float)z); }
     public Point(float x, float y, float z) { this.x = x; this.y = y; this.z = z; }
 
+    public static final Point ORIGIN = new Point(0,0,0);
+
     public float distance(Point p) { return (float)Math.sqrt((x-p.x)*(x-p.x)+(y-p.y)*(y-p.y)+(z-p.z)*(z-p.z)); }
 
+    // FIXME: this should be eliminated; wrong order
     public Point times(Matrix m) { return m.times(this); }
+
     public Vec minus(Point p) { return new Vec(x-p.x, y-p.y, z-p.z); }
     public Point plus(Vec v) { return new Point(x+v.x, y+v.y, z+v.z); }