<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_17) on Sun Nov 03 15:35:42 CET 2013 -->
<title>Matrix3 (libgdx API)
</title>
<meta name="date" content="2013-11-03">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Matrix3 (libgdx API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.
</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview
</a></li>
<li><a href="package-summary.html">Package
</a></li>
<li class="navBarCell1Rev">Class
</li>
<li><a href="class-use/Matrix3.html">Use
</a></li>
<li><a href="package-tree.html">Tree
</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated
</a></li>
<li><a href="../../../../index-all.html">Index
</a></li>
<li><a href="../../../../help-doc.html">Help
</a></li>
</ul>
<div class="aboutLanguage"><em>
libgdx API
<style>
body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt }
pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif }
h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%; font-weight:bold }
.TableHeadingColor { background:#EEEEFF; }
a { text-decoration:none }
a:hover { text-decoration:underline }
a:link, a:visited { color:blue }
table { border:0px }
.TableRowColor td:first-child { border-left:1px solid black }
.TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black }
hr { border:0px; border-bottom:1px solid #333366; }
</style>
</em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../com/badlogic/gdx/math/MathUtils.html" title="class in com.badlogic.gdx.math"><span class="strong">Prev Class
</span></a></li>
<li><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math"><span class="strong">Next Class
</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/badlogic/gdx/math/Matrix3.html" target="_top">Frames
</a></li>
<li><a href="Matrix3.html" target="_top">No Frames
</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes
</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:
</li>
<li>Nested
|
</li>
<li><a href="#field_summary">Field
</a> |
</li>
<li><a href="#constructor_summary">Constr
</a> |
</li>
<li><a href="#method_summary">Method
</a></li>
</ul>
<ul class="subNavList">
<li>Detail:
</li>
<li><a href="#field_detail">Field
</a> |
</li>
<li><a href="#constructor_detail">Constr
</a> |
</li>
<li><a href="#method_detail">Method
</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.badlogic.gdx.math
</div>
<h2 title="Class Matrix3" class="title">Class Matrix3
</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object
</li>
<li>
<ul class="inheritance">
<li>com.badlogic.gdx.math.Matrix3
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:
</dt>
<dd>java.io.Serializable
</dd>
</dl>
<hr>
<br>
<pre>public class
<span class="strong">Matrix3
</span>
extends java.lang.Object
implements java.io.Serializable
</pre>
<div class="block">A 3x3
<a href="http://en.wikipedia.org/wiki/Row-major_order#Column-major_order">column major
</a> matrix; useful for 2D transforms.
</div>
<dl><dt><span class="strong">Author:
</span></dt>
<dd>mzechner
</dd>
<dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../serialized-form.html#com.badlogic.gdx.math.Matrix3">Serialized Form
</a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary
</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields
</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type
</th>
<th class="colLast" scope="col">Field and Description
</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#M00">M00
</a></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#M01">M01
</a></strong></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#M02">M02
</a></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#M10">M10
</a></strong></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#M11">M11
</a></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#M12">M12
</a></strong></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#M20">M20
</a></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#M21">M21
</a></strong></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#M22">M22
</a></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>float[]
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#val">val
</a></strong></code> </td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary
</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors
</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description
</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#Matrix3()">Matrix3
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#Matrix3(com.badlogic.gdx.math.Matrix3)">Matrix3
</a></strong>(
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> matrix)
</code> </td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary
</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods
</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type
</th>
<th class="colLast" scope="col">Method and Description
</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>float
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#det()">det
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>float[]
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#getValues()">getValues
</a></strong>()
</code>
<div class="block">Get the values in this matrix.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#idt()">idt
</a></strong>()
</code>
<div class="block">Sets this matrix to the identity matrix
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#inv()">inv
</a></strong>()
</code>
<div class="block">Inverts this matrix given that the determinant is != 0.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#mul(com.badlogic.gdx.math.Matrix3)">mul
</a></strong>(
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> m)
</code>
<div class="block">Postmultiplies this matrix with the provided matrix and stores the result in this matrix.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#rotate(float)">rotate
</a></strong>(float
degrees)
</code>
<div class="block">Postmultiplies this matrix with a (counter-clockwise) rotation matrix.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#scale(float, float)">scale
</a></strong>(float
scaleX,
float
scaleY)
</code>
<div class="block">Postmultiplies this matrix with a scale matrix.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#scale(com.badlogic.gdx.math.Vector2)">scale
</a></strong>(
<a href="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> scale)
</code>
<div class="block">Postmultiplies this matrix with a scale matrix.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#scl(float)">scl
</a></strong>(float
scale)
</code>
<div class="block">Scale the matrix in the both the x and y components by the scalar value.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#scl(com.badlogic.gdx.math.Vector2)">scl
</a></strong>(
<a href="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> scale)
</code>
<div class="block">Scale this matrix using the x and y components of the vector but leave the rest of the matrix alone.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#scl(com.badlogic.gdx.math.Vector3)">scl
</a></strong>(
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3
</a> scale)
</code>
<div class="block">Scale this matrix using the x and y components of the vector but leave the rest of the matrix alone.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#set(com.badlogic.gdx.math.Matrix3)">set
</a></strong>(
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> mat)
</code>
<div class="block">Copies the values from the provided matrix to this matrix.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#set(com.badlogic.gdx.math.Matrix4)">set
</a></strong>(
<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4
</a> mat)
</code>
<div class="block">Sets this 3x3 matrix to the top left 3x3 corner of the provided 4x4 matrix.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#setToRotation(float)">setToRotation
</a></strong>(float
degrees)
</code>
<div class="block">Sets this matrix to a rotation matrix that will rotate any vector in counter-clockwise direction around the z-axis.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#setToScaling(float, float)">setToScaling
</a></strong>(float
scaleX,
float
scaleY)
</code>
<div class="block">Sets this matrix to a scaling matrix.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#setToTranslation(float, float)">setToTranslation
</a></strong>(float
x,
float
y)
</code>
<div class="block">Sets this matrix to a translation matrix.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#setToTranslation(com.badlogic.gdx.math.Vector2)">setToTranslation
</a></strong>(
<a href="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> translation)
</code>
<div class="block">Sets this matrix to a translation matrix.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#toString()">toString
</a></strong>()
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#translate(float, float)">translate
</a></strong>(float
x,
float
y)
</code>
<div class="block">Postmultiplies this matrix by a translation matrix.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#translate(com.badlogic.gdx.math.Vector2)">translate
</a></strong>(
<a href="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> translation)
</code>
<div class="block">Postmultiplies this matrix by a translation matrix.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#transpose()">transpose
</a></strong>()
</code>
<div class="block">Transposes the current matrix.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#trn(float, float)">trn
</a></strong>(float
x,
float
y)
</code>
<div class="block">Adds a translational component to the matrix in the 3rd column.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#trn(com.badlogic.gdx.math.Vector2)">trn
</a></strong>(
<a href="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> vector)
</code>
<div class="block">Adds a translational component to the matrix in the 3rd column.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix3.html#trn(com.badlogic.gdx.math.Vector3)">trn
</a></strong>(
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3
</a> vector)
</code>
<div class="block">Adds a translational component to the matrix in the 3rd column.
</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class
java.lang.Object
</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail
</h3>
<a name="M00">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>M00
</h4>
<pre>public static final
int M00
</pre>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../constant-values.html#com.badlogic.gdx.math.Matrix3.M00">Constant Field Values
</a></dd></dl>
</li>
</ul>
<a name="M01">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>M01
</h4>
<pre>public static final
int M01
</pre>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../constant-values.html#com.badlogic.gdx.math.Matrix3.M01">Constant Field Values
</a></dd></dl>
</li>
</ul>
<a name="M02">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>M02
</h4>
<pre>public static final
int M02
</pre>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../constant-values.html#com.badlogic.gdx.math.Matrix3.M02">Constant Field Values
</a></dd></dl>
</li>
</ul>
<a name="M10">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>M10
</h4>
<pre>public static final
int M10
</pre>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../constant-values.html#com.badlogic.gdx.math.Matrix3.M10">Constant Field Values
</a></dd></dl>
</li>
</ul>
<a name="M11">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>M11
</h4>
<pre>public static final
int M11
</pre>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../constant-values.html#com.badlogic.gdx.math.Matrix3.M11">Constant Field Values
</a></dd></dl>
</li>
</ul>
<a name="M12">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>M12
</h4>
<pre>public static final
int M12
</pre>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../constant-values.html#com.badlogic.gdx.math.Matrix3.M12">Constant Field Values
</a></dd></dl>
</li>
</ul>
<a name="M20">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>M20
</h4>
<pre>public static final
int M20
</pre>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../constant-values.html#com.badlogic.gdx.math.Matrix3.M20">Constant Field Values
</a></dd></dl>
</li>
</ul>
<a name="M21">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>M21
</h4>
<pre>public static final
int M21
</pre>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../constant-values.html#com.badlogic.gdx.math.Matrix3.M21">Constant Field Values
</a></dd></dl>
</li>
</ul>
<a name="M22">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>M22
</h4>
<pre>public static final
int M22
</pre>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../constant-values.html#com.badlogic.gdx.math.Matrix3.M22">Constant Field Values
</a></dd></dl>
</li>
</ul>
<a name="val">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>val
</h4>
<pre>public
float[] val
</pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail
</h3>
<a name="Matrix3()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Matrix3
</h4>
<pre>public
Matrix3()
</pre>
</li>
</ul>
<a name="Matrix3(com.badlogic.gdx.math.Matrix3)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Matrix3
</h4>
<pre>public
Matrix3(
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> matrix)
</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail
</h3>
<a name="idt()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>idt
</h4>
<pre>public
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> idt()
</pre>
<div class="block">Sets this matrix to the identity matrix
</div>
<dl><dt><span class="strong">Returns:
</span></dt><dd>This matrix for the purpose of chaining operations.
</dd></dl>
</li>
</ul>
<a name="mul(com.badlogic.gdx.math.Matrix3)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mul
</h4>
<pre>public
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> mul(
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> m)
</pre>
<div class="block">Postmultiplies this matrix with the provided matrix and stores the result in this matrix. For example:
<pre>
A.mul(B) results in A := AB
</pre></div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>m
</code> - Matrix to multiply by.
</dd>
<dt><span class="strong">Returns:
</span></dt><dd>This matrix for the purpose of chaining operations together.
</dd></dl>
</li>
</ul>
<a name="setToRotation(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setToRotation
</h4>
<pre>public
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> setToRotation(float
degrees)
</pre>
<div class="block">Sets this matrix to a rotation matrix that will rotate any vector in counter-clockwise direction around the z-axis.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>degrees
</code> - the angle in degrees.
</dd>
<dt><span class="strong">Returns:
</span></dt><dd>This matrix for the purpose of chaining operations.
</dd></dl>
</li>
</ul>
<a name="setToTranslation(float, float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setToTranslation
</h4>
<pre>public
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> setToTranslation(float
x,
float
y)
</pre>
<div class="block">Sets this matrix to a translation matrix.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>x
</code> - the translation in x
</dd><dd><code>y
</code> - the translation in y
</dd>
<dt><span class="strong">Returns:
</span></dt><dd>This matrix for the purpose of chaining operations.
</dd></dl>
</li>
</ul>
<a name="setToTranslation(com.badlogic.gdx.math.Vector2)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setToTranslation
</h4>
<pre>public
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> setToTranslation(
<a href="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> translation)
</pre>
<div class="block">Sets this matrix to a translation matrix.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>translation
</code> - The translation vector.
</dd>
<dt><span class="strong">Returns:
</span></dt><dd>This matrix for the purpose of chaining operations.
</dd></dl>
</li>
</ul>
<a name="setToScaling(float, float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setToScaling
</h4>
<pre>public
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> setToScaling(float
scaleX,
float
scaleY)
</pre>
<div class="block">Sets this matrix to a scaling matrix.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>scaleX
</code> - the scale in x
</dd><dd><code>scaleY
</code> - the scale in y
</dd>
<dt><span class="strong">Returns:
</span></dt><dd>This matrix for the purpose of chaining operations.
</dd></dl>
</li>
</ul>
<a name="toString()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString
</h4>
<pre>public
java.lang.String
toString()
</pre>
<dl>
<dt><strong>Overrides:
</strong></dt>
<dd><code>toString
</code> in class
<code>java.lang.Object
</code></dd>
</dl>
</li>
</ul>
<a name="det()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>det
</h4>
<pre>public
float
det()
</pre>
<dl><dt><span class="strong">Returns:
</span></dt><dd>The determinant of this matrix
</dd></dl>
</li>
</ul>
<a name="inv()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>inv
</h4>
<pre>public
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> inv()
</pre>
<div class="block">Inverts this matrix given that the determinant is != 0.
</div>
<dl><dt><span class="strong">Returns:
</span></dt><dd>This matrix for the purpose of chaining operations.
</dd>
<dt><span class="strong">Throws:
</span></dt>
<dd><code><a href="../../../../com/badlogic/gdx/utils/GdxRuntimeException.html" title="class in com.badlogic.gdx.utils">GdxRuntimeException
</a></code> - if the matrix is singular (not invertible)
</dd></dl>
</li>
</ul>
<a name="set(com.badlogic.gdx.math.Matrix3)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set
</h4>
<pre>public
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> set(
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> mat)
</pre>
<div class="block">Copies the values from the provided matrix to this matrix.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>mat
</code> - The matrix to copy.
</dd>
<dt><span class="strong">Returns:
</span></dt><dd>This matrix for the purposes of chaining.
</dd></dl>
</li>
</ul>
<a name="set(com.badlogic.gdx.math.Matrix4)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set
</h4>
<pre>public
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> set(
<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4
</a> mat)
</pre>
<div class="block">Sets this 3x3 matrix to the top left 3x3 corner of the provided 4x4 matrix.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>mat
</code> - The matrix whose top left corner will be copied. This matrix will not be modified.
</dd>
<dt><span class="strong">Returns:
</span></dt><dd>This matrix for the purpose of chaining operations.
</dd></dl>
</li>
</ul>
<a name="trn(com.badlogic.gdx.math.Vector2)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>trn
</h4>
<pre>public
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> trn(
<a href="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> vector)
</pre>
<div class="block">Adds a translational component to the matrix in the 3rd column. The other columns are untouched.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>vector
</code> - The translation vector.
</dd>
<dt><span class="strong">Returns:
</span></dt><dd>This matrix for the purpose of chaining.
</dd></dl>
</li>
</ul>
<a name="trn(float, float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>trn
</h4>
<pre>public
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> trn(float
x,
float
y)
</pre>
<div class="block">Adds a translational component to the matrix in the 3rd column. The other columns are untouched.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>x
</code> - The x-component of the translation vector.
</dd><dd><code>y
</code> - The y-component of the translation vector.
</dd>
<dt><span class="strong">Returns:
</span></dt><dd>This matrix for the purpose of chaining.
</dd></dl>
</li>
</ul>
<a name="trn(com.badlogic.gdx.math.Vector3)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>trn
</h4>
<pre>public
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> trn(
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3
</a> vector)
</pre>
<div class="block">Adds a translational component to the matrix in the 3rd column. The other columns are untouched.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>vector
</code> - The translation vector. (The z-component of the vector is ignored because this is a 3x3 matrix)
</dd>
<dt><span class="strong">Returns:
</span></dt><dd>This matrix for the purpose of chaining.
</dd></dl>
</li>
</ul>
<a name="translate(float, float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>translate
</h4>
<pre>public
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> translate(float
x,
float
y)
</pre>
<div class="block">Postmultiplies this matrix by a translation matrix. Postmultiplication is also used by OpenGL ES' 1.x
glTranslate/glRotate/glScale.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>x
</code> - The x-component of the translation vector.
</dd><dd><code>y
</code> - The y-component of the translation vector.
</dd>
<dt><span class="strong">Returns:
</span></dt><dd>This matrix for the purpose of chaining.
</dd></dl>
</li>
</ul>
<a name="translate(com.badlogic.gdx.math.Vector2)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>translate
</h4>
<pre>public
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> translate(
<a href="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> translation)
</pre>
<div class="block">Postmultiplies this matrix by a translation matrix. Postmultiplication is also used by OpenGL ES' 1.x
glTranslate/glRotate/glScale.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>translation
</code> - The translation vector.
</dd>
<dt><span class="strong">Returns:
</span></dt><dd>This matrix for the purpose of chaining.
</dd></dl>
</li>
</ul>
<a name="rotate(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rotate
</h4>
<pre>public
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> rotate(float
degrees)
</pre>
<div class="block">Postmultiplies this matrix with a (counter-clockwise) rotation matrix. Postmultiplication is also used by OpenGL ES' 1.x
glTranslate/glRotate/glScale.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>degrees
</code> - The angle in degrees
</dd>
<dt><span class="strong">Returns:
</span></dt><dd>This matrix for the purpose of chaining.
</dd></dl>
</li>
</ul>
<a name="scale(float, float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>scale
</h4>
<pre>public
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> scale(float
scaleX,
float
scaleY)
</pre>
<div class="block">Postmultiplies this matrix with a scale matrix. Postmultiplication is also used by OpenGL ES' 1.x
glTranslate/glRotate/glScale.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>scaleX
</code> - The scale in the x-axis.
</dd><dd><code>scaleY
</code> - The scale in the y-axis.
</dd>
<dt><span class="strong">Returns:
</span></dt><dd>This matrix for the purpose of chaining.
</dd></dl>
</li>
</ul>
<a name="scale(com.badlogic.gdx.math.Vector2)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>scale
</h4>
<pre>public
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> scale(
<a href="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> scale)
</pre>
<div class="block">Postmultiplies this matrix with a scale matrix. Postmultiplication is also used by OpenGL ES' 1.x
glTranslate/glRotate/glScale.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>scale
</code> - The vector to scale the matrix by.
</dd>
<dt><span class="strong">Returns:
</span></dt><dd>This matrix for the purpose of chaining.
</dd></dl>
</li>
</ul>
<a name="getValues()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValues
</h4>
<pre>public
float[]
getValues()
</pre>
<div class="block">Get the values in this matrix.
</div>
<dl><dt><span class="strong">Returns:
</span></dt><dd>The float values that make up this matrix in column-major order.
</dd></dl>
</li>
</ul>
<a name="scl(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>scl
</h4>
<pre>public
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> scl(float
scale)
</pre>
<div class="block">Scale the matrix in the both the x and y components by the scalar value.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>scale
</code> - The single value that will be used to scale both the x and y components.
</dd>
<dt><span class="strong">Returns:
</span></dt><dd>This matrix for the purpose of chaining methods together.
</dd></dl>
</li>
</ul>
<a name="scl(com.badlogic.gdx.math.Vector2)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>scl
</h4>
<pre>public
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> scl(
<a href="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> scale)
</pre>
<div class="block">Scale this matrix using the x and y components of the vector but leave the rest of the matrix alone.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><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.
</dd>
<dt><span class="strong">Returns:
</span></dt><dd>This matrix for the purpose of chaining methods together.
</dd></dl>
</li>
</ul>
<a name="scl(com.badlogic.gdx.math.Vector3)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>scl
</h4>
<pre>public
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> scl(
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3
</a> scale)
</pre>
<div class="block">Scale this matrix using the x and y components of the vector but leave the rest of the matrix alone.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><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.
</dd>
<dt><span class="strong">Returns:
</span></dt><dd>This matrix for the purpose of chaining methods together.
</dd></dl>
</li>
</ul>
<a name="transpose()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>transpose
</h4>
<pre>public
<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3
</a> transpose()
</pre>
<div class="block">Transposes the current matrix.
</div>
<dl><dt><span class="strong">Returns:
</span></dt><dd>This matrix for the purpose of chaining methods together.
</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview
</a></li>
<li><a href="package-summary.html">Package
</a></li>
<li class="navBarCell1Rev">Class
</li>
<li><a href="class-use/Matrix3.html">Use
</a></li>
<li><a href="package-tree.html">Tree
</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated
</a></li>
<li><a href="../../../../index-all.html">Index
</a></li>
<li><a href="../../../../help-doc.html">Help
</a></li>
</ul>
<div class="aboutLanguage"><em>libgdx API
</em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../com/badlogic/gdx/math/MathUtils.html" title="class in com.badlogic.gdx.math"><span class="strong">Prev Class
</span></a></li>
<li><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math"><span class="strong">Next Class
</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/badlogic/gdx/math/Matrix3.html" target="_top">Frames
</a></li>
<li><a href="Matrix3.html" target="_top">No Frames
</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes
</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:
</li>
<li>Nested
|
</li>
<li><a href="#field_summary">Field
</a> |
</li>
<li><a href="#constructor_summary">Constr
</a> |
</li>
<li><a href="#method_summary">Method
</a></li>
</ul>
<ul class="subNavList">
<li>Detail:
</li>
<li><a href="#field_detail">Field
</a> |
</li>
<li><a href="#constructor_detail">Constr
</a> |
</li>
<li><a href="#method_detail">Method
</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>
<div style="font-size:9pt"><i>
Copyright
© 2010-2013 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
</i></div>
</small></p>
</body>
</html>