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:06 CET 2013 -->
6
<TITLE>
7
Intersector (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="Intersector (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/Intersector.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/Interpolation.SwingOut.html" title="class in com.badlogic.gdx.math"><B>PREV CLASS</B></A>&nbsp;
74
&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Intersector.MinimumTranslationVector.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/Intersector.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="Intersector.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;<A HREF="#nested_class_summary">NESTED</A>&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 Intersector</H2>
109
<PRE>
110
java.lang.Object
111
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.math.Intersector</B>
112
</PRE>
113
<HR>
114
<DL>
115
<DT><PRE>public final class <B>Intersector</B><DT>extends java.lang.Object</DL>
116
</PRE>
117
 
118
<P>
119
Class offering various static methods for intersection testing between different geometric objects.
120
<P>
121
 
122
<P>
123
<DL>
124
<DT><B>Author:</B></DT>
125
  <DD>badlogicgames@gmail.com, jan.stria</DD>
126
</DL>
127
<HR>
128
 
129
<P>
130
<!-- ======== NESTED CLASS SUMMARY ======== -->
131
 
132
<A NAME="nested_class_summary"><!-- --></A>
133
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
134
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
135
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
136
<B>Nested Class Summary</B></FONT></TH>
137
</TR>
138
<TR BGCOLOR="white" CLASS="TableRowColor">
139
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
140
<CODE>static&nbsp;class</CODE></FONT></TD>
141
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.MinimumTranslationVector.html" title="class in com.badlogic.gdx.math">Intersector.MinimumTranslationVector</A></B></CODE>
142
 
143
<BR>
144
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
145
</TR>
146
<TR BGCOLOR="white" CLASS="TableRowColor">
147
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
148
<CODE>static&nbsp;class</CODE></FONT></TD>
149
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.SplitTriangle.html" title="class in com.badlogic.gdx.math">Intersector.SplitTriangle</A></B></CODE>
150
 
151
<BR>
152
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
153
</TR>
154
</TABLE>
155
&nbsp;
156
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
157
 
158
<A NAME="constructor_summary"><!-- --></A>
159
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
160
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
161
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
162
<B>Constructor Summary</B></FONT></TH>
163
</TR>
164
<TR BGCOLOR="white" CLASS="TableRowColor">
165
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#Intersector()">Intersector</A></B>()</CODE>
166
 
167
<BR>
168
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
169
</TR>
170
</TABLE>
171
&nbsp;
172
<!-- ========== METHOD SUMMARY =========== -->
173
 
174
<A NAME="method_summary"><!-- --></A>
175
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
176
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
177
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
178
<B>Method Summary</B></FONT></TH>
179
</TR>
180
<TR BGCOLOR="white" CLASS="TableRowColor">
181
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
182
<CODE>static&nbsp;float</CODE></FONT></TD>
183
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#distanceLinePoint(float, float, float, float, float, float)">distanceLinePoint</A></B>(float&nbsp;startX,
184
                  float&nbsp;startY,
185
                  float&nbsp;endX,
186
                  float&nbsp;endY,
187
                  float&nbsp;pointX,
188
                  float&nbsp;pointY)</CODE>
189
 
190
<BR>
191
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the distance between the given line and point.</TD>
192
</TR>
193
<TR BGCOLOR="white" CLASS="TableRowColor">
194
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
195
<CODE>static&nbsp;float</CODE></FONT></TD>
196
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#distanceLinePoint(com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2)">distanceLinePoint</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;start,
197
                  <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;end,
198
                  <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;point)</CODE>
199
 
200
<BR>
201
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the distance between the given line segment and point.</TD>
202
</TR>
203
<TR BGCOLOR="white" CLASS="TableRowColor">
204
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
205
<CODE>static&nbsp;float</CODE></FONT></TD>
206
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#getLowestPositiveRoot(float, float, float)">getLowestPositiveRoot</A></B>(float&nbsp;a,
207
                      float&nbsp;b,
208
                      float&nbsp;c)</CODE>
209
 
210
<BR>
211
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the lowest positive root of the quadric equation given by a* x * x + b * x + c = 0.</TD>
212
</TR>
213
<TR BGCOLOR="white" CLASS="TableRowColor">
214
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
215
<CODE>static&nbsp;float</CODE></FONT></TD>
216
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#intersectLinePlane(float, float, float, float, float, float, com.badlogic.gdx.math.Plane, com.badlogic.gdx.math.Vector3)">intersectLinePlane</A></B>(float&nbsp;x,
217
                   float&nbsp;y,
218
                   float&nbsp;z,
219
                   float&nbsp;x2,
220
                   float&nbsp;y2,
221
                   float&nbsp;z2,
222
                   <A HREF="../../../../com/badlogic/gdx/math/Plane.html" title="class in com.badlogic.gdx.math">Plane</A>&nbsp;plane,
223
                   <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;intersection)</CODE>
224
 
225
<BR>
226
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Intersects a line and a plane.</TD>
227
</TR>
228
<TR BGCOLOR="white" CLASS="TableRowColor">
229
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
230
<CODE>static&nbsp;boolean</CODE></FONT></TD>
231
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#intersectLines(com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2)">intersectLines</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;p1,
232
               <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;p2,
233
               <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;p3,
234
               <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;p4,
235
               <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;intersection)</CODE>
236
 
237
<BR>
238
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Intersects the two lines and returns the intersection point in intersection.</TD>
239
</TR>
240
<TR BGCOLOR="white" CLASS="TableRowColor">
241
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
242
<CODE>static&nbsp;boolean</CODE></FONT></TD>
243
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#intersectRayBoundsFast(com.badlogic.gdx.math.collision.Ray, com.badlogic.gdx.math.collision.BoundingBox)">intersectRayBoundsFast</A></B>(<A HREF="../../../../com/badlogic/gdx/math/collision/Ray.html" title="class in com.badlogic.gdx.math.collision">Ray</A>&nbsp;ray,
244
                       <A HREF="../../../../com/badlogic/gdx/math/collision/BoundingBox.html" title="class in com.badlogic.gdx.math.collision">BoundingBox</A>&nbsp;box)</CODE>
245
 
246
<BR>
247
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Quick check whether the given <A HREF="../../../../com/badlogic/gdx/math/collision/Ray.html" title="class in com.badlogic.gdx.math.collision"><CODE>Ray</CODE></A> and <A HREF="../../../../com/badlogic/gdx/math/collision/BoundingBox.html" title="class in com.badlogic.gdx.math.collision"><CODE>BoundingBox</CODE></A> intersect.</TD>
248
</TR>
249
<TR BGCOLOR="white" CLASS="TableRowColor">
250
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
251
<CODE>static&nbsp;boolean</CODE></FONT></TD>
252
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#intersectRayPlane(com.badlogic.gdx.math.collision.Ray, com.badlogic.gdx.math.Plane, com.badlogic.gdx.math.Vector3)">intersectRayPlane</A></B>(<A HREF="../../../../com/badlogic/gdx/math/collision/Ray.html" title="class in com.badlogic.gdx.math.collision">Ray</A>&nbsp;ray,
253
                  <A HREF="../../../../com/badlogic/gdx/math/Plane.html" title="class in com.badlogic.gdx.math">Plane</A>&nbsp;plane,
254
                  <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;intersection)</CODE>
255
 
256
<BR>
257
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Intersects a <A HREF="../../../../com/badlogic/gdx/math/collision/Ray.html" title="class in com.badlogic.gdx.math.collision"><CODE>Ray</CODE></A> and a <A HREF="../../../../com/badlogic/gdx/math/Plane.html" title="class in com.badlogic.gdx.math"><CODE>Plane</CODE></A>.</TD>
258
</TR>
259
<TR BGCOLOR="white" CLASS="TableRowColor">
260
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
261
<CODE>static&nbsp;boolean</CODE></FONT></TD>
262
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#intersectRaySphere(com.badlogic.gdx.math.collision.Ray, com.badlogic.gdx.math.Vector3, float, com.badlogic.gdx.math.Vector3)">intersectRaySphere</A></B>(<A HREF="../../../../com/badlogic/gdx/math/collision/Ray.html" title="class in com.badlogic.gdx.math.collision">Ray</A>&nbsp;ray,
263
                   <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;center,
264
                   float&nbsp;radius,
265
                   <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;intersection)</CODE>
266
 
267
<BR>
268
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Intersects a <A HREF="../../../../com/badlogic/gdx/math/collision/Ray.html" title="class in com.badlogic.gdx.math.collision"><CODE>Ray</CODE></A> and a sphere, returning the intersection point in intersection.</TD>
269
</TR>
270
<TR BGCOLOR="white" CLASS="TableRowColor">
271
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
272
<CODE>static&nbsp;boolean</CODE></FONT></TD>
273
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#intersectRayTriangle(com.badlogic.gdx.math.collision.Ray, com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3)">intersectRayTriangle</A></B>(<A HREF="../../../../com/badlogic/gdx/math/collision/Ray.html" title="class in com.badlogic.gdx.math.collision">Ray</A>&nbsp;ray,
274
                     <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;t1,
275
                     <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;t2,
276
                     <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;t3,
277
                     <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;intersection)</CODE>
278
 
279
<BR>
280
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Intersect a <A HREF="../../../../com/badlogic/gdx/math/collision/Ray.html" title="class in com.badlogic.gdx.math.collision"><CODE>Ray</CODE></A> and a triangle, returning the intersection point in intersection.</TD>
281
</TR>
282
<TR BGCOLOR="white" CLASS="TableRowColor">
283
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
284
<CODE>static&nbsp;boolean</CODE></FONT></TD>
285
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#intersectRayTriangles(com.badlogic.gdx.math.collision.Ray, float[], short[], int, com.badlogic.gdx.math.Vector3)">intersectRayTriangles</A></B>(<A HREF="../../../../com/badlogic/gdx/math/collision/Ray.html" title="class in com.badlogic.gdx.math.collision">Ray</A>&nbsp;ray,
286
                      float[]&nbsp;vertices,
287
                      short[]&nbsp;indices,
288
                      int&nbsp;vertexSize,
289
                      <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;intersection)</CODE>
290
 
291
<BR>
292
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Intersects the given ray with list of triangles.</TD>
293
</TR>
294
<TR BGCOLOR="white" CLASS="TableRowColor">
295
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
296
<CODE>static&nbsp;boolean</CODE></FONT></TD>
297
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#intersectRayTriangles(com.badlogic.gdx.math.collision.Ray, float[], com.badlogic.gdx.math.Vector3)">intersectRayTriangles</A></B>(<A HREF="../../../../com/badlogic/gdx/math/collision/Ray.html" title="class in com.badlogic.gdx.math.collision">Ray</A>&nbsp;ray,
298
                      float[]&nbsp;triangles,
299
                      <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;intersection)</CODE>
300
 
301
<BR>
302
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Intersects the given ray with list of triangles.</TD>
303
</TR>
304
<TR BGCOLOR="white" CLASS="TableRowColor">
305
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
306
<CODE>static&nbsp;boolean</CODE></FONT></TD>
307
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#intersectRayTriangles(com.badlogic.gdx.math.collision.Ray, java.util.List, com.badlogic.gdx.math.Vector3)">intersectRayTriangles</A></B>(<A HREF="../../../../com/badlogic/gdx/math/collision/Ray.html" title="class in com.badlogic.gdx.math.collision">Ray</A>&nbsp;ray,
308
                      java.util.List&lt;<A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&gt;&nbsp;triangles,
309
                      <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;intersection)</CODE>
310
 
311
<BR>
312
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Intersects the given ray with list of triangles.</TD>
313
</TR>
314
<TR BGCOLOR="white" CLASS="TableRowColor">
315
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
316
<CODE>static&nbsp;boolean</CODE></FONT></TD>
317
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#intersectRectangles(com.badlogic.gdx.math.Rectangle, com.badlogic.gdx.math.Rectangle)">intersectRectangles</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Rectangle.html" title="class in com.badlogic.gdx.math">Rectangle</A>&nbsp;a,
318
                    <A HREF="../../../../com/badlogic/gdx/math/Rectangle.html" title="class in com.badlogic.gdx.math">Rectangle</A>&nbsp;b)</CODE>
319
 
320
<BR>
321
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns whether the two rectangles intersect</TD>
322
</TR>
323
<TR BGCOLOR="white" CLASS="TableRowColor">
324
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
325
<CODE>static&nbsp;boolean</CODE></FONT></TD>
326
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#intersectSegmentCircle(com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, float)">intersectSegmentCircle</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;start,
327
                       <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;end,
328
                       <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;center,
329
                       float&nbsp;squareRadius)</CODE>
330
 
331
<BR>
332
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns whether the given line segment intersects the given circle.</TD>
333
</TR>
334
<TR BGCOLOR="white" CLASS="TableRowColor">
335
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
336
<CODE>static&nbsp;float</CODE></FONT></TD>
337
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#intersectSegmentCircleDisplace(com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, float, com.badlogic.gdx.math.Vector2)">intersectSegmentCircleDisplace</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;start,
338
                               <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;end,
339
                               <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;point,
340
                               float&nbsp;radius,
341
                               <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;displacement)</CODE>
342
 
343
<BR>
344
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether the line segment and the circle intersect and returns by how much and in what direction the line has to move
345
 away from the circle to not intersect.</TD>
346
</TR>
347
<TR BGCOLOR="white" CLASS="TableRowColor">
348
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
349
<CODE>static&nbsp;boolean</CODE></FONT></TD>
350
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#intersectSegmentPlane(com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Plane, com.badlogic.gdx.math.Vector3)">intersectSegmentPlane</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;start,
351
                      <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;end,
352
                      <A HREF="../../../../com/badlogic/gdx/math/Plane.html" title="class in com.badlogic.gdx.math">Plane</A>&nbsp;plane,
353
                      <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;intersection)</CODE>
354
 
355
<BR>
356
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
357
</TR>
358
<TR BGCOLOR="white" CLASS="TableRowColor">
359
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
360
<CODE>static&nbsp;boolean</CODE></FONT></TD>
361
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#intersectSegments(com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2)">intersectSegments</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;p1,
362
                  <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;p2,
363
                  <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;p3,
364
                  <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;p4,
365
                  <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;intersection)</CODE>
366
 
367
<BR>
368
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Intersects the two line segments and returns the intersection point in intersection.</TD>
369
</TR>
370
<TR BGCOLOR="white" CLASS="TableRowColor">
371
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
372
<CODE>static&nbsp;boolean</CODE></FONT></TD>
373
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#isPointInPolygon(java.util.List, com.badlogic.gdx.math.Vector2)">isPointInPolygon</A></B>(java.util.List&lt;<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&gt;&nbsp;polygon,
374
                 <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;point)</CODE>
375
 
376
<BR>
377
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether the given point is in the polygon.</TD>
378
</TR>
379
<TR BGCOLOR="white" CLASS="TableRowColor">
380
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
381
<CODE>static&nbsp;boolean</CODE></FONT></TD>
382
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#isPointInTriangle(com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3)">isPointInTriangle</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;point,
383
                  <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;t1,
384
                  <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;t2,
385
                  <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;t3)</CODE>
386
 
387
<BR>
388
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns whether the given point is inside the triangle.</TD>
389
</TR>
390
<TR BGCOLOR="white" CLASS="TableRowColor">
391
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
392
<CODE>static&nbsp;void</CODE></FONT></TD>
393
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#main(java.lang.String[])">main</A></B>(java.lang.String[]&nbsp;args)</CODE>
394
 
395
<BR>
396
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
397
</TR>
398
<TR BGCOLOR="white" CLASS="TableRowColor">
399
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
400
<CODE>static&nbsp;boolean</CODE></FONT></TD>
401
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#overlapCircleRectangle(com.badlogic.gdx.math.Circle, com.badlogic.gdx.math.Rectangle)">overlapCircleRectangle</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Circle.html" title="class in com.badlogic.gdx.math">Circle</A>&nbsp;c,
402
                       <A HREF="../../../../com/badlogic/gdx/math/Rectangle.html" title="class in com.badlogic.gdx.math">Rectangle</A>&nbsp;r)</CODE>
403
 
404
<BR>
405
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
406
</TR>
407
<TR BGCOLOR="white" CLASS="TableRowColor">
408
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
409
<CODE>static&nbsp;boolean</CODE></FONT></TD>
410
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#overlapCircles(com.badlogic.gdx.math.Circle, com.badlogic.gdx.math.Circle)">overlapCircles</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Circle.html" title="class in com.badlogic.gdx.math">Circle</A>&nbsp;c1,
411
               <A HREF="../../../../com/badlogic/gdx/math/Circle.html" title="class in com.badlogic.gdx.math">Circle</A>&nbsp;c2)</CODE>
412
 
413
<BR>
414
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
415
</TR>
416
<TR BGCOLOR="white" CLASS="TableRowColor">
417
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
418
<CODE>static&nbsp;boolean</CODE></FONT></TD>
419
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#overlapConvexPolygons(float[], float[], com.badlogic.gdx.math.Intersector.MinimumTranslationVector)">overlapConvexPolygons</A></B>(float[]&nbsp;verts1,
420
                      float[]&nbsp;verts2,
421
                      <A HREF="../../../../com/badlogic/gdx/math/Intersector.MinimumTranslationVector.html" title="class in com.badlogic.gdx.math">Intersector.MinimumTranslationVector</A>&nbsp;mtv)</CODE>
422
 
423
<BR>
424
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check whether polygons defined by the given vertex arrays overlap.</TD>
425
</TR>
426
<TR BGCOLOR="white" CLASS="TableRowColor">
427
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
428
<CODE>static&nbsp;boolean</CODE></FONT></TD>
429
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#overlapConvexPolygons(com.badlogic.gdx.math.Polygon, com.badlogic.gdx.math.Polygon)">overlapConvexPolygons</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Polygon.html" title="class in com.badlogic.gdx.math">Polygon</A>&nbsp;p1,
430
                      <A HREF="../../../../com/badlogic/gdx/math/Polygon.html" title="class in com.badlogic.gdx.math">Polygon</A>&nbsp;p2)</CODE>
431
 
432
<BR>
433
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check whether specified convex polygons overlap.</TD>
434
</TR>
435
<TR BGCOLOR="white" CLASS="TableRowColor">
436
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
437
<CODE>static&nbsp;boolean</CODE></FONT></TD>
438
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#overlapConvexPolygons(com.badlogic.gdx.math.Polygon, com.badlogic.gdx.math.Polygon, com.badlogic.gdx.math.Intersector.MinimumTranslationVector)">overlapConvexPolygons</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Polygon.html" title="class in com.badlogic.gdx.math">Polygon</A>&nbsp;p1,
439
                      <A HREF="../../../../com/badlogic/gdx/math/Polygon.html" title="class in com.badlogic.gdx.math">Polygon</A>&nbsp;p2,
440
                      <A HREF="../../../../com/badlogic/gdx/math/Intersector.MinimumTranslationVector.html" title="class in com.badlogic.gdx.math">Intersector.MinimumTranslationVector</A>&nbsp;mtv)</CODE>
441
 
442
<BR>
443
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check whether specified convex polygons overlap.</TD>
444
</TR>
445
<TR BGCOLOR="white" CLASS="TableRowColor">
446
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
447
<CODE>static&nbsp;boolean</CODE></FONT></TD>
448
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#overlapRectangles(com.badlogic.gdx.math.Rectangle, com.badlogic.gdx.math.Rectangle)">overlapRectangles</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Rectangle.html" title="class in com.badlogic.gdx.math">Rectangle</A>&nbsp;r1,
449
                  <A HREF="../../../../com/badlogic/gdx/math/Rectangle.html" title="class in com.badlogic.gdx.math">Rectangle</A>&nbsp;r2)</CODE>
450
 
451
<BR>
452
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
453
</TR>
454
<TR BGCOLOR="white" CLASS="TableRowColor">
455
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
456
<CODE>static&nbsp;int</CODE></FONT></TD>
457
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#pointLineSide(float, float, float, float, float, float)">pointLineSide</A></B>(float&nbsp;linePoint1X,
458
              float&nbsp;linePoint1Y,
459
              float&nbsp;linePoint2X,
460
              float&nbsp;linePoint2Y,
461
              float&nbsp;pointX,
462
              float&nbsp;pointY)</CODE>
463
 
464
<BR>
465
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
466
</TR>
467
<TR BGCOLOR="white" CLASS="TableRowColor">
468
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
469
<CODE>static&nbsp;int</CODE></FONT></TD>
470
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#pointLineSide(com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2)">pointLineSide</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;linePoint1,
471
              <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;linePoint2,
472
              <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;point)</CODE>
473
 
474
<BR>
475
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines on which side of the given line the point is.</TD>
476
</TR>
477
<TR BGCOLOR="white" CLASS="TableRowColor">
478
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
479
<CODE>static&nbsp;void</CODE></FONT></TD>
480
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html#splitTriangle(float[], com.badlogic.gdx.math.Plane, com.badlogic.gdx.math.Intersector.SplitTriangle)">splitTriangle</A></B>(float[]&nbsp;triangle,
481
              <A HREF="../../../../com/badlogic/gdx/math/Plane.html" title="class in com.badlogic.gdx.math">Plane</A>&nbsp;plane,
482
              <A HREF="../../../../com/badlogic/gdx/math/Intersector.SplitTriangle.html" title="class in com.badlogic.gdx.math">Intersector.SplitTriangle</A>&nbsp;split)</CODE>
483
 
484
<BR>
485
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Splits the triangle by the plane.</TD>
486
</TR>
487
</TABLE>
488
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
489
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
490
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
491
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
492
</TR>
493
<TR BGCOLOR="white" CLASS="TableRowColor">
494
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
495
</TR>
496
</TABLE>
497
&nbsp;
498
<P>
499
 
500
<!-- ========= CONSTRUCTOR DETAIL ======== -->
501
 
502
<A NAME="constructor_detail"><!-- --></A>
503
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
504
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
505
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
506
<B>Constructor Detail</B></FONT></TH>
507
</TR>
508
</TABLE>
509
 
510
<A NAME="Intersector()"><!-- --></A><H3>
511
Intersector</H3>
512
<PRE>
513
public <B>Intersector</B>()</PRE>
514
<DL>
515
</DL>
516
 
517
<!-- ============ METHOD DETAIL ========== -->
518
 
519
<A NAME="method_detail"><!-- --></A>
520
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
521
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
522
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
523
<B>Method Detail</B></FONT></TH>
524
</TR>
525
</TABLE>
526
 
527
<A NAME="getLowestPositiveRoot(float, float, float)"><!-- --></A><H3>
528
getLowestPositiveRoot</H3>
529
<PRE>
530
public static float <B>getLowestPositiveRoot</B>(float&nbsp;a,
531
                                          float&nbsp;b,
532
                                          float&nbsp;c)</PRE>
533
<DL>
534
<DD>Returns the lowest positive root of the quadric equation given by a* x * x + b * x + c = 0. If no solution is given
535
 Float.Nan is returned.
536
<P>
537
<DD><DL>
538
<DT><B>Parameters:</B><DD><CODE>a</CODE> - the first coefficient of the quadric equation<DD><CODE>b</CODE> - the second coefficient of the quadric equation<DD><CODE>c</CODE> - the third coefficient of the quadric equation
539
<DT><B>Returns:</B><DD>the lowest positive root or Float.Nan</DL>
540
</DD>
541
</DL>
542
<HR>
543
 
544
<A NAME="isPointInTriangle(com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3)"><!-- --></A><H3>
545
isPointInTriangle</H3>
546
<PRE>
547
public static boolean <B>isPointInTriangle</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;point,
548
                                        <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;t1,
549
                                        <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;t2,
550
                                        <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;t3)</PRE>
551
<DL>
552
<DD>Returns whether the given point is inside the triangle. This assumes that the point is on the plane of the triangle. No
553
 check is performed that this is the case.
554
<P>
555
<DD><DL>
556
<DT><B>Parameters:</B><DD><CODE>point</CODE> - the point<DD><CODE>t1</CODE> - the first vertex of the triangle<DD><CODE>t2</CODE> - the second vertex of the triangle<DD><CODE>t3</CODE> - the third vertex of the triangle
557
<DT><B>Returns:</B><DD>whether the point is in the triangle</DL>
558
</DD>
559
</DL>
560
<HR>
561
 
562
<A NAME="intersectSegmentPlane(com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Plane, com.badlogic.gdx.math.Vector3)"><!-- --></A><H3>
563
intersectSegmentPlane</H3>
564
<PRE>
565
public static boolean <B>intersectSegmentPlane</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;start,
566
                                            <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;end,
567
                                            <A HREF="../../../../com/badlogic/gdx/math/Plane.html" title="class in com.badlogic.gdx.math">Plane</A>&nbsp;plane,
568
                                            <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;intersection)</PRE>
569
<DL>
570
<DD><DL>
571
</DL>
572
</DD>
573
</DL>
574
<HR>
575
 
576
<A NAME="pointLineSide(com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2)"><!-- --></A><H3>
577
pointLineSide</H3>
578
<PRE>
579
public static int <B>pointLineSide</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;linePoint1,
580
                                <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;linePoint2,
581
                                <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;point)</PRE>
582
<DL>
583
<DD>Determines on which side of the given line the point is. Returns -1 if the point is on the left side of the line, 0 if the
584
 point is on the line and 1 if the point is on the right side of the line. Left and right are relative to the lines direction
585
 which is linePoint1 to linePoint2.
586
<P>
587
<DD><DL>
588
</DL>
589
</DD>
590
</DL>
591
<HR>
592
 
593
<A NAME="pointLineSide(float, float, float, float, float, float)"><!-- --></A><H3>
594
pointLineSide</H3>
595
<PRE>
596
public static int <B>pointLineSide</B>(float&nbsp;linePoint1X,
597
                                float&nbsp;linePoint1Y,
598
                                float&nbsp;linePoint2X,
599
                                float&nbsp;linePoint2Y,
600
                                float&nbsp;pointX,
601
                                float&nbsp;pointY)</PRE>
602
<DL>
603
<DD><DL>
604
</DL>
605
</DD>
606
</DL>
607
<HR>
608
 
609
<A NAME="isPointInPolygon(java.util.List, com.badlogic.gdx.math.Vector2)"><!-- --></A><H3>
610
isPointInPolygon</H3>
611
<PRE>
612
public static boolean <B>isPointInPolygon</B>(java.util.List&lt;<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&gt;&nbsp;polygon,
613
                                       <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;point)</PRE>
614
<DL>
615
<DD>Checks whether the given point is in the polygon.
616
<P>
617
<DD><DL>
618
<DT><B>Parameters:</B><DD><CODE>polygon</CODE> - The polygon vertices<DD><CODE>point</CODE> - The point
619
<DT><B>Returns:</B><DD>true if the point is in the polygon</DL>
620
</DD>
621
</DL>
622
<HR>
623
 
624
<A NAME="distanceLinePoint(com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2)"><!-- --></A><H3>
625
distanceLinePoint</H3>
626
<PRE>
627
public static float <B>distanceLinePoint</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;start,
628
                                      <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;end,
629
                                      <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;point)</PRE>
630
<DL>
631
<DD>Returns the distance between the given line segment and point.
632
<P>
633
<DD><DL>
634
<DT><B>Parameters:</B><DD><CODE>start</CODE> - The line start point<DD><CODE>end</CODE> - The line end point<DD><CODE>point</CODE> - The point
635
<DT><B>Returns:</B><DD>The distance between the line segment and the point.</DL>
636
</DD>
637
</DL>
638
<HR>
639
 
640
<A NAME="distanceLinePoint(float, float, float, float, float, float)"><!-- --></A><H3>
641
distanceLinePoint</H3>
642
<PRE>
643
public static float <B>distanceLinePoint</B>(float&nbsp;startX,
644
                                      float&nbsp;startY,
645
                                      float&nbsp;endX,
646
                                      float&nbsp;endY,
647
                                      float&nbsp;pointX,
648
                                      float&nbsp;pointY)</PRE>
649
<DL>
650
<DD>Returns the distance between the given line and point. Note the specified line is not a line segment.
651
<P>
652
<DD><DL>
653
</DL>
654
</DD>
655
</DL>
656
<HR>
657
 
658
<A NAME="intersectSegmentCircle(com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, float)"><!-- --></A><H3>
659
intersectSegmentCircle</H3>
660
<PRE>
661
public static boolean <B>intersectSegmentCircle</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;start,
662
                                             <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;end,
663
                                             <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;center,
664
                                             float&nbsp;squareRadius)</PRE>
665
<DL>
666
<DD>Returns whether the given line segment intersects the given circle.
667
<P>
668
<DD><DL>
669
<DT><B>Parameters:</B><DD><CODE>start</CODE> - The start point of the line segment<DD><CODE>end</CODE> - The end point of the line segment<DD><CODE>center</CODE> - The center of the circle<DD><CODE>squareRadius</CODE> - The squared radius of the circle
670
<DT><B>Returns:</B><DD>Whether the line segment and the circle intersect</DL>
671
</DD>
672
</DL>
673
<HR>
674
 
675
<A NAME="intersectSegmentCircleDisplace(com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, float, com.badlogic.gdx.math.Vector2)"><!-- --></A><H3>
676
intersectSegmentCircleDisplace</H3>
677
<PRE>
678
public static float <B>intersectSegmentCircleDisplace</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;start,
679
                                                   <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;end,
680
                                                   <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;point,
681
                                                   float&nbsp;radius,
682
                                                   <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;displacement)</PRE>
683
<DL>
684
<DD>Checks whether the line segment and the circle intersect and returns by how much and in what direction the line has to move
685
 away from the circle to not intersect.
686
<P>
687
<DD><DL>
688
<DT><B>Parameters:</B><DD><CODE>start</CODE> - The line segment starting point<DD><CODE>end</CODE> - The line segment end point<DD><CODE>point</CODE> - The center of the circle<DD><CODE>radius</CODE> - The radius of the circle<DD><CODE>displacement</CODE> - The displacement vector set by the method having unit length
689
<DT><B>Returns:</B><DD>The displacement or Float.POSITIVE_INFINITY if no intersection is present</DL>
690
</DD>
691
</DL>
692
<HR>
693
 
694
<A NAME="intersectRayPlane(com.badlogic.gdx.math.collision.Ray, com.badlogic.gdx.math.Plane, com.badlogic.gdx.math.Vector3)"><!-- --></A><H3>
695
intersectRayPlane</H3>
696
<PRE>
697
public static boolean <B>intersectRayPlane</B>(<A HREF="../../../../com/badlogic/gdx/math/collision/Ray.html" title="class in com.badlogic.gdx.math.collision">Ray</A>&nbsp;ray,
698
                                        <A HREF="../../../../com/badlogic/gdx/math/Plane.html" title="class in com.badlogic.gdx.math">Plane</A>&nbsp;plane,
699
                                        <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;intersection)</PRE>
700
<DL>
701
<DD>Intersects a <A HREF="../../../../com/badlogic/gdx/math/collision/Ray.html" title="class in com.badlogic.gdx.math.collision"><CODE>Ray</CODE></A> and a <A HREF="../../../../com/badlogic/gdx/math/Plane.html" title="class in com.badlogic.gdx.math"><CODE>Plane</CODE></A>. The intersection point is stored in intersection in case an intersection is
702
 present.
703
<P>
704
<DD><DL>
705
<DT><B>Parameters:</B><DD><CODE>ray</CODE> - The ray<DD><CODE>plane</CODE> - The plane<DD><CODE>intersection</CODE> - The vector the intersection point is written to (optional)
706
<DT><B>Returns:</B><DD>Whether an intersection is present.</DL>
707
</DD>
708
</DL>
709
<HR>
710
 
711
<A NAME="intersectLinePlane(float, float, float, float, float, float, com.badlogic.gdx.math.Plane, com.badlogic.gdx.math.Vector3)"><!-- --></A><H3>
712
intersectLinePlane</H3>
713
<PRE>
714
public static float <B>intersectLinePlane</B>(float&nbsp;x,
715
                                       float&nbsp;y,
716
                                       float&nbsp;z,
717
                                       float&nbsp;x2,
718
                                       float&nbsp;y2,
719
                                       float&nbsp;z2,
720
                                       <A HREF="../../../../com/badlogic/gdx/math/Plane.html" title="class in com.badlogic.gdx.math">Plane</A>&nbsp;plane,
721
                                       <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;intersection)</PRE>
722
<DL>
723
<DD>Intersects a line and a plane. The intersection is returned as the distance from the first point to the plane. In case an
724
 intersection happened, the return value is in the range [0,1]. The intersection point can be recovered by point1 + t *
725
 (point2 - point1) where t is the return value of this method.
726
<P>
727
<DD><DL>
728
<DT><B>Parameters:</B><DD><CODE>x</CODE> - <DD><CODE>y</CODE> - <DD><CODE>z</CODE> - <DD><CODE>x2</CODE> - <DD><CODE>y2</CODE> - <DD><CODE>z2</CODE> - <DD><CODE>plane</CODE> - </DL>
729
</DD>
730
</DL>
731
<HR>
732
 
733
<A NAME="intersectRayTriangle(com.badlogic.gdx.math.collision.Ray, com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3)"><!-- --></A><H3>
734
intersectRayTriangle</H3>
735
<PRE>
736
public static boolean <B>intersectRayTriangle</B>(<A HREF="../../../../com/badlogic/gdx/math/collision/Ray.html" title="class in com.badlogic.gdx.math.collision">Ray</A>&nbsp;ray,
737
                                           <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;t1,
738
                                           <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;t2,
739
                                           <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;t3,
740
                                           <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;intersection)</PRE>
741
<DL>
742
<DD>Intersect a <A HREF="../../../../com/badlogic/gdx/math/collision/Ray.html" title="class in com.badlogic.gdx.math.collision"><CODE>Ray</CODE></A> and a triangle, returning the intersection point in intersection.
743
<P>
744
<DD><DL>
745
<DT><B>Parameters:</B><DD><CODE>ray</CODE> - The ray<DD><CODE>t1</CODE> - The first vertex of the triangle<DD><CODE>t2</CODE> - The second vertex of the triangle<DD><CODE>t3</CODE> - The third vertex of the triangle<DD><CODE>intersection</CODE> - The intersection point (optional)
746
<DT><B>Returns:</B><DD>True in case an intersection is present.</DL>
747
</DD>
748
</DL>
749
<HR>
750
 
751
<A NAME="intersectRaySphere(com.badlogic.gdx.math.collision.Ray, com.badlogic.gdx.math.Vector3, float, com.badlogic.gdx.math.Vector3)"><!-- --></A><H3>
752
intersectRaySphere</H3>
753
<PRE>
754
public static boolean <B>intersectRaySphere</B>(<A HREF="../../../../com/badlogic/gdx/math/collision/Ray.html" title="class in com.badlogic.gdx.math.collision">Ray</A>&nbsp;ray,
755
                                         <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;center,
756
                                         float&nbsp;radius,
757
                                         <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;intersection)</PRE>
758
<DL>
759
<DD>Intersects a <A HREF="../../../../com/badlogic/gdx/math/collision/Ray.html" title="class in com.badlogic.gdx.math.collision"><CODE>Ray</CODE></A> and a sphere, returning the intersection point in intersection.
760
<P>
761
<DD><DL>
762
<DT><B>Parameters:</B><DD><CODE>ray</CODE> - The ray<DD><CODE>center</CODE> - The center of the sphere<DD><CODE>radius</CODE> - The radius of the sphere<DD><CODE>intersection</CODE> - The intersection point (optional)
763
<DT><B>Returns:</B><DD>Whether an intersection is present.</DL>
764
</DD>
765
</DL>
766
<HR>
767
 
768
<A NAME="intersectRayBoundsFast(com.badlogic.gdx.math.collision.Ray, com.badlogic.gdx.math.collision.BoundingBox)"><!-- --></A><H3>
769
intersectRayBoundsFast</H3>
770
<PRE>
771
public static boolean <B>intersectRayBoundsFast</B>(<A HREF="../../../../com/badlogic/gdx/math/collision/Ray.html" title="class in com.badlogic.gdx.math.collision">Ray</A>&nbsp;ray,
772
                                             <A HREF="../../../../com/badlogic/gdx/math/collision/BoundingBox.html" title="class in com.badlogic.gdx.math.collision">BoundingBox</A>&nbsp;box)</PRE>
773
<DL>
774
<DD>Quick check whether the given <A HREF="../../../../com/badlogic/gdx/math/collision/Ray.html" title="class in com.badlogic.gdx.math.collision"><CODE>Ray</CODE></A> and <A HREF="../../../../com/badlogic/gdx/math/collision/BoundingBox.html" title="class in com.badlogic.gdx.math.collision"><CODE>BoundingBox</CODE></A> intersect.
775
<P>
776
<DD><DL>
777
<DT><B>Parameters:</B><DD><CODE>ray</CODE> - The ray<DD><CODE>box</CODE> - The bounding box
778
<DT><B>Returns:</B><DD>Whether the ray and the bounding box intersect.</DL>
779
</DD>
780
</DL>
781
<HR>
782
 
783
<A NAME="intersectRayTriangles(com.badlogic.gdx.math.collision.Ray, float[], com.badlogic.gdx.math.Vector3)"><!-- --></A><H3>
784
intersectRayTriangles</H3>
785
<PRE>
786
public static boolean <B>intersectRayTriangles</B>(<A HREF="../../../../com/badlogic/gdx/math/collision/Ray.html" title="class in com.badlogic.gdx.math.collision">Ray</A>&nbsp;ray,
787
                                            float[]&nbsp;triangles,
788
                                            <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;intersection)</PRE>
789
<DL>
790
<DD>Intersects the given ray with list of triangles. Returns the nearest intersection point in intersection
791
<P>
792
<DD><DL>
793
<DT><B>Parameters:</B><DD><CODE>ray</CODE> - The ray<DD><CODE>triangles</CODE> - The triangles, each successive 3 elements from a vertex<DD><CODE>intersection</CODE> - The nearest intersection point (optional)
794
<DT><B>Returns:</B><DD>Whether the ray and the triangles intersect.</DL>
795
</DD>
796
</DL>
797
<HR>
798
 
799
<A NAME="intersectRayTriangles(com.badlogic.gdx.math.collision.Ray, float[], short[], int, com.badlogic.gdx.math.Vector3)"><!-- --></A><H3>
800
intersectRayTriangles</H3>
801
<PRE>
802
public static boolean <B>intersectRayTriangles</B>(<A HREF="../../../../com/badlogic/gdx/math/collision/Ray.html" title="class in com.badlogic.gdx.math.collision">Ray</A>&nbsp;ray,
803
                                            float[]&nbsp;vertices,
804
                                            short[]&nbsp;indices,
805
                                            int&nbsp;vertexSize,
806
                                            <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;intersection)</PRE>
807
<DL>
808
<DD>Intersects the given ray with list of triangles. Returns the nearest intersection point in intersection
809
<P>
810
<DD><DL>
811
<DT><B>Parameters:</B><DD><CODE>ray</CODE> - The ray<DD><CODE>vertices</CODE> - the vertices<DD><CODE>indices</CODE> - the indices, each successive 3 shorts index the 3 vertices of a triangle<DD><CODE>vertexSize</CODE> - the size of a vertex in floats<DD><CODE>intersection</CODE> - The nearest intersection point (optional)
812
<DT><B>Returns:</B><DD>Whether the ray and the triangles intersect.</DL>
813
</DD>
814
</DL>
815
<HR>
816
 
817
<A NAME="intersectRayTriangles(com.badlogic.gdx.math.collision.Ray, java.util.List, com.badlogic.gdx.math.Vector3)"><!-- --></A><H3>
818
intersectRayTriangles</H3>
819
<PRE>
820
public static boolean <B>intersectRayTriangles</B>(<A HREF="../../../../com/badlogic/gdx/math/collision/Ray.html" title="class in com.badlogic.gdx.math.collision">Ray</A>&nbsp;ray,
821
                                            java.util.List&lt;<A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&gt;&nbsp;triangles,
822
                                            <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;intersection)</PRE>
823
<DL>
824
<DD>Intersects the given ray with list of triangles. Returns the nearest intersection point in intersection
825
<P>
826
<DD><DL>
827
<DT><B>Parameters:</B><DD><CODE>ray</CODE> - The ray<DD><CODE>triangles</CODE> - The triangles<DD><CODE>intersection</CODE> - The nearest intersection point (optional)
828
<DT><B>Returns:</B><DD>Whether the ray and the triangles intersect.</DL>
829
</DD>
830
</DL>
831
<HR>
832
 
833
<A NAME="intersectRectangles(com.badlogic.gdx.math.Rectangle, com.badlogic.gdx.math.Rectangle)"><!-- --></A><H3>
834
intersectRectangles</H3>
835
<PRE>
836
public static boolean <B>intersectRectangles</B>(<A HREF="../../../../com/badlogic/gdx/math/Rectangle.html" title="class in com.badlogic.gdx.math">Rectangle</A>&nbsp;a,
837
                                          <A HREF="../../../../com/badlogic/gdx/math/Rectangle.html" title="class in com.badlogic.gdx.math">Rectangle</A>&nbsp;b)</PRE>
838
<DL>
839
<DD>Returns whether the two rectangles intersect
840
<P>
841
<DD><DL>
842
<DT><B>Parameters:</B><DD><CODE>a</CODE> - The first rectangle<DD><CODE>b</CODE> - The second rectangle
843
<DT><B>Returns:</B><DD>Whether the two rectangles intersect</DL>
844
</DD>
845
</DL>
846
<HR>
847
 
848
<A NAME="intersectLines(com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2)"><!-- --></A><H3>
849
intersectLines</H3>
850
<PRE>
851
public static boolean <B>intersectLines</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;p1,
852
                                     <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;p2,
853
                                     <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;p3,
854
                                     <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;p4,
855
                                     <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;intersection)</PRE>
856
<DL>
857
<DD>Intersects the two lines and returns the intersection point in intersection.
858
<P>
859
<DD><DL>
860
<DT><B>Parameters:</B><DD><CODE>p1</CODE> - The first point of the first line<DD><CODE>p2</CODE> - The second point of the first line<DD><CODE>p3</CODE> - The first point of the second line<DD><CODE>p4</CODE> - The second point of the second line<DD><CODE>intersection</CODE> - The intersection point
861
<DT><B>Returns:</B><DD>Whether the two lines intersect</DL>
862
</DD>
863
</DL>
864
<HR>
865
 
866
<A NAME="intersectSegments(com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2)"><!-- --></A><H3>
867
intersectSegments</H3>
868
<PRE>
869
public static boolean <B>intersectSegments</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;p1,
870
                                        <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;p2,
871
                                        <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;p3,
872
                                        <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;p4,
873
                                        <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;intersection)</PRE>
874
<DL>
875
<DD>Intersects the two line segments and returns the intersection point in intersection.
876
<P>
877
<DD><DL>
878
<DT><B>Parameters:</B><DD><CODE>p1</CODE> - The first point of the first line segment<DD><CODE>p2</CODE> - The second point of the first line segment<DD><CODE>p3</CODE> - The first point of the second line segment<DD><CODE>p4</CODE> - The second point of the second line segment<DD><CODE>intersection</CODE> - The intersection point (optional)
879
<DT><B>Returns:</B><DD>Whether the two line segments intersect</DL>
880
</DD>
881
</DL>
882
<HR>
883
 
884
<A NAME="overlapCircles(com.badlogic.gdx.math.Circle, com.badlogic.gdx.math.Circle)"><!-- --></A><H3>
885
overlapCircles</H3>
886
<PRE>
887
public static boolean <B>overlapCircles</B>(<A HREF="../../../../com/badlogic/gdx/math/Circle.html" title="class in com.badlogic.gdx.math">Circle</A>&nbsp;c1,
888
                                     <A HREF="../../../../com/badlogic/gdx/math/Circle.html" title="class in com.badlogic.gdx.math">Circle</A>&nbsp;c2)</PRE>
889
<DL>
890
<DD><DL>
891
</DL>
892
</DD>
893
</DL>
894
<HR>
895
 
896
<A NAME="overlapRectangles(com.badlogic.gdx.math.Rectangle, com.badlogic.gdx.math.Rectangle)"><!-- --></A><H3>
897
overlapRectangles</H3>
898
<PRE>
899
public static boolean <B>overlapRectangles</B>(<A HREF="../../../../com/badlogic/gdx/math/Rectangle.html" title="class in com.badlogic.gdx.math">Rectangle</A>&nbsp;r1,
900
                                        <A HREF="../../../../com/badlogic/gdx/math/Rectangle.html" title="class in com.badlogic.gdx.math">Rectangle</A>&nbsp;r2)</PRE>
901
<DL>
902
<DD><DL>
903
</DL>
904
</DD>
905
</DL>
906
<HR>
907
 
908
<A NAME="overlapCircleRectangle(com.badlogic.gdx.math.Circle, com.badlogic.gdx.math.Rectangle)"><!-- --></A><H3>
909
overlapCircleRectangle</H3>
910
<PRE>
911
public static boolean <B>overlapCircleRectangle</B>(<A HREF="../../../../com/badlogic/gdx/math/Circle.html" title="class in com.badlogic.gdx.math">Circle</A>&nbsp;c,
912
                                             <A HREF="../../../../com/badlogic/gdx/math/Rectangle.html" title="class in com.badlogic.gdx.math">Rectangle</A>&nbsp;r)</PRE>
913
<DL>
914
<DD><DL>
915
</DL>
916
</DD>
917
</DL>
918
<HR>
919
 
920
<A NAME="overlapConvexPolygons(com.badlogic.gdx.math.Polygon, com.badlogic.gdx.math.Polygon)"><!-- --></A><H3>
921
overlapConvexPolygons</H3>
922
<PRE>
923
public static boolean <B>overlapConvexPolygons</B>(<A HREF="../../../../com/badlogic/gdx/math/Polygon.html" title="class in com.badlogic.gdx.math">Polygon</A>&nbsp;p1,
924
                                            <A HREF="../../../../com/badlogic/gdx/math/Polygon.html" title="class in com.badlogic.gdx.math">Polygon</A>&nbsp;p2)</PRE>
925
<DL>
926
<DD>Check whether specified convex polygons overlap.
927
<P>
928
<DD><DL>
929
<DT><B>Parameters:</B><DD><CODE>p1</CODE> - The first polygon.<DD><CODE>p2</CODE> - The second polygon.
930
<DT><B>Returns:</B><DD>Whether polygons overlap.</DL>
931
</DD>
932
</DL>
933
<HR>
934
 
935
<A NAME="overlapConvexPolygons(com.badlogic.gdx.math.Polygon, com.badlogic.gdx.math.Polygon, com.badlogic.gdx.math.Intersector.MinimumTranslationVector)"><!-- --></A><H3>
936
overlapConvexPolygons</H3>
937
<PRE>
938
public static boolean <B>overlapConvexPolygons</B>(<A HREF="../../../../com/badlogic/gdx/math/Polygon.html" title="class in com.badlogic.gdx.math">Polygon</A>&nbsp;p1,
939
                                            <A HREF="../../../../com/badlogic/gdx/math/Polygon.html" title="class in com.badlogic.gdx.math">Polygon</A>&nbsp;p2,
940
                                            <A HREF="../../../../com/badlogic/gdx/math/Intersector.MinimumTranslationVector.html" title="class in com.badlogic.gdx.math">Intersector.MinimumTranslationVector</A>&nbsp;mtv)</PRE>
941
<DL>
942
<DD>Check whether specified convex polygons overlap. If they do, optionally obtain a Minimum Translation Vector indicating the
943
 minimum magnitude vector required to push the polygons out of the collision.
944
<P>
945
<DD><DL>
946
<DT><B>Parameters:</B><DD><CODE>p1</CODE> - The first polygon.<DD><CODE>p2</CODE> - The second polygon.<DD><CODE>mtv</CODE> - A Minimum Translation Vector to fill in the case of a collision (optional).
947
<DT><B>Returns:</B><DD>Whether polygons overlap.</DL>
948
</DD>
949
</DL>
950
<HR>
951
 
952
<A NAME="overlapConvexPolygons(float[], float[], com.badlogic.gdx.math.Intersector.MinimumTranslationVector)"><!-- --></A><H3>
953
overlapConvexPolygons</H3>
954
<PRE>
955
public static boolean <B>overlapConvexPolygons</B>(float[]&nbsp;verts1,
956
                                            float[]&nbsp;verts2,
957
                                            <A HREF="../../../../com/badlogic/gdx/math/Intersector.MinimumTranslationVector.html" title="class in com.badlogic.gdx.math">Intersector.MinimumTranslationVector</A>&nbsp;mtv)</PRE>
958
<DL>
959
<DD>Check whether polygons defined by the given vertex arrays overlap. If they do, optionally obtain a Minimum Translation
960
 Vector indicating the minimum magnitude vector required to push the polygons out of the collision.
961
<P>
962
<DD><DL>
963
<DT><B>Parameters:</B><DD><CODE>verts1</CODE> - Vertices of the first polygon.<DD><CODE>verts2</CODE> - Vertices of the second polygon.<DD><CODE>mtv</CODE> - A Minimum Translation Vector to fill in the case of a collision (optional).
964
<DT><B>Returns:</B><DD>Whether polygons overlap.</DL>
965
</DD>
966
</DL>
967
<HR>
968
 
969
<A NAME="splitTriangle(float[], com.badlogic.gdx.math.Plane, com.badlogic.gdx.math.Intersector.SplitTriangle)"><!-- --></A><H3>
970
splitTriangle</H3>
971
<PRE>
972
public static void <B>splitTriangle</B>(float[]&nbsp;triangle,
973
                                 <A HREF="../../../../com/badlogic/gdx/math/Plane.html" title="class in com.badlogic.gdx.math">Plane</A>&nbsp;plane,
974
                                 <A HREF="../../../../com/badlogic/gdx/math/Intersector.SplitTriangle.html" title="class in com.badlogic.gdx.math">Intersector.SplitTriangle</A>&nbsp;split)</PRE>
975
<DL>
976
<DD>Splits the triangle by the plane. The result is stored in the SplitTriangle instance. Depending on where the triangle is
977
 relative to the plane, the result can be:
978
 
979
 <ul>
980
 <li>Triangle is fully in front/behind: <A HREF="../../../../com/badlogic/gdx/math/Intersector.SplitTriangle.html#front"><CODE>Intersector.SplitTriangle.front</CODE></A> or <A HREF="../../../../com/badlogic/gdx/math/Intersector.SplitTriangle.html#back"><CODE>Intersector.SplitTriangle.back</CODE></A> will contain the original
981
 triangle, <A HREF="../../../../com/badlogic/gdx/math/Intersector.SplitTriangle.html#total"><CODE>Intersector.SplitTriangle.total</CODE></A> will be one.</li>
982
 <li>Triangle has two vertices in front, one behind: <A HREF="../../../../com/badlogic/gdx/math/Intersector.SplitTriangle.html#front"><CODE>Intersector.SplitTriangle.front</CODE></A> contains 2 triangles,
983
 <A HREF="../../../../com/badlogic/gdx/math/Intersector.SplitTriangle.html#back"><CODE>Intersector.SplitTriangle.back</CODE></A> contains 1 triangles, <A HREF="../../../../com/badlogic/gdx/math/Intersector.SplitTriangle.html#total"><CODE>Intersector.SplitTriangle.total</CODE></A> will be 3.</li>
984
 <li>Triangle has one vertex in front, two behind: <A HREF="../../../../com/badlogic/gdx/math/Intersector.SplitTriangle.html#front"><CODE>Intersector.SplitTriangle.front</CODE></A> contains 1 triangle,
985
 <A HREF="../../../../com/badlogic/gdx/math/Intersector.SplitTriangle.html#back"><CODE>Intersector.SplitTriangle.back</CODE></A> contains 2 triangles, <A HREF="../../../../com/badlogic/gdx/math/Intersector.SplitTriangle.html#total"><CODE>Intersector.SplitTriangle.total</CODE></A> will be 3.</li>
986
 </ul>
987
 
988
 The input triangle should have the form: x, y, z, x2, y2, z2, x3, y3, y3. One can add additional attributes per vertex which
989
 will be interpolated if split, such as texture coordinates or normals. Note that these additional attributes won't be
990
 normalized, as might be necessary in case of normals.
991
<P>
992
<DD><DL>
993
<DT><B>Parameters:</B><DD><CODE>triangle</CODE> - <DD><CODE>plane</CODE> - <DD><CODE>split</CODE> - output SplitTriangle</DL>
994
</DD>
995
</DL>
996
<HR>
997
 
998
<A NAME="main(java.lang.String[])"><!-- --></A><H3>
999
main</H3>
1000
<PRE>
1001
public static void <B>main</B>(java.lang.String[]&nbsp;args)</PRE>
1002
<DL>
1003
<DD><DL>
1004
</DL>
1005
</DD>
1006
</DL>
1007
<!-- ========= END OF CLASS DATA ========= -->
1008
<HR>
1009
 
1010
 
1011
<!-- ======= START OF BOTTOM NAVBAR ====== -->
1012
<A NAME="navbar_bottom"><!-- --></A>
1013
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
1014
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
1015
<TR>
1016
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
1017
<A NAME="navbar_bottom_firstrow"><!-- --></A>
1018
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
1019
  <TR ALIGN="center" VALIGN="top">
1020
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
1021
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
1022
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
1023
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Intersector.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
1024
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
1025
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
1026
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
1027
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
1028
  </TR>
1029
</TABLE>
1030
</TD>
1031
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
1032
libgdx API</EM>
1033
</TD>
1034
</TR>
1035
 
1036
<TR>
1037
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1038
&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Interpolation.SwingOut.html" title="class in com.badlogic.gdx.math"><B>PREV CLASS</B></A>&nbsp;
1039
&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Intersector.MinimumTranslationVector.html" title="class in com.badlogic.gdx.math"><B>NEXT CLASS</B></A></FONT></TD>
1040
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1041
  <A HREF="../../../../index.html?com/badlogic/gdx/math/Intersector.html" target="_top"><B>FRAMES</B></A>  &nbsp;
1042
&nbsp;<A HREF="Intersector.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
1043
&nbsp;<SCRIPT type="text/javascript">
1044
  <!--
1045
  if(window==top) {
1046
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
1047
  }
1048
  //-->
1049
</SCRIPT>
1050
<NOSCRIPT>
1051
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
1052
</NOSCRIPT>
1053
 
1054
 
1055
</FONT></TD>
1056
</TR>
1057
<TR>
1058
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1059
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
1060
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1061
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
1062
</TR>
1063
</TABLE>
1064
<A NAME="skip-navbar_bottom"></A>
1065
<!-- ======== END OF BOTTOM NAVBAR ======= -->
1066
 
1067
<HR>
1068
 
1069
                                <div style="font-size:9pt"><i>
1070
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
1071
                                </i></div>
1072
 
1073
</BODY>
1074
</HTML>