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
Matrix3 (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="Matrix3 (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/Matrix3.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/MathUtils.html" title="class in com.badlogic.gdx.math"><B>PREV CLASS</B></A>&nbsp;
74
&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Matrix4.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/Matrix3.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="Matrix3.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.math</FONT>
107
<BR>
108
Class Matrix3</H2>
109
<PRE>
110
java.lang.Object
111
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.math.Matrix3</B>
112
</PRE>
113
<DL>
114
<DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable</DD>
115
</DL>
116
<HR>
117
<DL>
118
<DT><PRE>public class <B>Matrix3</B><DT>extends java.lang.Object<DT>implements java.io.Serializable</DL>
119
</PRE>
120
 
121
<P>
122
A 3x3 <a href="http://en.wikipedia.org/wiki/Row-major_order">column major</a> matrix; useful for 2D transforms.
123
<P>
124
 
125
<P>
126
<DL>
127
<DT><B>Author:</B></DT>
128
  <DD>mzechner</DD>
129
<DT><B>See Also:</B><DD><A HREF="../../../../serialized-form.html#com.badlogic.gdx.math.Matrix3">Serialized Form</A></DL>
130
<HR>
131
 
132
<P>
133
<!-- =========== FIELD SUMMARY =========== -->
134
 
135
<A NAME="field_summary"><!-- --></A>
136
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
137
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
138
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
139
<B>Field Summary</B></FONT></TH>
140
</TR>
141
<TR BGCOLOR="white" CLASS="TableRowColor">
142
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
143
<CODE>static&nbsp;int</CODE></FONT></TD>
144
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#M00">M00</A></B></CODE>
145
 
146
<BR>
147
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
148
</TR>
149
<TR BGCOLOR="white" CLASS="TableRowColor">
150
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
151
<CODE>static&nbsp;int</CODE></FONT></TD>
152
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#M01">M01</A></B></CODE>
153
 
154
<BR>
155
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
156
</TR>
157
<TR BGCOLOR="white" CLASS="TableRowColor">
158
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
159
<CODE>static&nbsp;int</CODE></FONT></TD>
160
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#M02">M02</A></B></CODE>
161
 
162
<BR>
163
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
164
</TR>
165
<TR BGCOLOR="white" CLASS="TableRowColor">
166
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
167
<CODE>static&nbsp;int</CODE></FONT></TD>
168
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#M10">M10</A></B></CODE>
169
 
170
<BR>
171
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
172
</TR>
173
<TR BGCOLOR="white" CLASS="TableRowColor">
174
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
175
<CODE>static&nbsp;int</CODE></FONT></TD>
176
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#M11">M11</A></B></CODE>
177
 
178
<BR>
179
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
180
</TR>
181
<TR BGCOLOR="white" CLASS="TableRowColor">
182
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
183
<CODE>static&nbsp;int</CODE></FONT></TD>
184
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#M12">M12</A></B></CODE>
185
 
186
<BR>
187
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
188
</TR>
189
<TR BGCOLOR="white" CLASS="TableRowColor">
190
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
191
<CODE>static&nbsp;int</CODE></FONT></TD>
192
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#M20">M20</A></B></CODE>
193
 
194
<BR>
195
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
196
</TR>
197
<TR BGCOLOR="white" CLASS="TableRowColor">
198
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
199
<CODE>static&nbsp;int</CODE></FONT></TD>
200
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#M21">M21</A></B></CODE>
201
 
202
<BR>
203
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
204
</TR>
205
<TR BGCOLOR="white" CLASS="TableRowColor">
206
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
207
<CODE>static&nbsp;int</CODE></FONT></TD>
208
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#M22">M22</A></B></CODE>
209
 
210
<BR>
211
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
212
</TR>
213
<TR BGCOLOR="white" CLASS="TableRowColor">
214
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
215
<CODE>&nbsp;float[]</CODE></FONT></TD>
216
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#val">val</A></B></CODE>
217
 
218
<BR>
219
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
220
</TR>
221
</TABLE>
222
&nbsp;
223
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
224
 
225
<A NAME="constructor_summary"><!-- --></A>
226
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
227
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
228
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
229
<B>Constructor Summary</B></FONT></TH>
230
</TR>
231
<TR BGCOLOR="white" CLASS="TableRowColor">
232
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#Matrix3()">Matrix3</A></B>()</CODE>
233
 
234
<BR>
235
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
236
</TR>
237
<TR BGCOLOR="white" CLASS="TableRowColor">
238
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#Matrix3(com.badlogic.gdx.math.Matrix3)">Matrix3</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A>&nbsp;matrix)</CODE>
239
 
240
<BR>
241
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
242
</TR>
243
</TABLE>
244
&nbsp;
245
<!-- ========== METHOD SUMMARY =========== -->
246
 
247
<A NAME="method_summary"><!-- --></A>
248
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
249
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
250
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
251
<B>Method Summary</B></FONT></TH>
252
</TR>
253
<TR BGCOLOR="white" CLASS="TableRowColor">
254
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
255
<CODE>&nbsp;float</CODE></FONT></TD>
256
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#det()">det</A></B>()</CODE>
257
 
258
<BR>
259
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
260
</TR>
261
<TR BGCOLOR="white" CLASS="TableRowColor">
262
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
263
<CODE>&nbsp;float[]</CODE></FONT></TD>
264
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#getValues()">getValues</A></B>()</CODE>
265
 
266
<BR>
267
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the values in this matrix.</TD>
268
</TR>
269
<TR BGCOLOR="white" CLASS="TableRowColor">
270
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
271
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A></CODE></FONT></TD>
272
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#idt()">idt</A></B>()</CODE>
273
 
274
<BR>
275
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets this matrix to the identity matrix</TD>
276
</TR>
277
<TR BGCOLOR="white" CLASS="TableRowColor">
278
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
279
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A></CODE></FONT></TD>
280
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#inv()">inv</A></B>()</CODE>
281
 
282
<BR>
283
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inverts this matrix given that the determinant is != 0.</TD>
284
</TR>
285
<TR BGCOLOR="white" CLASS="TableRowColor">
286
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
287
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A></CODE></FONT></TD>
288
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#mul(com.badlogic.gdx.math.Matrix3)">mul</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A>&nbsp;m)</CODE>
289
 
290
<BR>
291
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Multiplies this matrix with the provided matrix and stores the result in this matrix.</TD>
292
</TR>
293
<TR BGCOLOR="white" CLASS="TableRowColor">
294
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
295
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A></CODE></FONT></TD>
296
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#rotate(float)">rotate</A></B>(float&nbsp;angle)</CODE>
297
 
298
<BR>
299
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Postmultiplies this matrix with a (counter-clockwise) rotation matrix.</TD>
300
</TR>
301
<TR BGCOLOR="white" CLASS="TableRowColor">
302
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
303
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A></CODE></FONT></TD>
304
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#scale(float, float)">scale</A></B>(float&nbsp;scaleX,
305
      float&nbsp;scaleY)</CODE>
306
 
307
<BR>
308
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Postmultiplies this matrix with a scale matrix.</TD>
309
</TR>
310
<TR BGCOLOR="white" CLASS="TableRowColor">
311
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
312
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A></CODE></FONT></TD>
313
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#scale(com.badlogic.gdx.math.Vector2)">scale</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;scale)</CODE>
314
 
315
<BR>
316
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Postmultiplies this matrix with a scale matrix.</TD>
317
</TR>
318
<TR BGCOLOR="white" CLASS="TableRowColor">
319
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
320
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A></CODE></FONT></TD>
321
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#scl(float)">scl</A></B>(float&nbsp;scale)</CODE>
322
 
323
<BR>
324
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Scale the matrix in the both the x and y components by the scalar value.</TD>
325
</TR>
326
<TR BGCOLOR="white" CLASS="TableRowColor">
327
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
328
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A></CODE></FONT></TD>
329
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#scl(com.badlogic.gdx.math.Vector2)">scl</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;scale)</CODE>
330
 
331
<BR>
332
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Scale this matrix using the x and y components of the vector but leave the rest of the matrix alone.</TD>
333
</TR>
334
<TR BGCOLOR="white" CLASS="TableRowColor">
335
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
336
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A></CODE></FONT></TD>
337
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#scl(com.badlogic.gdx.math.Vector3)">scl</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;scale)</CODE>
338
 
339
<BR>
340
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Scale this matrix using the x and y components of the vector but leave the rest of the matrix alone.</TD>
341
</TR>
342
<TR BGCOLOR="white" CLASS="TableRowColor">
343
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
344
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A></CODE></FONT></TD>
345
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#set(com.badlogic.gdx.math.Matrix3)">set</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A>&nbsp;mat)</CODE>
346
 
347
<BR>
348
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copies the values from the provided matrix to this matrix.</TD>
349
</TR>
350
<TR BGCOLOR="white" CLASS="TableRowColor">
351
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
352
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A></CODE></FONT></TD>
353
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#set(com.badlogic.gdx.math.Matrix4)">set</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</A>&nbsp;mat)</CODE>
354
 
355
<BR>
356
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets this 3x3 matrix to the top left 3x3 corner of the provided 4x4 matrix.</TD>
357
</TR>
358
<TR BGCOLOR="white" CLASS="TableRowColor">
359
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
360
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A></CODE></FONT></TD>
361
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#setToRotation(float)">setToRotation</A></B>(float&nbsp;degrees)</CODE>
362
 
363
<BR>
364
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets this matrix to a rotation matrix that will rotate any vector in counter-clockwise order around the z-axis.</TD>
365
</TR>
366
<TR BGCOLOR="white" CLASS="TableRowColor">
367
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
368
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A></CODE></FONT></TD>
369
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#setToScaling(float, float)">setToScaling</A></B>(float&nbsp;scaleX,
370
             float&nbsp;scaleY)</CODE>
371
 
372
<BR>
373
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets this matrix to a scaling matrix.</TD>
374
</TR>
375
<TR BGCOLOR="white" CLASS="TableRowColor">
376
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
377
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A></CODE></FONT></TD>
378
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#setToTranslation(float, float)">setToTranslation</A></B>(float&nbsp;x,
379
                 float&nbsp;y)</CODE>
380
 
381
<BR>
382
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets this matrix to a translation matrix.</TD>
383
</TR>
384
<TR BGCOLOR="white" CLASS="TableRowColor">
385
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
386
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A></CODE></FONT></TD>
387
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#setToTranslation(com.badlogic.gdx.math.Vector2)">setToTranslation</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;translation)</CODE>
388
 
389
<BR>
390
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets this matrix to a translation matrix.</TD>
391
</TR>
392
<TR BGCOLOR="white" CLASS="TableRowColor">
393
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
394
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
395
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#toString()">toString</A></B>()</CODE>
396
 
397
<BR>
398
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
399
</TR>
400
<TR BGCOLOR="white" CLASS="TableRowColor">
401
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
402
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A></CODE></FONT></TD>
403
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#translate(float, float)">translate</A></B>(float&nbsp;x,
404
          float&nbsp;y)</CODE>
405
 
406
<BR>
407
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Postmultiplies this matrix by a translation matrix.</TD>
408
</TR>
409
<TR BGCOLOR="white" CLASS="TableRowColor">
410
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
411
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A></CODE></FONT></TD>
412
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#translate(com.badlogic.gdx.math.Vector2)">translate</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;translation)</CODE>
413
 
414
<BR>
415
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Postmultiplies this matrix by a translation matrix.</TD>
416
</TR>
417
<TR BGCOLOR="white" CLASS="TableRowColor">
418
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
419
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A></CODE></FONT></TD>
420
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#transpose()">transpose</A></B>()</CODE>
421
 
422
<BR>
423
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Transposes the current matrix.</TD>
424
</TR>
425
<TR BGCOLOR="white" CLASS="TableRowColor">
426
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
427
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A></CODE></FONT></TD>
428
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#trn(float, float)">trn</A></B>(float&nbsp;x,
429
    float&nbsp;y)</CODE>
430
 
431
<BR>
432
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a translational component to the matrix in the 3rd column.</TD>
433
</TR>
434
<TR BGCOLOR="white" CLASS="TableRowColor">
435
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
436
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A></CODE></FONT></TD>
437
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#trn(com.badlogic.gdx.math.Vector2)">trn</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;vector)</CODE>
438
 
439
<BR>
440
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a translational component to the matrix in the 3rd column.</TD>
441
</TR>
442
<TR BGCOLOR="white" CLASS="TableRowColor">
443
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
444
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A></CODE></FONT></TD>
445
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Matrix3.html#trn(com.badlogic.gdx.math.Vector3)">trn</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;vector)</CODE>
446
 
447
<BR>
448
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a translational component to the matrix in the 3rd column.</TD>
449
</TR>
450
</TABLE>
451
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
452
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
453
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
454
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
455
</TR>
456
<TR BGCOLOR="white" CLASS="TableRowColor">
457
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
458
</TR>
459
</TABLE>
460
&nbsp;
461
<P>
462
 
463
<!-- ============ FIELD DETAIL =========== -->
464
 
465
<A NAME="field_detail"><!-- --></A>
466
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
467
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
468
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
469
<B>Field Detail</B></FONT></TH>
470
</TR>
471
</TABLE>
472
 
473
<A NAME="M00"><!-- --></A><H3>
474
M00</H3>
475
<PRE>
476
public static final int <B>M00</B></PRE>
477
<DL>
478
<DL>
479
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.badlogic.gdx.math.Matrix3.M00">Constant Field Values</A></DL>
480
</DL>
481
<HR>
482
 
483
<A NAME="M01"><!-- --></A><H3>
484
M01</H3>
485
<PRE>
486
public static final int <B>M01</B></PRE>
487
<DL>
488
<DL>
489
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.badlogic.gdx.math.Matrix3.M01">Constant Field Values</A></DL>
490
</DL>
491
<HR>
492
 
493
<A NAME="M02"><!-- --></A><H3>
494
M02</H3>
495
<PRE>
496
public static final int <B>M02</B></PRE>
497
<DL>
498
<DL>
499
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.badlogic.gdx.math.Matrix3.M02">Constant Field Values</A></DL>
500
</DL>
501
<HR>
502
 
503
<A NAME="M10"><!-- --></A><H3>
504
M10</H3>
505
<PRE>
506
public static final int <B>M10</B></PRE>
507
<DL>
508
<DL>
509
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.badlogic.gdx.math.Matrix3.M10">Constant Field Values</A></DL>
510
</DL>
511
<HR>
512
 
513
<A NAME="M11"><!-- --></A><H3>
514
M11</H3>
515
<PRE>
516
public static final int <B>M11</B></PRE>
517
<DL>
518
<DL>
519
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.badlogic.gdx.math.Matrix3.M11">Constant Field Values</A></DL>
520
</DL>
521
<HR>
522
 
523
<A NAME="M12"><!-- --></A><H3>
524
M12</H3>
525
<PRE>
526
public static final int <B>M12</B></PRE>
527
<DL>
528
<DL>
529
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.badlogic.gdx.math.Matrix3.M12">Constant Field Values</A></DL>
530
</DL>
531
<HR>
532
 
533
<A NAME="M20"><!-- --></A><H3>
534
M20</H3>
535
<PRE>
536
public static final int <B>M20</B></PRE>
537
<DL>
538
<DL>
539
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.badlogic.gdx.math.Matrix3.M20">Constant Field Values</A></DL>
540
</DL>
541
<HR>
542
 
543
<A NAME="M21"><!-- --></A><H3>
544
M21</H3>
545
<PRE>
546
public static final int <B>M21</B></PRE>
547
<DL>
548
<DL>
549
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.badlogic.gdx.math.Matrix3.M21">Constant Field Values</A></DL>
550
</DL>
551
<HR>
552
 
553
<A NAME="M22"><!-- --></A><H3>
554
M22</H3>
555
<PRE>
556
public static final int <B>M22</B></PRE>
557
<DL>
558
<DL>
559
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.badlogic.gdx.math.Matrix3.M22">Constant Field Values</A></DL>
560
</DL>
561
<HR>
562
 
563
<A NAME="val"><!-- --></A><H3>
564
val</H3>
565
<PRE>
566
public float[] <B>val</B></PRE>
567
<DL>
568
<DL>
569
</DL>
570
</DL>
571
 
572
<!-- ========= CONSTRUCTOR DETAIL ======== -->
573
 
574
<A NAME="constructor_detail"><!-- --></A>
575
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
576
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
577
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
578
<B>Constructor Detail</B></FONT></TH>
579
</TR>
580
</TABLE>
581
 
582
<A NAME="Matrix3()"><!-- --></A><H3>
583
Matrix3</H3>
584
<PRE>
585
public <B>Matrix3</B>()</PRE>
586
<DL>
587
</DL>
588
<HR>
589
 
590
<A NAME="Matrix3(com.badlogic.gdx.math.Matrix3)"><!-- --></A><H3>
591
Matrix3</H3>
592
<PRE>
593
public <B>Matrix3</B>(<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A>&nbsp;matrix)</PRE>
594
<DL>
595
</DL>
596
 
597
<!-- ============ METHOD DETAIL ========== -->
598
 
599
<A NAME="method_detail"><!-- --></A>
600
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
601
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
602
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
603
<B>Method Detail</B></FONT></TH>
604
</TR>
605
</TABLE>
606
 
607
<A NAME="idt()"><!-- --></A><H3>
608
idt</H3>
609
<PRE>
610
public <A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A> <B>idt</B>()</PRE>
611
<DL>
612
<DD>Sets this matrix to the identity matrix
613
<P>
614
<DD><DL>
615
</DL>
616
</DD>
617
<DD><DL>
618
 
619
<DT><B>Returns:</B><DD>This matrix for the purpose of chaining operations.</DL>
620
</DD>
621
</DL>
622
<HR>
623
 
624
<A NAME="mul(com.badlogic.gdx.math.Matrix3)"><!-- --></A><H3>
625
mul</H3>
626
<PRE>
627
public <A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A> <B>mul</B>(<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A>&nbsp;m)</PRE>
628
<DL>
629
<DD>Multiplies this matrix with the provided matrix and stores the result in this matrix. For example:
630
 
631
 <pre>
632
 A.mul(B) results in A := AB
633
 </pre>
634
<P>
635
<DD><DL>
636
</DL>
637
</DD>
638
<DD><DL>
639
<DT><B>Parameters:</B><DD><CODE>m</CODE> - Matrix to multiply by.
640
<DT><B>Returns:</B><DD>This matrix for the purpose of chaining operations together.</DL>
641
</DD>
642
</DL>
643
<HR>
644
 
645
<A NAME="setToRotation(float)"><!-- --></A><H3>
646
setToRotation</H3>
647
<PRE>
648
public <A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A> <B>setToRotation</B>(float&nbsp;degrees)</PRE>
649
<DL>
650
<DD>Sets this matrix to a rotation matrix that will rotate any vector in counter-clockwise order around the z-axis.
651
<P>
652
<DD><DL>
653
</DL>
654
</DD>
655
<DD><DL>
656
<DT><B>Parameters:</B><DD><CODE>degrees</CODE> - the angle in degrees.
657
<DT><B>Returns:</B><DD>This matrix for the purpose of chaining operations.</DL>
658
</DD>
659
</DL>
660
<HR>
661
 
662
<A NAME="setToTranslation(float, float)"><!-- --></A><H3>
663
setToTranslation</H3>
664
<PRE>
665
public <A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A> <B>setToTranslation</B>(float&nbsp;x,
666
                                float&nbsp;y)</PRE>
667
<DL>
668
<DD>Sets this matrix to a translation matrix.
669
<P>
670
<DD><DL>
671
</DL>
672
</DD>
673
<DD><DL>
674
<DT><B>Parameters:</B><DD><CODE>x</CODE> - the translation in x<DD><CODE>y</CODE> - the translation in y
675
<DT><B>Returns:</B><DD>This matrix for the purpose of chaining operations.</DL>
676
</DD>
677
</DL>
678
<HR>
679
 
680
<A NAME="setToTranslation(com.badlogic.gdx.math.Vector2)"><!-- --></A><H3>
681
setToTranslation</H3>
682
<PRE>
683
public <A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A> <B>setToTranslation</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;translation)</PRE>
684
<DL>
685
<DD>Sets this matrix to a translation matrix.
686
<P>
687
<DD><DL>
688
</DL>
689
</DD>
690
<DD><DL>
691
<DT><B>Parameters:</B><DD><CODE>translation</CODE> - The translation vector.
692
<DT><B>Returns:</B><DD>This matrix for the purpose of chaining operations.</DL>
693
</DD>
694
</DL>
695
<HR>
696
 
697
<A NAME="setToScaling(float, float)"><!-- --></A><H3>
698
setToScaling</H3>
699
<PRE>
700
public <A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A> <B>setToScaling</B>(float&nbsp;scaleX,
701
                            float&nbsp;scaleY)</PRE>
702
<DL>
703
<DD>Sets this matrix to a scaling matrix.
704
<P>
705
<DD><DL>
706
</DL>
707
</DD>
708
<DD><DL>
709
<DT><B>Parameters:</B><DD><CODE>scaleX</CODE> - the scale in x<DD><CODE>scaleY</CODE> - the scale in y
710
<DT><B>Returns:</B><DD>This matrix for the purpose of chaining operations.</DL>
711
</DD>
712
</DL>
713
<HR>
714
 
715
<A NAME="toString()"><!-- --></A><H3>
716
toString</H3>
717
<PRE>
718
public java.lang.String <B>toString</B>()</PRE>
719
<DL>
720
<DD><DL>
721
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
722
</DD>
723
<DD><DL>
724
</DL>
725
</DD>
726
</DL>
727
<HR>
728
 
729
<A NAME="det()"><!-- --></A><H3>
730
det</H3>
731
<PRE>
732
public float <B>det</B>()</PRE>
733
<DL>
734
<DD><DL>
735
</DL>
736
</DD>
737
<DD><DL>
738
 
739
<DT><B>Returns:</B><DD>The determinant of this matrix</DL>
740
</DD>
741
</DL>
742
<HR>
743
 
744
<A NAME="inv()"><!-- --></A><H3>
745
inv</H3>
746
<PRE>
747
public <A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A> <B>inv</B>()</PRE>
748
<DL>
749
<DD>Inverts this matrix given that the determinant is != 0.
750
<P>
751
<DD><DL>
752
</DL>
753
</DD>
754
<DD><DL>
755
 
756
<DT><B>Returns:</B><DD>This matrix for the purpose of chaining operations.</DL>
757
</DD>
758
</DL>
759
<HR>
760
 
761
<A NAME="set(com.badlogic.gdx.math.Matrix3)"><!-- --></A><H3>
762
set</H3>
763
<PRE>
764
public <A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A> <B>set</B>(<A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A>&nbsp;mat)</PRE>
765
<DL>
766
<DD>Copies the values from the provided matrix to this matrix.
767
<P>
768
<DD><DL>
769
</DL>
770
</DD>
771
<DD><DL>
772
<DT><B>Parameters:</B><DD><CODE>mat</CODE> - The matrix to copy.
773
<DT><B>Returns:</B><DD>This matrix for the purposes of chaining.</DL>
774
</DD>
775
</DL>
776
<HR>
777
 
778
<A NAME="set(com.badlogic.gdx.math.Matrix4)"><!-- --></A><H3>
779
set</H3>
780
<PRE>
781
public <A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A> <B>set</B>(<A HREF="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</A>&nbsp;mat)</PRE>
782
<DL>
783
<DD>Sets this 3x3 matrix to the top left 3x3 corner of the provided 4x4 matrix.
784
<P>
785
<DD><DL>
786
</DL>
787
</DD>
788
<DD><DL>
789
<DT><B>Parameters:</B><DD><CODE>mat</CODE> - The matrix whose top left corner will be copied. This matrix will not be modified.
790
<DT><B>Returns:</B><DD>This matrix for the purpose of chaining operations.</DL>
791
</DD>
792
</DL>
793
<HR>
794
 
795
<A NAME="trn(com.badlogic.gdx.math.Vector2)"><!-- --></A><H3>
796
trn</H3>
797
<PRE>
798
public <A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A> <B>trn</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;vector)</PRE>
799
<DL>
800
<DD>Adds a translational component to the matrix in the 3rd column. The other columns are untouched.
801
<P>
802
<DD><DL>
803
</DL>
804
</DD>
805
<DD><DL>
806
<DT><B>Parameters:</B><DD><CODE>vector</CODE> - The translation vector.
807
<DT><B>Returns:</B><DD>This matrix for the purpose of chaining.</DL>
808
</DD>
809
</DL>
810
<HR>
811
 
812
<A NAME="trn(float, float)"><!-- --></A><H3>
813
trn</H3>
814
<PRE>
815
public <A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A> <B>trn</B>(float&nbsp;x,
816
                   float&nbsp;y)</PRE>
817
<DL>
818
<DD>Adds a translational component to the matrix in the 3rd column. The other columns are untouched.
819
<P>
820
<DD><DL>
821
</DL>
822
</DD>
823
<DD><DL>
824
<DT><B>Parameters:</B><DD><CODE>x</CODE> - The x-component of the translation vector.<DD><CODE>y</CODE> - The y-component of the translation vector.
825
<DT><B>Returns:</B><DD>This matrix for the purpose of chaining.</DL>
826
</DD>
827
</DL>
828
<HR>
829
 
830
<A NAME="trn(com.badlogic.gdx.math.Vector3)"><!-- --></A><H3>
831
trn</H3>
832
<PRE>
833
public <A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A> <B>trn</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;vector)</PRE>
834
<DL>
835
<DD>Adds a translational component to the matrix in the 3rd column. The other columns are untouched.
836
<P>
837
<DD><DL>
838
</DL>
839
</DD>
840
<DD><DL>
841
<DT><B>Parameters:</B><DD><CODE>vector</CODE> - The translation vector. (The z-component of the vector is ignored because this is a 3x3 matrix)
842
<DT><B>Returns:</B><DD>This matrix for the purpose of chaining.</DL>
843
</DD>
844
</DL>
845
<HR>
846
 
847
<A NAME="translate(float, float)"><!-- --></A><H3>
848
translate</H3>
849
<PRE>
850
public <A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A> <B>translate</B>(float&nbsp;x,
851
                         float&nbsp;y)</PRE>
852
<DL>
853
<DD>Postmultiplies this matrix by a translation matrix. Postmultiplication is also used by OpenGL ES' 1.x
854
 glTranslate/glRotate/glScale.
855
<P>
856
<DD><DL>
857
</DL>
858
</DD>
859
<DD><DL>
860
<DT><B>Parameters:</B><DD><CODE>x</CODE> - The x-component of the translation vector.<DD><CODE>y</CODE> - The y-component of the translation vector.
861
<DT><B>Returns:</B><DD>This matrix for the purpose of chaining.</DL>
862
</DD>
863
</DL>
864
<HR>
865
 
866
<A NAME="translate(com.badlogic.gdx.math.Vector2)"><!-- --></A><H3>
867
translate</H3>
868
<PRE>
869
public <A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A> <B>translate</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;translation)</PRE>
870
<DL>
871
<DD>Postmultiplies this matrix by a translation matrix. Postmultiplication is also used by OpenGL ES' 1.x
872
 glTranslate/glRotate/glScale.
873
<P>
874
<DD><DL>
875
</DL>
876
</DD>
877
<DD><DL>
878
<DT><B>Parameters:</B><DD><CODE>translation</CODE> - The translation vector.
879
<DT><B>Returns:</B><DD>This matrix for the purpose of chaining.</DL>
880
</DD>
881
</DL>
882
<HR>
883
 
884
<A NAME="rotate(float)"><!-- --></A><H3>
885
rotate</H3>
886
<PRE>
887
public <A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A> <B>rotate</B>(float&nbsp;angle)</PRE>
888
<DL>
889
<DD>Postmultiplies this matrix with a (counter-clockwise) rotation matrix. Postmultiplication is also used by OpenGL ES' 1.x
890
 glTranslate/glRotate/glScale.
891
<P>
892
<DD><DL>
893
</DL>
894
</DD>
895
<DD><DL>
896
<DT><B>Parameters:</B><DD><CODE>angle</CODE> - The angle in degrees
897
<DT><B>Returns:</B><DD>This matrix for the purpose of chaining.</DL>
898
</DD>
899
</DL>
900
<HR>
901
 
902
<A NAME="scale(float, float)"><!-- --></A><H3>
903
scale</H3>
904
<PRE>
905
public <A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A> <B>scale</B>(float&nbsp;scaleX,
906
                     float&nbsp;scaleY)</PRE>
907
<DL>
908
<DD>Postmultiplies this matrix with a scale matrix. Postmultiplication is also used by OpenGL ES' 1.x
909
 glTranslate/glRotate/glScale.
910
<P>
911
<DD><DL>
912
</DL>
913
</DD>
914
<DD><DL>
915
<DT><B>Parameters:</B><DD><CODE>scaleX</CODE> - The scale in the x-axis.<DD><CODE>scaleY</CODE> - The scale in the y-axis.
916
<DT><B>Returns:</B><DD>This matrix for the purpose of chaining.</DL>
917
</DD>
918
</DL>
919
<HR>
920
 
921
<A NAME="scale(com.badlogic.gdx.math.Vector2)"><!-- --></A><H3>
922
scale</H3>
923
<PRE>
924
public <A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A> <B>scale</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;scale)</PRE>
925
<DL>
926
<DD>Postmultiplies this matrix with a scale matrix. Postmultiplication is also used by OpenGL ES' 1.x
927
 glTranslate/glRotate/glScale.
928
<P>
929
<DD><DL>
930
</DL>
931
</DD>
932
<DD><DL>
933
<DT><B>Parameters:</B><DD><CODE>scale</CODE> - The vector to scale the matrix by.
934
<DT><B>Returns:</B><DD>This matrix for the purpose of chaining.</DL>
935
</DD>
936
</DL>
937
<HR>
938
 
939
<A NAME="getValues()"><!-- --></A><H3>
940
getValues</H3>
941
<PRE>
942
public float[] <B>getValues</B>()</PRE>
943
<DL>
944
<DD>Get the values in this matrix.
945
<P>
946
<DD><DL>
947
</DL>
948
</DD>
949
<DD><DL>
950
 
951
<DT><B>Returns:</B><DD>The float values that make up this matrix in column-major order.</DL>
952
</DD>
953
</DL>
954
<HR>
955
 
956
<A NAME="scl(float)"><!-- --></A><H3>
957
scl</H3>
958
<PRE>
959
public <A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A> <B>scl</B>(float&nbsp;scale)</PRE>
960
<DL>
961
<DD>Scale the matrix in the both the x and y components by the scalar value.
962
<P>
963
<DD><DL>
964
</DL>
965
</DD>
966
<DD><DL>
967
<DT><B>Parameters:</B><DD><CODE>scale</CODE> - The single value that will be used to scale both the x and y components.
968
<DT><B>Returns:</B><DD>This matrix for the purpose of chaining methods together.</DL>
969
</DD>
970
</DL>
971
<HR>
972
 
973
<A NAME="scl(com.badlogic.gdx.math.Vector2)"><!-- --></A><H3>
974
scl</H3>
975
<PRE>
976
public <A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A> <B>scl</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;scale)</PRE>
977
<DL>
978
<DD>Scale this matrix using the x and y components of the vector but leave the rest of the matrix alone.
979
<P>
980
<DD><DL>
981
</DL>
982
</DD>
983
<DD><DL>
984
<DT><B>Parameters:</B><DD><CODE>scale</CODE> - The <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math"><CODE>Vector3</CODE></A> to use to scale this matrix.
985
<DT><B>Returns:</B><DD>This matrix for the purpose of chaining methods together.</DL>
986
</DD>
987
</DL>
988
<HR>
989
 
990
<A NAME="scl(com.badlogic.gdx.math.Vector3)"><!-- --></A><H3>
991
scl</H3>
992
<PRE>
993
public <A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A> <B>scl</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</A>&nbsp;scale)</PRE>
994
<DL>
995
<DD>Scale this matrix using the x and y components of the vector but leave the rest of the matrix alone.
996
<P>
997
<DD><DL>
998
</DL>
999
</DD>
1000
<DD><DL>
1001
<DT><B>Parameters:</B><DD><CODE>scale</CODE> - The <A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math"><CODE>Vector3</CODE></A> to use to scale this matrix. The z component will be ignored.
1002
<DT><B>Returns:</B><DD>This matrix for the purpose of chaining methods together.</DL>
1003
</DD>
1004
</DL>
1005
<HR>
1006
 
1007
<A NAME="transpose()"><!-- --></A><H3>
1008
transpose</H3>
1009
<PRE>
1010
public <A HREF="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</A> <B>transpose</B>()</PRE>
1011
<DL>
1012
<DD>Transposes the current matrix.
1013
<P>
1014
<DD><DL>
1015
</DL>
1016
</DD>
1017
<DD><DL>
1018
 
1019
<DT><B>Returns:</B><DD>This matrix for the purpose of chaining methods together.</DL>
1020
</DD>
1021
</DL>
1022
<!-- ========= END OF CLASS DATA ========= -->
1023
<HR>
1024
 
1025
 
1026
<!-- ======= START OF BOTTOM NAVBAR ====== -->
1027
<A NAME="navbar_bottom"><!-- --></A>
1028
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
1029
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
1030
<TR>
1031
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
1032
<A NAME="navbar_bottom_firstrow"><!-- --></A>
1033
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
1034
  <TR ALIGN="center" VALIGN="top">
1035
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
1036
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
1037
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
1038
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Matrix3.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
1039
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
1040
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
1041
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
1042
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
1043
  </TR>
1044
</TABLE>
1045
</TD>
1046
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
1047
libgdx API</EM>
1048
</TD>
1049
</TR>
1050
 
1051
<TR>
1052
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1053
&nbsp;<A HREF="../../../../com/badlogic/gdx/math/MathUtils.html" title="class in com.badlogic.gdx.math"><B>PREV CLASS</B></A>&nbsp;
1054
&nbsp;<A HREF="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math"><B>NEXT CLASS</B></A></FONT></TD>
1055
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1056
  <A HREF="../../../../index.html?com/badlogic/gdx/math/Matrix3.html" target="_top"><B>FRAMES</B></A>  &nbsp;
1057
&nbsp;<A HREF="Matrix3.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
1058
&nbsp;<SCRIPT type="text/javascript">
1059
  <!--
1060
  if(window==top) {
1061
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
1062
  }
1063
  //-->
1064
</SCRIPT>
1065
<NOSCRIPT>
1066
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
1067
</NOSCRIPT>
1068
 
1069
 
1070
</FONT></TD>
1071
</TR>
1072
<TR>
1073
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1074
  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>
1075
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1076
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>
1077
</TR>
1078
</TABLE>
1079
<A NAME="skip-navbar_bottom"></A>
1080
<!-- ======== END OF BOTTOM NAVBAR ======= -->
1081
 
1082
<HR>
1083
 
1084
                                <div style="font-size:9pt"><i>
1085
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
1086
                                </i></div>
1087
 
1088
</BODY>
1089
</HTML>