X-Git-Url: http://git.megacz.com/?p=anneal.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fqfat%2Fgeom%2FPoint.java;h=f46cc7e78bbe5d0d521c4a3954afc7ed9f189668;hp=2de47a6d70dcca8e0bf56589802901a0ab809115;hb=0e80eb500d944f8ad1f3a9e2d296d9a4cbcd7e25;hpb=2d6bccf0ca59bca01f2a9942e90c7ddb9399ed44 diff --git a/src/edu/berkeley/qfat/geom/Point.java b/src/edu/berkeley/qfat/geom/Point.java index 2de47a6..f46cc7e 100644 --- a/src/edu/berkeley/qfat/geom/Point.java +++ b/src/edu/berkeley/qfat/geom/Point.java @@ -28,19 +28,5 @@ public final class Point implements HasBoundingBox { public float getMinY() { return y; } public float getMaxZ() { return z; } public float getMinZ() { return z; } - - public Point glProject(GL gl) { - Point p = this; - int viewport[] = new int[4]; - double mvmatrix[] = new double[16]; - double projmatrix[] = new double[16]; - double wcoord[] = new double[4]; - gl.glGetIntegerv(GL.GL_VIEWPORT, viewport, 0); - gl.glGetDoublev(GL.GL_MODELVIEW_MATRIX, mvmatrix, 0); - gl.glGetDoublev(GL.GL_PROJECTION_MATRIX, projmatrix, 0); - GLU glu = new GLU(); - glu.gluProject(p.x, p.y, p.z, mvmatrix, 0, projmatrix, 0, viewport, 0, wcoord, 0); - return new Point(wcoord[0], wcoord[1], 0); - } }