/[gzz]/gzz/gzz/gfx/gl/GLVobCoorder.java
ViewVC logotype

Diff of /gzz/gzz/gfx/gl/GLVobCoorder.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.55 by tjl, Mon Nov 4 12:52:49 2002 UTC revision 1.56 by tjl, Mon Nov 4 22:15:04 2002 UTC
# Line 52  public static final String rcsid = "$Id$ Line 52  public static final String rcsid = "$Id$
52      public int getCSAt(int parent, float x, float y, float[] targetcoords) {      public int getCSAt(int parent, float x, float y, float[] targetcoords) {
53          int[] inds = GL.getAllCSAt(ninds, this.inds, floats, parent, x, y);          int[] inds = GL.getAllCSAt(ninds, this.inds, floats, parent, x, y);
54          for(int i=0; i<inds.length; i++)          for(int i=0; i<inds.length; i++)
55              if(isNearestActiveAncestor(inds[i], parent))              if(isNearestActiveAncestor(inds[i], parent)) {
56                  return inds[i];                  int cs = inds[i];
57                    if(targetcoords != null) {
58                        float[] coords = new float[] {x, y, 0};
59                        inverseTransformPoints3(cs, coords, coords);
60                        targetcoords[0] = coords[0];
61                        targetcoords[1] = coords[1];
62                    }
63                    return cs;
64                }
65          return -1;          return -1;
66      }      }
67    

Legend:
Removed from v.1.55  
changed lines
  Added in v.1.56

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26