/[fenfire]/fenfire/org/fenfire/view/buoy/MainNode2D.java
ViewVC logotype

Diff of /fenfire/org/fenfire/view/buoy/MainNode2D.java

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

revision 1.32 by mudyc, Wed Aug 6 15:55:54 2003 UTC revision 1.33 by mudyc, Sun Aug 17 11:31:27 2003 UTC
# Line 100  public class MainNode2D extends Abstract Line 100  public class MainNode2D extends Abstract
100                          focus.getPanX()-boxw/zoom/2, focus.getPanY()-boxh/zoom/2,                          focus.getPanX()-boxw/zoom/2, focus.getPanY()-boxh/zoom/2,
101                                      1/zoom, 1/zoom, boxw, boxh);                                      1/zoom, 1/zoom, boxw, boxh);
102      }      }
103    
104        public boolean hasMouseHit(VobScene oldVobScene, int x, int y, float[] zout) {
105            super.hasMouseHit(oldVobScene, x,y, zout);
106    
107            if(hit_pt[0] >= 0 && hit_pt[0] < hit_sq[0] &&
108               hit_pt[1] >= 0 && hit_pt[1] < hit_sq[1]) {
109                hit_pt[2] = 0;
110                oldVobScene.coords
111                    .transformPoints3(box2screen, hit_pt, hit_pt);
112                if(zout != null)
113                    zout[0] = hit_pt[2];
114                return true;
115            }
116            return false;
117        }
118            
119  }  }

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

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