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:11 CEST 2012 -->
6
<TITLE>
7
com.badlogic.gdx.math (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="com.badlogic.gdx.math (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="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT>&nbsp;</TD>
42
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
43
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-use.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/input/package-summary.html"><B>PREV PACKAGE</B></A>&nbsp;
74
&nbsp;<A HREF="../../../../com/badlogic/gdx/math/collision/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD>
75
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
76
  <A HREF="../../../../index.html?com/badlogic/gdx/math/package-summary.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="package-summary.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
</TABLE>
93
<A NAME="skip-navbar_top"></A>
94
<!-- ========= END OF TOP NAVBAR ========= -->
95
 
96
<HR>
97
<H2>
98
Package com.badlogic.gdx.math
99
</H2>
100
 
101
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
102
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
103
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
104
<B>Class Summary</B></FONT></TH>
105
</TR>
106
<TR BGCOLOR="white" CLASS="TableRowColor">
107
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/CatmullRomSpline.html" title="class in com.badlogic.gdx.math">CatmullRomSpline</A></B></TD>
108
<TD>Encapsulates a catmull rom spline with n control points, n >= 4.</TD>
109
</TR>
110
<TR BGCOLOR="white" CLASS="TableRowColor">
111
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Circle.html" title="class in com.badlogic.gdx.math">Circle</A></B></TD>
112
<TD>A convenient 2D circle class.</TD>
113
</TR>
114
<TR BGCOLOR="white" CLASS="TableRowColor">
115
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/EarClippingTriangulator.html" title="class in com.badlogic.gdx.math">EarClippingTriangulator</A></B></TD>
116
<TD>A simple implementation of the ear cutting algorithm to triangulate simple polygons without holes.</TD>
117
</TR>
118
<TR BGCOLOR="white" CLASS="TableRowColor">
119
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Frustum.html" title="class in com.badlogic.gdx.math">Frustum</A></B></TD>
120
<TD>&nbsp;</TD>
121
</TR>
122
<TR BGCOLOR="white" CLASS="TableRowColor">
123
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Interpolation.html" title="class in com.badlogic.gdx.math">Interpolation</A></B></TD>
124
<TD>Takes a linear value in the range of 0-1 and outputs a (usually) non-linear, interpolated value.</TD>
125
</TR>
126
<TR BGCOLOR="white" CLASS="TableRowColor">
127
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Interpolation.Bounce.html" title="class in com.badlogic.gdx.math">Interpolation.Bounce</A></B></TD>
128
<TD>&nbsp;</TD>
129
</TR>
130
<TR BGCOLOR="white" CLASS="TableRowColor">
131
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Interpolation.BounceIn.html" title="class in com.badlogic.gdx.math">Interpolation.BounceIn</A></B></TD>
132
<TD>&nbsp;</TD>
133
</TR>
134
<TR BGCOLOR="white" CLASS="TableRowColor">
135
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Interpolation.BounceOut.html" title="class in com.badlogic.gdx.math">Interpolation.BounceOut</A></B></TD>
136
<TD>&nbsp;</TD>
137
</TR>
138
<TR BGCOLOR="white" CLASS="TableRowColor">
139
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Interpolation.Elastic.html" title="class in com.badlogic.gdx.math">Interpolation.Elastic</A></B></TD>
140
<TD>&nbsp;</TD>
141
</TR>
142
<TR BGCOLOR="white" CLASS="TableRowColor">
143
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Interpolation.ElasticIn.html" title="class in com.badlogic.gdx.math">Interpolation.ElasticIn</A></B></TD>
144
<TD>&nbsp;</TD>
145
</TR>
146
<TR BGCOLOR="white" CLASS="TableRowColor">
147
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Interpolation.ElasticOut.html" title="class in com.badlogic.gdx.math">Interpolation.ElasticOut</A></B></TD>
148
<TD>&nbsp;</TD>
149
</TR>
150
<TR BGCOLOR="white" CLASS="TableRowColor">
151
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Interpolation.Exp.html" title="class in com.badlogic.gdx.math">Interpolation.Exp</A></B></TD>
152
<TD>&nbsp;</TD>
153
</TR>
154
<TR BGCOLOR="white" CLASS="TableRowColor">
155
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Interpolation.ExpIn.html" title="class in com.badlogic.gdx.math">Interpolation.ExpIn</A></B></TD>
156
<TD>&nbsp;</TD>
157
</TR>
158
<TR BGCOLOR="white" CLASS="TableRowColor">
159
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Interpolation.ExpOut.html" title="class in com.badlogic.gdx.math">Interpolation.ExpOut</A></B></TD>
160
<TD>&nbsp;</TD>
161
</TR>
162
<TR BGCOLOR="white" CLASS="TableRowColor">
163
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Interpolation.Pow.html" title="class in com.badlogic.gdx.math">Interpolation.Pow</A></B></TD>
164
<TD>&nbsp;</TD>
165
</TR>
166
<TR BGCOLOR="white" CLASS="TableRowColor">
167
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Interpolation.PowIn.html" title="class in com.badlogic.gdx.math">Interpolation.PowIn</A></B></TD>
168
<TD>&nbsp;</TD>
169
</TR>
170
<TR BGCOLOR="white" CLASS="TableRowColor">
171
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Interpolation.PowOut.html" title="class in com.badlogic.gdx.math">Interpolation.PowOut</A></B></TD>
172
<TD>&nbsp;</TD>
173
</TR>
174
<TR BGCOLOR="white" CLASS="TableRowColor">
175
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Interpolation.Swing.html" title="class in com.badlogic.gdx.math">Interpolation.Swing</A></B></TD>
176
<TD>&nbsp;</TD>
177
</TR>
178
<TR BGCOLOR="white" CLASS="TableRowColor">
179
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Interpolation.SwingIn.html" title="class in com.badlogic.gdx.math">Interpolation.SwingIn</A></B></TD>
180
<TD>&nbsp;</TD>
181
</TR>
182
<TR BGCOLOR="white" CLASS="TableRowColor">
183
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Interpolation.SwingOut.html" title="class in com.badlogic.gdx.math">Interpolation.SwingOut</A></B></TD>
184
<TD>&nbsp;</TD>
185
</TR>
186
<TR BGCOLOR="white" CLASS="TableRowColor">
187
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.html" title="class in com.badlogic.gdx.math">Intersector</A></B></TD>
188
<TD>Class offering various static methods for intersection testing between different geometric objects.</TD>
189
</TR>
190
<TR BGCOLOR="white" CLASS="TableRowColor">
191
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Intersector.SplitTriangle.html" title="class in com.badlogic.gdx.math">Intersector.SplitTriangle</A></B></TD>
192
<TD>&nbsp;</TD>
193
</TR>
194
<TR BGCOLOR="white" CLASS="TableRowColor">
195
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/MathUtils.html" title="class in com.badlogic.gdx.math">MathUtils</A></B></TD>
196
<TD>Utility and fast math functions.<br>
197
 <br>
198
 Thanks to Riven on JavaGaming.org for sin/cos/atan2/floor/ceil.<br></TD>
199
</TR>
200
<TR BGCOLOR="white" CLASS="TableRowColor">
201
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A></B></TD>
202
<TD>A 3x3 column major matrix for 2D transforms.</TD>
203
</TR>
204
<TR BGCOLOR="white" CLASS="TableRowColor">
205
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</A></B></TD>
206
<TD>Encapsulates a column major 4 by 4 matrix.</TD>
207
</TR>
208
<TR BGCOLOR="white" CLASS="TableRowColor">
209
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Plane.html" title="class in com.badlogic.gdx.math">Plane</A></B></TD>
210
<TD>A plane defined via a unit length normal and the distance from the origin, as you learned in your math class.</TD>
211
</TR>
212
<TR BGCOLOR="white" CLASS="TableRowColor">
213
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Polygon.html" title="class in com.badlogic.gdx.math">Polygon</A></B></TD>
214
<TD>&nbsp;</TD>
215
</TR>
216
<TR BGCOLOR="white" CLASS="TableRowColor">
217
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</A></B></TD>
218
<TD>A simple quaternion class.</TD>
219
</TR>
220
<TR BGCOLOR="white" CLASS="TableRowColor">
221
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Rectangle.html" title="class in com.badlogic.gdx.math">Rectangle</A></B></TD>
222
<TD>Encapsulates a 2D rectangle defined by it's bottom corner point and its extends in x (width) and y (height).</TD>
223
</TR>
224
<TR BGCOLOR="white" CLASS="TableRowColor">
225
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></B></TD>
226
<TD>Encapsulates a 2D vector.</TD>
227
</TR>
228
<TR BGCOLOR="white" CLASS="TableRowColor">
229
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A></B></TD>
230
<TD>Encapsulates a 3D vector.</TD>
231
</TR>
232
<TR BGCOLOR="white" CLASS="TableRowColor">
233
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/WindowedMean.html" title="class in com.badlogic.gdx.math">WindowedMean</A></B></TD>
234
<TD>A simple class keeping track of the mean of a stream of values within a certain window.</TD>
235
</TR>
236
</TABLE>
237
&nbsp;
238
 
239
<P>
240
 
241
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
242
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
243
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
244
<B>Enum Summary</B></FONT></TH>
245
</TR>
246
<TR BGCOLOR="white" CLASS="TableRowColor">
247
<TD WIDTH="15%"><B><A HREF="../../../../com/badlogic/gdx/math/Plane.PlaneSide.html" title="enum in com.badlogic.gdx.math">Plane.PlaneSide</A></B></TD>
248
<TD>Enum specifying on which side a point lies respective to the plane and it's normal.</TD>
249
</TR>
250
</TABLE>
251
&nbsp;
252
 
253
<P>
254
<DL>
255
</DL>
256
<HR>
257
 
258
 
259
<!-- ======= START OF BOTTOM NAVBAR ====== -->
260
<A NAME="navbar_bottom"><!-- --></A>
261
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
262
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
263
<TR>
264
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
265
<A NAME="navbar_bottom_firstrow"><!-- --></A>
266
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
267
  <TR ALIGN="center" VALIGN="top">
268
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
269
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT>&nbsp;</TD>
270
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
271
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-use.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
272
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
273
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
274
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
275
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
276
  </TR>
277
</TABLE>
278
</TD>
279
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
280
libgdx API</EM>
281
</TD>
282
</TR>
283
 
284
<TR>
285
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
286
&nbsp;<A HREF="../../../../com/badlogic/gdx/input/package-summary.html"><B>PREV PACKAGE</B></A>&nbsp;
287
&nbsp;<A HREF="../../../../com/badlogic/gdx/math/collision/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD>
288
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
289
  <A HREF="../../../../index.html?com/badlogic/gdx/math/package-summary.html" target="_top"><B>FRAMES</B></A>  &nbsp;
290
&nbsp;<A HREF="package-summary.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
291
&nbsp;<SCRIPT type="text/javascript">
292
  <!--
293
  if(window==top) {
294
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
295
  }
296
  //-->
297
</SCRIPT>
298
<NOSCRIPT>
299
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
300
</NOSCRIPT>
301
 
302
 
303
</FONT></TD>
304
</TR>
305
</TABLE>
306
<A NAME="skip-navbar_bottom"></A>
307
<!-- ======== END OF BOTTOM NAVBAR ======= -->
308
 
309
<HR>
310
 
311
                                <div style="font-size:9pt"><i>
312
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
313
                                </i></div>
314
 
315
</BODY>
316
</HTML>