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 |
} |
} |