blob: d4befb5f3b8e8ac789b84274f58ad0384eb1bbe4 (
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
39
40
41
|
/* */ package NET.worlds.scape;
/* */
/* */ import NET.worlds.console.Console;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ class YawWidget
/* */ extends WidgetButton
/* */ {
/* */ private static final long serialVersionUID = 1L;
/* */
/* */ public YawWidget(ToolBar toolbar)
/* */ {
/* 22 */ super(toolbar, "yaw.gif", Console.message("Yaw"));
/* */ }
/* */
/* */ public String drag(boolean initialDrag, float deltax, float deltay)
/* */ {
/* 27 */ if (Math.abs(deltay) > Math.abs(deltax))
/* 28 */ deltax = 0.0F;
/* 29 */ Transform t = Transform.make();
/* 30 */ applyWorldTransform(initialDrag,
/* 31 */ t.spin(getWorldAxis(0, 0, 1), deltax));
/* 32 */ t.recycle();
/* 33 */ return "Yaw";
/* */ }
/* */ }
/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\YawWidget.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|