Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
307 chris 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc (build 1.6.0_26) on Sun Jun 03 02:18:09 CEST 2012 -->
6
<TITLE>
7
Transform (libgdx API)
8
</TITLE>
9
 
10
<META NAME="date" CONTENT="2012-06-03">
11
 
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
13
 
14
<SCRIPT type="text/javascript">
15
function windowTitle()
16
{
17
    if (location.href.indexOf('is-external=true') == -1) {
18
        parent.document.title="Transform (libgdx API)";
19
    }
20
}
21
</SCRIPT>
22
<NOSCRIPT>
23
</NOSCRIPT>
24
 
25
</HEAD>
26
 
27
<BODY BGCOLOR="white" onload="windowTitle();">
28
<HR>
29
 
30
 
31
<!-- ========= START OF TOP NAVBAR ======= -->
32
<A NAME="navbar_top"><!-- --></A>
33
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35
<TR>
36
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37
<A NAME="navbar_top_firstrow"><!-- --></A>
38
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39
  <TR ALIGN="center" VALIGN="top">
40
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Transform.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48
  </TR>
49
</TABLE>
50
</TD>
51
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52
 
53
                                libgdx API
54
                                <style>
55
                                body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt }
56
                                pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif }
57
                                h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%;  font-weight:bold }
58
                                .TableHeadingColor { background:#EEEEFF; }
59
                                a { text-decoration:none }
60
                                a:hover { text-decoration:underline }
61
                                a:link, a:visited { color:blue }
62
                                table { border:0px }
63
                                .TableRowColor td:first-child { border-left:1px solid black }
64
                                .TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black }
65
                                hr { border:0px; border-bottom:1px solid #333366; }
66
                                </style>
67
                        </EM>
68
</TD>
69
</TR>
70
 
71
<TR>
72
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
73
&nbsp;<A HREF="../../../../../com/badlogic/gdx/physics/box2d/Shape.Type.html" title="enum in com.badlogic.gdx.physics.box2d"><B>PREV CLASS</B></A>&nbsp;
74
&nbsp;<A HREF="../../../../../com/badlogic/gdx/physics/box2d/World.html" title="class in com.badlogic.gdx.physics.box2d"><B>NEXT CLASS</B></A></FONT></TD>
75
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
76
  <A HREF="../../../../../index.html?com/badlogic/gdx/physics/box2d/Transform.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="Transform.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
78
&nbsp;<SCRIPT type="text/javascript">
79
  <!--
80
  if(window==top) {
81
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
82
  }
83
  //-->
84
</SCRIPT>
85
<NOSCRIPT>
86
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
87
</NOSCRIPT>
88
 
89
 
90
</FONT></TD>
91
</TR>
92
<TR>
93
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
94
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
95
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
96
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
97
</TR>
98
</TABLE>
99
<A NAME="skip-navbar_top"></A>
100
<!-- ========= END OF TOP NAVBAR ========= -->
101
 
102
<HR>
103
<!-- ======== START OF CLASS DATA ======== -->
104
<H2>
105
<FONT SIZE="-1">
106
com.badlogic.gdx.physics.box2d</FONT>
107
<BR>
108
Class Transform</H2>
109
<PRE>
110
java.lang.Object
111
  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.physics.box2d.Transform</B>
112
</PRE>
113
<HR>
114
<DL>
115
<DT><PRE>public class <B>Transform</B><DT>extends java.lang.Object</DL>
116
</PRE>
117
 
118
<P>
119
Encodes a Box2D transform. We are lazy so we only store a 4 float wide array. First two floats are the position of the
120
 b2Transform struct. Next two floats are the cosine and sine of the rotation angle.
121
<P>
122
 
123
<P>
124
<DL>
125
<DT><B>Author:</B></DT>
126
  <DD>mzechner</DD>
127
</DL>
128
<HR>
129
 
130
<P>
131
<!-- =========== FIELD SUMMARY =========== -->
132
 
133
<A NAME="field_summary"><!-- --></A>
134
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
135
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
136
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
137
<B>Field Summary</B></FONT></TH>
138
</TR>
139
<TR BGCOLOR="white" CLASS="TableRowColor">
140
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
141
<CODE>static&nbsp;int</CODE></FONT></TD>
142
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Transform.html#COS">COS</A></B></CODE>
143
 
144
<BR>
145
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
146
</TR>
147
<TR BGCOLOR="white" CLASS="TableRowColor">
148
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
149
<CODE>static&nbsp;int</CODE></FONT></TD>
150
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Transform.html#POS_X">POS_X</A></B></CODE>
151
 
152
<BR>
153
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
154
</TR>
155
<TR BGCOLOR="white" CLASS="TableRowColor">
156
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
157
<CODE>static&nbsp;int</CODE></FONT></TD>
158
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Transform.html#POS_Y">POS_Y</A></B></CODE>
159
 
160
<BR>
161
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
162
</TR>
163
<TR BGCOLOR="white" CLASS="TableRowColor">
164
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
165
<CODE>static&nbsp;int</CODE></FONT></TD>
166
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Transform.html#SIN">SIN</A></B></CODE>
167
 
168
<BR>
169
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
170
</TR>
171
<TR BGCOLOR="white" CLASS="TableRowColor">
172
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
173
<CODE>&nbsp;float[]</CODE></FONT></TD>
174
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Transform.html#vals">vals</A></B></CODE>
175
 
176
<BR>
177
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
178
</TR>
179
</TABLE>
180
&nbsp;
181
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
182
 
183
<A NAME="constructor_summary"><!-- --></A>
184
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
185
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
186
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
187
<B>Constructor Summary</B></FONT></TH>
188
</TR>
189
<TR BGCOLOR="white" CLASS="TableRowColor">
190
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Transform.html#Transform()">Transform</A></B>()</CODE>
191
 
192
<BR>
193
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
194
</TR>
195
<TR BGCOLOR="white" CLASS="TableRowColor">
196
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Transform.html#Transform(com.badlogic.gdx.math.Vector2, float)">Transform</A></B>(<A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;position,
197
          float&nbsp;angle)</CODE>
198
 
199
<BR>
200
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a new Transform instance with the given position and angle</TD>
201
</TR>
202
</TABLE>
203
&nbsp;
204
<!-- ========== METHOD SUMMARY =========== -->
205
 
206
<A NAME="method_summary"><!-- --></A>
207
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
208
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
209
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
210
<B>Method Summary</B></FONT></TH>
211
</TR>
212
<TR BGCOLOR="white" CLASS="TableRowColor">
213
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
214
<CODE>&nbsp;<A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD>
215
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Transform.html#getPosition()">getPosition</A></B>()</CODE>
216
 
217
<BR>
218
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
219
</TR>
220
<TR BGCOLOR="white" CLASS="TableRowColor">
221
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
222
<CODE>&nbsp;float</CODE></FONT></TD>
223
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Transform.html#getRotation()">getRotation</A></B>()</CODE>
224
 
225
<BR>
226
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
227
</TR>
228
<TR BGCOLOR="white" CLASS="TableRowColor">
229
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
230
<CODE>&nbsp;<A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD>
231
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Transform.html#mul(com.badlogic.gdx.math.Vector2)">mul</A></B>(<A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;v)</CODE>
232
 
233
<BR>
234
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Transforms the given vector by this transform</TD>
235
</TR>
236
<TR BGCOLOR="white" CLASS="TableRowColor">
237
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
238
<CODE>&nbsp;void</CODE></FONT></TD>
239
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Transform.html#setPosition(com.badlogic.gdx.math.Vector2)">setPosition</A></B>(<A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;pos)</CODE>
240
 
241
<BR>
242
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the position of this transform</TD>
243
</TR>
244
<TR BGCOLOR="white" CLASS="TableRowColor">
245
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
246
<CODE>&nbsp;void</CODE></FONT></TD>
247
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Transform.html#setRotation(float)">setRotation</A></B>(float&nbsp;angle)</CODE>
248
 
249
<BR>
250
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the rotation of this transform</TD>
251
</TR>
252
</TABLE>
253
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
254
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
255
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
256
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
257
</TR>
258
<TR BGCOLOR="white" CLASS="TableRowColor">
259
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
260
</TR>
261
</TABLE>
262
&nbsp;
263
<P>
264
 
265
<!-- ============ FIELD DETAIL =========== -->
266
 
267
<A NAME="field_detail"><!-- --></A>
268
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
269
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
270
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
271
<B>Field Detail</B></FONT></TH>
272
</TR>
273
</TABLE>
274
 
275
<A NAME="POS_X"><!-- --></A><H3>
276
POS_X</H3>
277
<PRE>
278
public static final int <B>POS_X</B></PRE>
279
<DL>
280
<DL>
281
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.badlogic.gdx.physics.box2d.Transform.POS_X">Constant Field Values</A></DL>
282
</DL>
283
<HR>
284
 
285
<A NAME="POS_Y"><!-- --></A><H3>
286
POS_Y</H3>
287
<PRE>
288
public static final int <B>POS_Y</B></PRE>
289
<DL>
290
<DL>
291
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.badlogic.gdx.physics.box2d.Transform.POS_Y">Constant Field Values</A></DL>
292
</DL>
293
<HR>
294
 
295
<A NAME="COS"><!-- --></A><H3>
296
COS</H3>
297
<PRE>
298
public static final int <B>COS</B></PRE>
299
<DL>
300
<DL>
301
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.badlogic.gdx.physics.box2d.Transform.COS">Constant Field Values</A></DL>
302
</DL>
303
<HR>
304
 
305
<A NAME="SIN"><!-- --></A><H3>
306
SIN</H3>
307
<PRE>
308
public static final int <B>SIN</B></PRE>
309
<DL>
310
<DL>
311
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.badlogic.gdx.physics.box2d.Transform.SIN">Constant Field Values</A></DL>
312
</DL>
313
<HR>
314
 
315
<A NAME="vals"><!-- --></A><H3>
316
vals</H3>
317
<PRE>
318
public float[] <B>vals</B></PRE>
319
<DL>
320
<DL>
321
</DL>
322
</DL>
323
 
324
<!-- ========= CONSTRUCTOR DETAIL ======== -->
325
 
326
<A NAME="constructor_detail"><!-- --></A>
327
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
328
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
329
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
330
<B>Constructor Detail</B></FONT></TH>
331
</TR>
332
</TABLE>
333
 
334
<A NAME="Transform()"><!-- --></A><H3>
335
Transform</H3>
336
<PRE>
337
public <B>Transform</B>()</PRE>
338
<DL>
339
</DL>
340
<HR>
341
 
342
<A NAME="Transform(com.badlogic.gdx.math.Vector2, float)"><!-- --></A><H3>
343
Transform</H3>
344
<PRE>
345
public <B>Transform</B>(<A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;position,
346
                 float&nbsp;angle)</PRE>
347
<DL>
348
<DD>Constructs a new Transform instance with the given position and angle
349
<P>
350
<DL>
351
<DT><B>Parameters:</B><DD><CODE>position</CODE> - the position<DD><CODE>angle</CODE> - the angle in radians</DL>
352
</DL>
353
 
354
<!-- ============ METHOD DETAIL ========== -->
355
 
356
<A NAME="method_detail"><!-- --></A>
357
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
358
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
359
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
360
<B>Method Detail</B></FONT></TH>
361
</TR>
362
</TABLE>
363
 
364
<A NAME="mul(com.badlogic.gdx.math.Vector2)"><!-- --></A><H3>
365
mul</H3>
366
<PRE>
367
public <A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>mul</B>(<A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;v)</PRE>
368
<DL>
369
<DD>Transforms the given vector by this transform
370
<P>
371
<DD><DL>
372
<DT><B>Parameters:</B><DD><CODE>v</CODE> - the vector</DL>
373
</DD>
374
</DL>
375
<HR>
376
 
377
<A NAME="getPosition()"><!-- --></A><H3>
378
getPosition</H3>
379
<PRE>
380
public <A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>getPosition</B>()</PRE>
381
<DL>
382
<DD><DL>
383
 
384
<DT><B>Returns:</B><DD>the position, modification of the vector has no effect on the Transform</DL>
385
</DD>
386
</DL>
387
<HR>
388
 
389
<A NAME="setRotation(float)"><!-- --></A><H3>
390
setRotation</H3>
391
<PRE>
392
public void <B>setRotation</B>(float&nbsp;angle)</PRE>
393
<DL>
394
<DD>Sets the rotation of this transform
395
<P>
396
<DD><DL>
397
<DT><B>Parameters:</B><DD><CODE>angle</CODE> - angle in radians</DL>
398
</DD>
399
</DL>
400
<HR>
401
 
402
<A NAME="getRotation()"><!-- --></A><H3>
403
getRotation</H3>
404
<PRE>
405
public float <B>getRotation</B>()</PRE>
406
<DL>
407
<DD><DL>
408
</DL>
409
</DD>
410
</DL>
411
<HR>
412
 
413
<A NAME="setPosition(com.badlogic.gdx.math.Vector2)"><!-- --></A><H3>
414
setPosition</H3>
415
<PRE>
416
public void <B>setPosition</B>(<A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;pos)</PRE>
417
<DL>
418
<DD>Sets the position of this transform
419
<P>
420
<DD><DL>
421
<DT><B>Parameters:</B><DD><CODE>pos</CODE> - the position</DL>
422
</DD>
423
</DL>
424
<!-- ========= END OF CLASS DATA ========= -->
425
<HR>
426
 
427
 
428
<!-- ======= START OF BOTTOM NAVBAR ====== -->
429
<A NAME="navbar_bottom"><!-- --></A>
430
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
431
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
432
<TR>
433
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
434
<A NAME="navbar_bottom_firstrow"><!-- --></A>
435
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
436
  <TR ALIGN="center" VALIGN="top">
437
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
438
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
439
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
440
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Transform.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
441
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
442
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
443
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
444
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
445
  </TR>
446
</TABLE>
447
</TD>
448
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
449
libgdx API</EM>
450
</TD>
451
</TR>
452
 
453
<TR>
454
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
455
&nbsp;<A HREF="../../../../../com/badlogic/gdx/physics/box2d/Shape.Type.html" title="enum in com.badlogic.gdx.physics.box2d"><B>PREV CLASS</B></A>&nbsp;
456
&nbsp;<A HREF="../../../../../com/badlogic/gdx/physics/box2d/World.html" title="class in com.badlogic.gdx.physics.box2d"><B>NEXT CLASS</B></A></FONT></TD>
457
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
458
  <A HREF="../../../../../index.html?com/badlogic/gdx/physics/box2d/Transform.html" target="_top"><B>FRAMES</B></A>  &nbsp;
459
&nbsp;<A HREF="Transform.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
460
&nbsp;<SCRIPT type="text/javascript">
461
  <!--
462
  if(window==top) {
463
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
464
  }
465
  //-->
466
</SCRIPT>
467
<NOSCRIPT>
468
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
469
</NOSCRIPT>
470
 
471
 
472
</FONT></TD>
473
</TR>
474
<TR>
475
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
476
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
477
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
478
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
479
</TR>
480
</TABLE>
481
<A NAME="skip-navbar_bottom"></A>
482
<!-- ======== END OF BOTTOM NAVBAR ======= -->
483
 
484
<HR>
485
 
486
                                <div style="font-size:9pt"><i>
487
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
488
                                </i></div>
489
 
490
</BODY>
491
</HTML>