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
WorldManifold (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="WorldManifold (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/WorldManifold.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/World.html" title="class in com.badlogic.gdx.physics.box2d"><B>PREV CLASS</B></A>&nbsp;
74
&nbsp;NEXT CLASS</FONT></TD>
75
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
76
  <A HREF="../../../../../index.html?com/badlogic/gdx/physics/box2d/WorldManifold.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="WorldManifold.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 WorldManifold</H2>
109
<PRE>
110
java.lang.Object
111
  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.physics.box2d.WorldManifold</B>
112
</PRE>
113
<HR>
114
<DL>
115
<DT><PRE>public class <B>WorldManifold</B><DT>extends java.lang.Object</DL>
116
</PRE>
117
 
118
<P>
119
This is used to compute the current state of a contact manifold.
120
<P>
121
 
122
<P>
123
<HR>
124
 
125
<P>
126
<!-- =========== FIELD SUMMARY =========== -->
127
 
128
<A NAME="field_summary"><!-- --></A>
129
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
130
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
131
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
132
<B>Field Summary</B></FONT></TH>
133
</TR>
134
<TR BGCOLOR="white" CLASS="TableRowColor">
135
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
136
<CODE>protected &nbsp;<A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD>
137
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/WorldManifold.html#normal">normal</A></B></CODE>
138
 
139
<BR>
140
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
141
</TR>
142
<TR BGCOLOR="white" CLASS="TableRowColor">
143
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
144
<CODE>protected &nbsp;int</CODE></FONT></TD>
145
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/WorldManifold.html#numContactPoints">numContactPoints</A></B></CODE>
146
 
147
<BR>
148
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
149
</TR>
150
<TR BGCOLOR="white" CLASS="TableRowColor">
151
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
152
<CODE>protected &nbsp;<A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>[]</CODE></FONT></TD>
153
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/WorldManifold.html#points">points</A></B></CODE>
154
 
155
<BR>
156
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
157
</TR>
158
</TABLE>
159
&nbsp;
160
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
161
 
162
<A NAME="constructor_summary"><!-- --></A>
163
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
164
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
165
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
166
<B>Constructor Summary</B></FONT></TH>
167
</TR>
168
<TR BGCOLOR="white" CLASS="TableRowColor">
169
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
170
<CODE>protected </CODE></FONT></TD>
171
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/WorldManifold.html#WorldManifold()">WorldManifold</A></B>()</CODE>
172
 
173
<BR>
174
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
175
</TR>
176
</TABLE>
177
&nbsp;
178
<!-- ========== METHOD SUMMARY =========== -->
179
 
180
<A NAME="method_summary"><!-- --></A>
181
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
182
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
183
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
184
<B>Method Summary</B></FONT></TH>
185
</TR>
186
<TR BGCOLOR="white" CLASS="TableRowColor">
187
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
188
<CODE>&nbsp;<A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD>
189
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/WorldManifold.html#getNormal()">getNormal</A></B>()</CODE>
190
 
191
<BR>
192
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the normal of this manifold</TD>
193
</TR>
194
<TR BGCOLOR="white" CLASS="TableRowColor">
195
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
196
<CODE>&nbsp;int</CODE></FONT></TD>
197
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/WorldManifold.html#getNumberOfContactPoints()">getNumberOfContactPoints</A></B>()</CODE>
198
 
199
<BR>
200
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
201
</TR>
202
<TR BGCOLOR="white" CLASS="TableRowColor">
203
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
204
<CODE>&nbsp;<A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>[]</CODE></FONT></TD>
205
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/WorldManifold.html#getPoints()">getPoints</A></B>()</CODE>
206
 
207
<BR>
208
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the contact points of this manifold.</TD>
209
</TR>
210
</TABLE>
211
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
212
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
213
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
214
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
215
</TR>
216
<TR BGCOLOR="white" CLASS="TableRowColor">
217
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
218
</TR>
219
</TABLE>
220
&nbsp;
221
<P>
222
 
223
<!-- ============ FIELD DETAIL =========== -->
224
 
225
<A NAME="field_detail"><!-- --></A>
226
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
227
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
228
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
229
<B>Field Detail</B></FONT></TH>
230
</TR>
231
</TABLE>
232
 
233
<A NAME="normal"><!-- --></A><H3>
234
normal</H3>
235
<PRE>
236
protected final <A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>normal</B></PRE>
237
<DL>
238
<DL>
239
</DL>
240
</DL>
241
<HR>
242
 
243
<A NAME="points"><!-- --></A><H3>
244
points</H3>
245
<PRE>
246
protected final <A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>[] <B>points</B></PRE>
247
<DL>
248
<DL>
249
</DL>
250
</DL>
251
<HR>
252
 
253
<A NAME="numContactPoints"><!-- --></A><H3>
254
numContactPoints</H3>
255
<PRE>
256
protected int <B>numContactPoints</B></PRE>
257
<DL>
258
<DL>
259
</DL>
260
</DL>
261
 
262
<!-- ========= CONSTRUCTOR DETAIL ======== -->
263
 
264
<A NAME="constructor_detail"><!-- --></A>
265
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
266
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
267
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
268
<B>Constructor Detail</B></FONT></TH>
269
</TR>
270
</TABLE>
271
 
272
<A NAME="WorldManifold()"><!-- --></A><H3>
273
WorldManifold</H3>
274
<PRE>
275
protected <B>WorldManifold</B>()</PRE>
276
<DL>
277
</DL>
278
 
279
<!-- ============ METHOD DETAIL ========== -->
280
 
281
<A NAME="method_detail"><!-- --></A>
282
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
283
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
284
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
285
<B>Method Detail</B></FONT></TH>
286
</TR>
287
</TABLE>
288
 
289
<A NAME="getNormal()"><!-- --></A><H3>
290
getNormal</H3>
291
<PRE>
292
public <A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>getNormal</B>()</PRE>
293
<DL>
294
<DD>Returns the normal of this manifold
295
<P>
296
<DD><DL>
297
</DL>
298
</DD>
299
</DL>
300
<HR>
301
 
302
<A NAME="getPoints()"><!-- --></A><H3>
303
getPoints</H3>
304
<PRE>
305
public <A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>[] <B>getPoints</B>()</PRE>
306
<DL>
307
<DD>Returns the contact points of this manifold. Use getNumberOfContactPoints to determine how many contact points there are
308
 (0,1 or 2)
309
<P>
310
<DD><DL>
311
</DL>
312
</DD>
313
</DL>
314
<HR>
315
 
316
<A NAME="getNumberOfContactPoints()"><!-- --></A><H3>
317
getNumberOfContactPoints</H3>
318
<PRE>
319
public int <B>getNumberOfContactPoints</B>()</PRE>
320
<DL>
321
<DD><DL>
322
 
323
<DT><B>Returns:</B><DD>the number of contact points</DL>
324
</DD>
325
</DL>
326
<!-- ========= END OF CLASS DATA ========= -->
327
<HR>
328
 
329
 
330
<!-- ======= START OF BOTTOM NAVBAR ====== -->
331
<A NAME="navbar_bottom"><!-- --></A>
332
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
333
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
334
<TR>
335
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
336
<A NAME="navbar_bottom_firstrow"><!-- --></A>
337
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
338
  <TR ALIGN="center" VALIGN="top">
339
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
340
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
341
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
342
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/WorldManifold.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
343
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
344
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
345
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
346
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
347
  </TR>
348
</TABLE>
349
</TD>
350
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
351
libgdx API</EM>
352
</TD>
353
</TR>
354
 
355
<TR>
356
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
357
&nbsp;<A HREF="../../../../../com/badlogic/gdx/physics/box2d/World.html" title="class in com.badlogic.gdx.physics.box2d"><B>PREV CLASS</B></A>&nbsp;
358
&nbsp;NEXT CLASS</FONT></TD>
359
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
360
  <A HREF="../../../../../index.html?com/badlogic/gdx/physics/box2d/WorldManifold.html" target="_top"><B>FRAMES</B></A>  &nbsp;
361
&nbsp;<A HREF="WorldManifold.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
362
&nbsp;<SCRIPT type="text/javascript">
363
  <!--
364
  if(window==top) {
365
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
366
  }
367
  //-->
368
</SCRIPT>
369
<NOSCRIPT>
370
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
371
</NOSCRIPT>
372
 
373
 
374
</FONT></TD>
375
</TR>
376
<TR>
377
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
378
  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>
379
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
380
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>
381
</TR>
382
</TABLE>
383
<A NAME="skip-navbar_bottom"></A>
384
<!-- ======== END OF BOTTOM NAVBAR ======= -->
385
 
386
<HR>
387
 
388
                                <div style="font-size:9pt"><i>
389
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
390
                                </i></div>
391
 
392
</BODY>
393
</HTML>