X-Git-Url: http://git.megacz.com/?p=anneal.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fqfat%2Fgeom%2FPoint.java;h=f46cc7e78bbe5d0d521c4a3954afc7ed9f189668;hp=fdef5e647a5891074a232947066cfe380850c978;hb=0e80eb500d944f8ad1f3a9e2d296d9a4cbcd7e25;hpb=2b09dab499516873839b9bdbc972c980829e9bac diff --git a/src/edu/berkeley/qfat/geom/Point.java b/src/edu/berkeley/qfat/geom/Point.java index fdef5e6..f46cc7e 100644 --- a/src/edu/berkeley/qfat/geom/Point.java +++ b/src/edu/berkeley/qfat/geom/Point.java @@ -1,5 +1,6 @@ package edu.berkeley.qfat.geom; import javax.media.opengl.*; +import javax.media.opengl.glu.*; /** point in 3-space; immutable */ public final class Point implements HasBoundingBox { @@ -11,9 +12,6 @@ public final class Point implements HasBoundingBox { 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); }