Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
356 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 Jan 27 20:37:07 CET 2013 -->
6
<TITLE>
7
Polygon (libgdx API)
8
</TITLE>
9
 
10
<META NAME="date" CONTENT="2013-01-27">
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="Polygon (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/Polygon.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/math/Plane.PlaneSide.html" title="enum in com.badlogic.gdx.math"><B>PREV CLASS</B></A>&nbsp;
74
&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math"><B>NEXT CLASS</B></A></FONT></TD>
75
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
76
  <A HREF="../../../../index.html?com/badlogic/gdx/math/Polygon.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="Polygon.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;FIELD&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;FIELD&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.math</FONT>
107
<BR>
108
Class Polygon</H2>
109
<PRE>
110
java.lang.Object
111
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.math.Polygon</B>
112
</PRE>
113
<HR>
114
<DL>
115
<DT><PRE>public class <B>Polygon</B><DT>extends java.lang.Object</DL>
116
</PRE>
117
 
118
<P>
119
<HR>
120
 
121
<P>
122
 
123
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
124
 
125
<A NAME="constructor_summary"><!-- --></A>
126
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
127
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
128
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
129
<B>Constructor Summary</B></FONT></TH>
130
</TR>
131
<TR BGCOLOR="white" CLASS="TableRowColor">
132
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Polygon.html#Polygon(float[])">Polygon</A></B>(float[]&nbsp;vertices)</CODE>
133
 
134
<BR>
135
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
136
</TR>
137
</TABLE>
138
&nbsp;
139
<!-- ========== METHOD SUMMARY =========== -->
140
 
141
<A NAME="method_summary"><!-- --></A>
142
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
143
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
144
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
145
<B>Method Summary</B></FONT></TH>
146
</TR>
147
<TR BGCOLOR="white" CLASS="TableRowColor">
148
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
149
<CODE>&nbsp;float</CODE></FONT></TD>
150
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Polygon.html#area()">area</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>&nbsp;boolean</CODE></FONT></TD>
158
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Polygon.html#contains(float, float)">contains</A></B>(float&nbsp;x,
159
         float&nbsp;y)</CODE>
160
 
161
<BR>
162
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
163
</TR>
164
<TR BGCOLOR="white" CLASS="TableRowColor">
165
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
166
<CODE>&nbsp;void</CODE></FONT></TD>
167
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Polygon.html#dirty()">dirty</A></B>()</CODE>
168
 
169
<BR>
170
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
171
</TR>
172
<TR BGCOLOR="white" CLASS="TableRowColor">
173
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
174
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Rectangle.html" title="class in com.badlogic.gdx.math">Rectangle</A></CODE></FONT></TD>
175
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Polygon.html#getBoundingRectangle()">getBoundingRectangle</A></B>()</CODE>
176
 
177
<BR>
178
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
179
</TR>
180
<TR BGCOLOR="white" CLASS="TableRowColor">
181
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
182
<CODE>&nbsp;float</CODE></FONT></TD>
183
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Polygon.html#getOriginX()">getOriginX</A></B>()</CODE>
184
 
185
<BR>
186
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
187
</TR>
188
<TR BGCOLOR="white" CLASS="TableRowColor">
189
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
190
<CODE>&nbsp;float</CODE></FONT></TD>
191
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Polygon.html#getOriginY()">getOriginY</A></B>()</CODE>
192
 
193
<BR>
194
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
195
</TR>
196
<TR BGCOLOR="white" CLASS="TableRowColor">
197
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
198
<CODE>&nbsp;float</CODE></FONT></TD>
199
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Polygon.html#getRotation()">getRotation</A></B>()</CODE>
200
 
201
<BR>
202
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
203
</TR>
204
<TR BGCOLOR="white" CLASS="TableRowColor">
205
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
206
<CODE>&nbsp;float</CODE></FONT></TD>
207
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Polygon.html#getScaleX()">getScaleX</A></B>()</CODE>
208
 
209
<BR>
210
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
211
</TR>
212
<TR BGCOLOR="white" CLASS="TableRowColor">
213
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
214
<CODE>&nbsp;float</CODE></FONT></TD>
215
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Polygon.html#getScaleY()">getScaleY</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/math/Polygon.html#getTransformedVertices()">getTransformedVertices</A></B>()</CODE>
224
 
225
<BR>
226
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns vertices scaled, rotated, and offset by the polygon position.</TD>
227
</TR>
228
<TR BGCOLOR="white" CLASS="TableRowColor">
229
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
230
<CODE>&nbsp;float[]</CODE></FONT></TD>
231
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Polygon.html#getVertices()">getVertices</A></B>()</CODE>
232
 
233
<BR>
234
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns vertices without scaling or rotation and without being offset by the polygon position.</TD>
235
</TR>
236
<TR BGCOLOR="white" CLASS="TableRowColor">
237
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
238
<CODE>&nbsp;float</CODE></FONT></TD>
239
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Polygon.html#getX()">getX</A></B>()</CODE>
240
 
241
<BR>
242
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
243
</TR>
244
<TR BGCOLOR="white" CLASS="TableRowColor">
245
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
246
<CODE>&nbsp;float</CODE></FONT></TD>
247
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Polygon.html#getY()">getY</A></B>()</CODE>
248
 
249
<BR>
250
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
251
</TR>
252
<TR BGCOLOR="white" CLASS="TableRowColor">
253
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
254
<CODE>&nbsp;void</CODE></FONT></TD>
255
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Polygon.html#rotate(float)">rotate</A></B>(float&nbsp;degrees)</CODE>
256
 
257
<BR>
258
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
259
</TR>
260
<TR BGCOLOR="white" CLASS="TableRowColor">
261
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
262
<CODE>&nbsp;void</CODE></FONT></TD>
263
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Polygon.html#scale(float)">scale</A></B>(float&nbsp;amount)</CODE>
264
 
265
<BR>
266
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
267
</TR>
268
<TR BGCOLOR="white" CLASS="TableRowColor">
269
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
270
<CODE>&nbsp;void</CODE></FONT></TD>
271
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Polygon.html#setOrigin(float, float)">setOrigin</A></B>(float&nbsp;originX,
272
          float&nbsp;originY)</CODE>
273
 
274
<BR>
275
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
276
</TR>
277
<TR BGCOLOR="white" CLASS="TableRowColor">
278
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
279
<CODE>&nbsp;void</CODE></FONT></TD>
280
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Polygon.html#setPosition(float, float)">setPosition</A></B>(float&nbsp;x,
281
            float&nbsp;y)</CODE>
282
 
283
<BR>
284
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
285
</TR>
286
<TR BGCOLOR="white" CLASS="TableRowColor">
287
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
288
<CODE>&nbsp;void</CODE></FONT></TD>
289
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Polygon.html#setRotation(float)">setRotation</A></B>(float&nbsp;degrees)</CODE>
290
 
291
<BR>
292
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
293
</TR>
294
<TR BGCOLOR="white" CLASS="TableRowColor">
295
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
296
<CODE>&nbsp;void</CODE></FONT></TD>
297
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Polygon.html#setScale(float, float)">setScale</A></B>(float&nbsp;scaleX,
298
         float&nbsp;scaleY)</CODE>
299
 
300
<BR>
301
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
302
</TR>
303
<TR BGCOLOR="white" CLASS="TableRowColor">
304
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
305
<CODE>&nbsp;void</CODE></FONT></TD>
306
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Polygon.html#translate(float, float)">translate</A></B>(float&nbsp;x,
307
          float&nbsp;y)</CODE>
308
 
309
<BR>
310
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
311
</TR>
312
</TABLE>
313
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
314
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
315
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
316
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
317
</TR>
318
<TR BGCOLOR="white" CLASS="TableRowColor">
319
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
320
</TR>
321
</TABLE>
322
&nbsp;
323
<P>
324
 
325
<!-- ========= CONSTRUCTOR DETAIL ======== -->
326
 
327
<A NAME="constructor_detail"><!-- --></A>
328
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
329
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
330
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
331
<B>Constructor Detail</B></FONT></TH>
332
</TR>
333
</TABLE>
334
 
335
<A NAME="Polygon(float[])"><!-- --></A><H3>
336
Polygon</H3>
337
<PRE>
338
public <B>Polygon</B>(float[]&nbsp;vertices)</PRE>
339
<DL>
340
</DL>
341
 
342
<!-- ============ METHOD DETAIL ========== -->
343
 
344
<A NAME="method_detail"><!-- --></A>
345
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
346
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
347
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
348
<B>Method Detail</B></FONT></TH>
349
</TR>
350
</TABLE>
351
 
352
<A NAME="getVertices()"><!-- --></A><H3>
353
getVertices</H3>
354
<PRE>
355
public float[] <B>getVertices</B>()</PRE>
356
<DL>
357
<DD>Returns vertices without scaling or rotation and without being offset by the polygon position.
358
<P>
359
<DD><DL>
360
</DL>
361
</DD>
362
</DL>
363
<HR>
364
 
365
<A NAME="getTransformedVertices()"><!-- --></A><H3>
366
getTransformedVertices</H3>
367
<PRE>
368
public float[] <B>getTransformedVertices</B>()</PRE>
369
<DL>
370
<DD>Returns vertices scaled, rotated, and offset by the polygon position.
371
<P>
372
<DD><DL>
373
</DL>
374
</DD>
375
</DL>
376
<HR>
377
 
378
<A NAME="setOrigin(float, float)"><!-- --></A><H3>
379
setOrigin</H3>
380
<PRE>
381
public void <B>setOrigin</B>(float&nbsp;originX,
382
                      float&nbsp;originY)</PRE>
383
<DL>
384
<DD><DL>
385
</DL>
386
</DD>
387
</DL>
388
<HR>
389
 
390
<A NAME="setPosition(float, float)"><!-- --></A><H3>
391
setPosition</H3>
392
<PRE>
393
public void <B>setPosition</B>(float&nbsp;x,
394
                        float&nbsp;y)</PRE>
395
<DL>
396
<DD><DL>
397
</DL>
398
</DD>
399
</DL>
400
<HR>
401
 
402
<A NAME="translate(float, float)"><!-- --></A><H3>
403
translate</H3>
404
<PRE>
405
public void <B>translate</B>(float&nbsp;x,
406
                      float&nbsp;y)</PRE>
407
<DL>
408
<DD><DL>
409
</DL>
410
</DD>
411
</DL>
412
<HR>
413
 
414
<A NAME="setRotation(float)"><!-- --></A><H3>
415
setRotation</H3>
416
<PRE>
417
public void <B>setRotation</B>(float&nbsp;degrees)</PRE>
418
<DL>
419
<DD><DL>
420
</DL>
421
</DD>
422
</DL>
423
<HR>
424
 
425
<A NAME="rotate(float)"><!-- --></A><H3>
426
rotate</H3>
427
<PRE>
428
public void <B>rotate</B>(float&nbsp;degrees)</PRE>
429
<DL>
430
<DD><DL>
431
</DL>
432
</DD>
433
</DL>
434
<HR>
435
 
436
<A NAME="setScale(float, float)"><!-- --></A><H3>
437
setScale</H3>
438
<PRE>
439
public void <B>setScale</B>(float&nbsp;scaleX,
440
                     float&nbsp;scaleY)</PRE>
441
<DL>
442
<DD><DL>
443
</DL>
444
</DD>
445
</DL>
446
<HR>
447
 
448
<A NAME="scale(float)"><!-- --></A><H3>
449
scale</H3>
450
<PRE>
451
public void <B>scale</B>(float&nbsp;amount)</PRE>
452
<DL>
453
<DD><DL>
454
</DL>
455
</DD>
456
</DL>
457
<HR>
458
 
459
<A NAME="dirty()"><!-- --></A><H3>
460
dirty</H3>
461
<PRE>
462
public void <B>dirty</B>()</PRE>
463
<DL>
464
<DD><DL>
465
</DL>
466
</DD>
467
</DL>
468
<HR>
469
 
470
<A NAME="area()"><!-- --></A><H3>
471
area</H3>
472
<PRE>
473
public float <B>area</B>()</PRE>
474
<DL>
475
<DD><DL>
476
</DL>
477
</DD>
478
</DL>
479
<HR>
480
 
481
<A NAME="getBoundingRectangle()"><!-- --></A><H3>
482
getBoundingRectangle</H3>
483
<PRE>
484
public <A HREF="../../../../com/badlogic/gdx/math/Rectangle.html" title="class in com.badlogic.gdx.math">Rectangle</A> <B>getBoundingRectangle</B>()</PRE>
485
<DL>
486
<DD><DL>
487
</DL>
488
</DD>
489
</DL>
490
<HR>
491
 
492
<A NAME="contains(float, float)"><!-- --></A><H3>
493
contains</H3>
494
<PRE>
495
public boolean <B>contains</B>(float&nbsp;x,
496
                        float&nbsp;y)</PRE>
497
<DL>
498
<DD><DL>
499
</DL>
500
</DD>
501
</DL>
502
<HR>
503
 
504
<A NAME="getX()"><!-- --></A><H3>
505
getX</H3>
506
<PRE>
507
public float <B>getX</B>()</PRE>
508
<DL>
509
<DD><DL>
510
</DL>
511
</DD>
512
</DL>
513
<HR>
514
 
515
<A NAME="getY()"><!-- --></A><H3>
516
getY</H3>
517
<PRE>
518
public float <B>getY</B>()</PRE>
519
<DL>
520
<DD><DL>
521
</DL>
522
</DD>
523
</DL>
524
<HR>
525
 
526
<A NAME="getOriginX()"><!-- --></A><H3>
527
getOriginX</H3>
528
<PRE>
529
public float <B>getOriginX</B>()</PRE>
530
<DL>
531
<DD><DL>
532
</DL>
533
</DD>
534
</DL>
535
<HR>
536
 
537
<A NAME="getOriginY()"><!-- --></A><H3>
538
getOriginY</H3>
539
<PRE>
540
public float <B>getOriginY</B>()</PRE>
541
<DL>
542
<DD><DL>
543
</DL>
544
</DD>
545
</DL>
546
<HR>
547
 
548
<A NAME="getRotation()"><!-- --></A><H3>
549
getRotation</H3>
550
<PRE>
551
public float <B>getRotation</B>()</PRE>
552
<DL>
553
<DD><DL>
554
</DL>
555
</DD>
556
</DL>
557
<HR>
558
 
559
<A NAME="getScaleX()"><!-- --></A><H3>
560
getScaleX</H3>
561
<PRE>
562
public float <B>getScaleX</B>()</PRE>
563
<DL>
564
<DD><DL>
565
</DL>
566
</DD>
567
</DL>
568
<HR>
569
 
570
<A NAME="getScaleY()"><!-- --></A><H3>
571
getScaleY</H3>
572
<PRE>
573
public float <B>getScaleY</B>()</PRE>
574
<DL>
575
<DD><DL>
576
</DL>
577
</DD>
578
</DL>
579
<!-- ========= END OF CLASS DATA ========= -->
580
<HR>
581
 
582
 
583
<!-- ======= START OF BOTTOM NAVBAR ====== -->
584
<A NAME="navbar_bottom"><!-- --></A>
585
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
586
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
587
<TR>
588
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
589
<A NAME="navbar_bottom_firstrow"><!-- --></A>
590
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
591
  <TR ALIGN="center" VALIGN="top">
592
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
593
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
594
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
595
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Polygon.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
596
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
597
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
598
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
599
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
600
  </TR>
601
</TABLE>
602
</TD>
603
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
604
libgdx API</EM>
605
</TD>
606
</TR>
607
 
608
<TR>
609
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
610
&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Plane.PlaneSide.html" title="enum in com.badlogic.gdx.math"><B>PREV CLASS</B></A>&nbsp;
611
&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math"><B>NEXT CLASS</B></A></FONT></TD>
612
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
613
  <A HREF="../../../../index.html?com/badlogic/gdx/math/Polygon.html" target="_top"><B>FRAMES</B></A>  &nbsp;
614
&nbsp;<A HREF="Polygon.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
615
&nbsp;<SCRIPT type="text/javascript">
616
  <!--
617
  if(window==top) {
618
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
619
  }
620
  //-->
621
</SCRIPT>
622
<NOSCRIPT>
623
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
624
</NOSCRIPT>
625
 
626
 
627
</FONT></TD>
628
</TR>
629
<TR>
630
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
631
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
632
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
633
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
634
</TR>
635
</TABLE>
636
<A NAME="skip-navbar_bottom"></A>
637
<!-- ======== END OF BOTTOM NAVBAR ======= -->
638
 
639
<HR>
640
 
641
                                <div style="font-size:9pt"><i>
642
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
643
                                </i></div>
644
 
645
</BODY>
646
</HTML>