109 |
} |
} |
110 |
return super.mouse(e, oldVobScene); |
return super.mouse(e, oldVobScene); |
111 |
} |
} |
112 |
|
|
113 |
|
|
114 |
|
public boolean hasMouseHit(VobScene oldVobScene, int x, int y, float[] zout) { |
115 |
|
super.hasMouseHit(oldVobScene, x,y, zout); |
116 |
|
|
117 |
|
oldVobScene.coords.transformPoints3(box2paper, hit_pt, hit_pt); |
118 |
|
view2d.getSize(plane, v2dwh); |
119 |
|
if(v2dwh[0] >= 0) { |
120 |
|
if(hit_pt[0] >= 0 && hit_pt[0] < v2dwh[0] && |
121 |
|
hit_pt[1] >= 0 && hit_pt[1] < v2dwh[1]) return true; |
122 |
|
} |
123 |
|
return false; |
124 |
|
} |
125 |
|
|
126 |
} |
} |
127 |
|
|