checkpoint
[anneal.git] / src / edu / berkeley / qfat / geom / Vec.java
index bc10a34..979cf2d 100644 (file)
@@ -4,6 +4,9 @@ import javax.media.opengl.glu.*;
 
 /** vector in 3-space; immutable */
 public final class Vec {
 
 /** vector in 3-space; immutable */
 public final class Vec {
+
+    public static final Vec ZERO = new Vec(0,0,0);
+
     public final float x, y, z;
     public Vec(double x, double y, double z) { this((float)x, (float)y, (float)z); }
     public Vec(float x, float y, float z) { this.x = x; this.y = y; this.z = z; }
     public final float x, y, z;
     public Vec(double x, double y, double z) { this((float)x, (float)y, (float)z); }
     public Vec(float x, float y, float z) { this.x = x; this.y = y; this.z = z; }