blob: cd3dc0539b385dd5923250b7db84e0d24749cfe7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/* */ package NET.worlds.scape;
/* */
/* */
/* */
/* */
/* */
/* */
/* */ class PitchWidget
/* */ extends WidgetButton
/* */ {
/* */ private static final long serialVersionUID = 1L;
/* */
/* */
/* */
/* */
/* */
/* */ public PitchWidget(ToolBar toolbar)
/* */ {
/* 19 */ super(toolbar, "pitch.gif", "Pitch");
/* */ }
/* */
/* */ public String drag(boolean initialDrag, float deltax, float deltay)
/* */ {
/* 24 */ if (Math.abs(deltax) > Math.abs(deltay))
/* 25 */ deltay = 0.0F;
/* 26 */ Transform t = Transform.make();
/* 27 */ applyWorldTransform(initialDrag,
/* 28 */ t.spin(getWorldAxis(1, 0, 0), -deltay));
/* 29 */ t.recycle();
/* 30 */ return "Pitch";
/* */ }
/* */ }
/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\PitchWidget.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|