X-Git-Url: http://git.megacz.com/?p=anneal.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fqfat%2Fgeom%2FPlane.java;h=1789e55aee635d8773cdff9b74963f8cfce8a9d3;hp=419bb9392a86789a406546575609527c64a70f06;hb=de2400d58116bd995e73baf7a429e22def1e4067;hpb=9668f77ce3eeed3a393345c357818e1f85b3a637 diff --git a/src/edu/berkeley/qfat/geom/Plane.java b/src/edu/berkeley/qfat/geom/Plane.java index 419bb93..1789e55 100644 --- a/src/edu/berkeley/qfat/geom/Plane.java +++ b/src/edu/berkeley/qfat/geom/Plane.java @@ -3,6 +3,9 @@ import javax.media.opengl.*; public class Plane { + // FIXME: could be given by + // ax+by+cz=d + public final Vec norm; public final float dvalue; @@ -18,7 +21,7 @@ public class Plane { Vec v1 = p2.norm.cross(p3.norm).times(-1 * p1.dvalue); Vec v2 = p3.norm.cross(p1.norm).times(-1 * p2.dvalue); Vec v3 = p1.norm.cross(p2.norm).times(-1 * p3.dvalue); - return Point.ORIGIN.plus(v1.plus(v2).plus(v3).times(1/z)); + return Point.ZERO.plus(v1.plus(v2).plus(v3).times(1/z)); } }