Subversion Repositories AndroidProjects

Rev

Blame | Last modification | View Log | RSS feed

<!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>Matrix4 (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="Matrix4 (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/Matrix4.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/Matrix3.html" title="class in com.badlogic.gdx.math"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../com/badlogic/gdx/math/Path.html" title="interface 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/Matrix4.html" target="_top">Frames</a></li>
<li><a href="Matrix4.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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</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 Matrix4" class="title">Class Matrix4</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>com.badlogic.gdx.math.Matrix4</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">Matrix4</span>
extends java.lang.Object
implements java.io.Serializable</pre>
<div class="block">Encapsulates a <a href="http://en.wikipedia.org/wiki/Row-major_order#Column-major_order">column major</a> 4 by 4 matrix.
 Like the <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math"><code>Vector3</code></a> class it allows the chaining of methods by returning a reference to itself. For example:

 <pre>
 Matrix4 mat = new Matrix4().trn(position).mul(camera.combined);
 </pre></div>
<dl><dt><span class="strong">Author:</span></dt>
  <dd>badlogicgames@gmail.com</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../serialized-form.html#com.badlogic.gdx.math.Matrix4">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">&nbsp;</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/Matrix4.html#M00">M00</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M01">M01</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M02">M02</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M03">M03</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M10">M10</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M11">M11</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M12">M12</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M13">M13</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M20">M20</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M21">M21</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M22">M22</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M23">M23</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M30">M30</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M31">M31</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M32">M32</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M33">M33</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>float[]</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#tmp">tmp</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>float[]</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#val">val</a></strong></code>&nbsp;</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">&nbsp;</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/Matrix4.html#Matrix4()">Matrix4</a></strong>()</code>
<div class="block">Constructs an identity matrix</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#Matrix4(float[])">Matrix4</a></strong>(float[]&nbsp;values)</code>
<div class="block">Constructs a matrix from the given float array.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#Matrix4(com.badlogic.gdx.math.Matrix4)">Matrix4</a></strong>(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;matrix)</code>
<div class="block">Constructs a matrix from the given matrix.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#Matrix4(com.badlogic.gdx.math.Quaternion)">Matrix4</a></strong>(<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a>&nbsp;quaternion)</code>
<div class="block">Constructs a rotation matrix from the given <a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math"><code>Quaternion</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#Matrix4(com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Quaternion, com.badlogic.gdx.math.Vector3)">Matrix4</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;position,
       <a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a>&nbsp;rotation,
       <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;scale)</code>
<div class="block">Construct a matrix from the given translation, rotation and scale.</div>
</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">&nbsp;</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><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#cpy()">cpy</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#det()">det</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static float</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#det(float[])">det</a></strong>(float[]&nbsp;values)</code>
<div class="block">Computes the determinante of the given matrix.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#getRotation(com.badlogic.gdx.math.Quaternion)">getRotation</a></strong>(<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a>&nbsp;rotation)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#getScale(com.badlogic.gdx.math.Vector3)">getScale</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;scale)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#getTranslation(com.badlogic.gdx.math.Vector3)">getTranslation</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;position)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>float[]</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#getValues()">getValues</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#idt()">idt</a></strong>()</code>
<div class="block">Sets the matrix to an identity matrix.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#inv()">inv</a></strong>()</code>
<div class="block">Inverts the matrix.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#inv(float[])">inv</a></strong>(float[]&nbsp;values)</code>
<div class="block">Computes the inverse of the given matrix.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#lerp(com.badlogic.gdx.math.Matrix4, float)">lerp</a></strong>(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;matrix,
    float&nbsp;alpha)</code>
<div class="block">Linearly interpolates between this matrix and the given matrix mixing by alpha</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#mul(float[], float[])">mul</a></strong>(float[]&nbsp;mata,
   float[]&nbsp;matb)</code>
<div class="block">Multiplies the matrix mata with matrix matb, storing the result in mata.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#mul(com.badlogic.gdx.math.Matrix4)">mul</a></strong>(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;matrix)</code>
<div class="block">Postmultiplies this matrix with the given matrix, storing the result in this matrix.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#mulVec(float[], float[])">mulVec</a></strong>(float[]&nbsp;mat,
      float[]&nbsp;vec)</code>
<div class="block">Multiplies the vector with the given matrix.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#mulVec(float[], float[], int, int, int)">mulVec</a></strong>(float[]&nbsp;mat,
      float[]&nbsp;vecs,
      int&nbsp;offset,
      int&nbsp;numVecs,
      int&nbsp;stride)</code>
<div class="block">Multiplies the vectors with the given matrix.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#prj(float[], float[])">prj</a></strong>(float[]&nbsp;mat,
   float[]&nbsp;vec)</code>
<div class="block">Multiplies the vector with the given matrix, performing a division by w.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#prj(float[], float[], int, int, int)">prj</a></strong>(float[]&nbsp;mat,
   float[]&nbsp;vecs,
   int&nbsp;offset,
   int&nbsp;numVecs,
   int&nbsp;stride)</code>
<div class="block">Multiplies the vectors with the given matrix, , performing a division by w.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#rot(float[], float[])">rot</a></strong>(float[]&nbsp;mat,
   float[]&nbsp;vec)</code>
<div class="block">Multiplies the vector with the top most 3x3 sub-matrix of the given matrix.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#rot(float[], float[], int, int, int)">rot</a></strong>(float[]&nbsp;mat,
   float[]&nbsp;vecs,
   int&nbsp;offset,
   int&nbsp;numVecs,
   int&nbsp;stride)</code>
<div class="block">Multiplies the vectors with the top most 3x3 sub-matrix of the given matrix.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#rotate(float, float, float, float)">rotate</a></strong>(float&nbsp;axisX,
      float&nbsp;axisY,
      float&nbsp;axisZ,
      float&nbsp;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/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#rotate(com.badlogic.gdx.math.Quaternion)">rotate</a></strong>(<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a>&nbsp;rotation)</code>
<div class="block">Postmultiplies this matrix with a (counter-clockwise) rotation matrix.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#rotate(com.badlogic.gdx.math.Vector3, float)">rotate</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;axis,
      float&nbsp;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/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#rotate(com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3)">rotate</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;v1,
      <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;v2)</code>
<div class="block">Postmultiplies this matrix by the rotation between two vectors.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#scale(float, float, float)">scale</a></strong>(float&nbsp;scaleX,
     float&nbsp;scaleY,
     float&nbsp;scaleZ)</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/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#scl(float)">scl</a></strong>(float&nbsp;scale)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#scl(float, float, float)">scl</a></strong>(float&nbsp;x,
   float&nbsp;y,
   float&nbsp;z)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.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>&nbsp;scale)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#set(float[])">set</a></strong>(float[]&nbsp;values)</code>
<div class="block">Sets the matrix to the given matrix as a float array.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#set(float, float, float, float)">set</a></strong>(float&nbsp;x,
   float&nbsp;y,
   float&nbsp;z,
   float&nbsp;w)</code>
<div class="block">Sets the matrix to a rotation matrix representing the quaternion.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.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>&nbsp;mat)</code>
<div class="block">Sets this matrix to the given 3x3 matrix.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.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>&nbsp;matrix)</code>
<div class="block">Sets the matrix to the given matrix.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#set(com.badlogic.gdx.math.Quaternion)">set</a></strong>(<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a>&nbsp;quaternion)</code>
<div class="block">Sets the matrix to a rotation matrix representing the quaternion.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#set(com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Quaternion, com.badlogic.gdx.math.Vector3)">set</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;position,
   <a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a>&nbsp;orientation,
   <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;scale)</code>
<div class="block">Set this matrix to the specified translation, rotation and scale.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#set(com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3)">set</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;xAxis,
   <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;yAxis,
   <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;zAxis,
   <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;pos)</code>
<div class="block">Sets the four columns of the matrix which correspond to the x-, y- and z-axis of the vector space this matrix creates as
 well as the 4th column representing the translation of any point that is multiplied by this matrix.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setFromEulerAngles(float, float, float)">setFromEulerAngles</a></strong>(float&nbsp;yaw,
                  float&nbsp;pitch,
                  float&nbsp;roll)</code>
<div class="block">Sets this matrix to a rotation matrix from the given euler angles.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToLookAt(com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3)">setToLookAt</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;direction,
           <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;up)</code>
<div class="block">Sets the matrix to a look at matrix with a direction and an up vector.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToLookAt(com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3)">setToLookAt</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;position,
           <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;target,
           <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;up)</code>
<div class="block">Sets this matrix to a look at matrix with the given position, target and up vector.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToOrtho(float, float, float, float, float, float)">setToOrtho</a></strong>(float&nbsp;left,
          float&nbsp;right,
          float&nbsp;bottom,
          float&nbsp;top,
          float&nbsp;near,
          float&nbsp;far)</code>
<div class="block">Sets the matrix to an orthographic projection like glOrtho (http://www.opengl.org/sdk/docs/man/xhtml/glOrtho.xml) following
 the OpenGL equivalent</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToOrtho2D(float, float, float, float)">setToOrtho2D</a></strong>(float&nbsp;x,
            float&nbsp;y,
            float&nbsp;width,
            float&nbsp;height)</code>
<div class="block">Sets this matrix to an orthographic projection matrix with the origin at (x,y) extending by width and height.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToOrtho2D(float, float, float, float, float, float)">setToOrtho2D</a></strong>(float&nbsp;x,
            float&nbsp;y,
            float&nbsp;width,
            float&nbsp;height,
            float&nbsp;near,
            float&nbsp;far)</code>
<div class="block">Sets this matrix to an orthographic projection matrix with the origin at (x,y) extending by width and height, having a near
 and far plane.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToProjection(float, float, float, float)">setToProjection</a></strong>(float&nbsp;near,
               float&nbsp;far,
               float&nbsp;fov,
               float&nbsp;aspectRatio)</code>
<div class="block">Sets the matrix to a projection matrix with a near- and far plane, a field of view in degrees and an aspect ratio.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToRotation(float, float, float, float)">setToRotation</a></strong>(float&nbsp;axisX,
             float&nbsp;axisY,
             float&nbsp;axisZ,
             float&nbsp;degrees)</code>
<div class="block">Sets the matrix to a rotation matrix around the given axis.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToRotation(float, float, float, float, float, float)">setToRotation</a></strong>(float&nbsp;x1,
             float&nbsp;y1,
             float&nbsp;z1,
             float&nbsp;x2,
             float&nbsp;y2,
             float&nbsp;z2)</code>
<div class="block">Set the matrix to a rotation matrix between two vectors.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToRotation(com.badlogic.gdx.math.Vector3, float)">setToRotation</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;axis,
             float&nbsp;degrees)</code>
<div class="block">Sets the matrix to a rotation matrix around the given axis.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToRotation(com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3)">setToRotation</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;v1,
             <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;v2)</code>
<div class="block">Set the matrix to a rotation matrix between two vectors.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToScaling(float, float, float)">setToScaling</a></strong>(float&nbsp;x,
            float&nbsp;y,
            float&nbsp;z)</code>
<div class="block">Sets this matrix to a scaling matrix</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToScaling(com.badlogic.gdx.math.Vector3)">setToScaling</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;vector)</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/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToTranslation(float, float, float)">setToTranslation</a></strong>(float&nbsp;x,
                float&nbsp;y,
                float&nbsp;z)</code>
<div class="block">Sets this matrix to a translation matrix, overwriting it first by an identity matrix and then setting the 4th column to the
 translation vector.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToTranslation(com.badlogic.gdx.math.Vector3)">setToTranslation</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;vector)</code>
<div class="block">Sets this matrix to a translation matrix, overwriting it first by an identity matrix and then setting the 4th column to the
 translation vector.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToTranslationAndScaling(float, float, float, float, float, float)">setToTranslationAndScaling</a></strong>(float&nbsp;translationX,
                          float&nbsp;translationY,
                          float&nbsp;translationZ,
                          float&nbsp;scalingX,
                          float&nbsp;scalingY,
                          float&nbsp;scalingZ)</code>
<div class="block">Sets this matrix to a translation and scaling matrix by first overwritting it with an identity and then setting the
 translation vector in the 4th column and the scaling vector in the diagonal.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToTranslationAndScaling(com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3)">setToTranslationAndScaling</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;translation,
                          <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;scaling)</code>
<div class="block">Sets this matrix to a translation and scaling matrix by first overwritting it with an identity and then setting the
 translation vector in the 4th column and the scaling vector in the diagonal.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToWorld(com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3)">setToWorld</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;position,
          <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;forward,
          <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;up)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setTranslation(com.badlogic.gdx.math.Vector3)">setTranslation</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;vector)</code>
<div class="block">Sets the 4th column to the translation vector.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#toNormalMatrix()">toNormalMatrix</a></strong>()</code>
<div class="block">removes the translational part and transposes the matrix.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#toString()">toString</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#tra()">tra</a></strong>()</code>
<div class="block">Transposes the matrix.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#translate(float, float, float)">translate</a></strong>(float&nbsp;x,
         float&nbsp;y,
         float&nbsp;z)</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/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#translate(com.badlogic.gdx.math.Vector3)">translate</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;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/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.html#trn(float, float, float)">trn</a></strong>(float&nbsp;x,
   float&nbsp;y,
   float&nbsp;z)</code>
<div class="block">Adds a translational component to the matrix in the 4th column.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Matrix4.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>&nbsp;vector)</code>
<div class="block">Adds a translational component to the matrix in the 4th 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&nbsp;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&nbsp;int M00</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#com.badlogic.gdx.math.Matrix4.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&nbsp;int M01</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#com.badlogic.gdx.math.Matrix4.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&nbsp;int M02</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#com.badlogic.gdx.math.Matrix4.M02">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="M03">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>M03</h4>
<pre>public static final&nbsp;int M03</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#com.badlogic.gdx.math.Matrix4.M03">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&nbsp;int M10</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#com.badlogic.gdx.math.Matrix4.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&nbsp;int M11</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#com.badlogic.gdx.math.Matrix4.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&nbsp;int M12</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#com.badlogic.gdx.math.Matrix4.M12">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="M13">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>M13</h4>
<pre>public static final&nbsp;int M13</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#com.badlogic.gdx.math.Matrix4.M13">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&nbsp;int M20</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#com.badlogic.gdx.math.Matrix4.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&nbsp;int M21</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#com.badlogic.gdx.math.Matrix4.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&nbsp;int M22</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#com.badlogic.gdx.math.Matrix4.M22">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="M23">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>M23</h4>
<pre>public static final&nbsp;int M23</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#com.badlogic.gdx.math.Matrix4.M23">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="M30">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>M30</h4>
<pre>public static final&nbsp;int M30</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#com.badlogic.gdx.math.Matrix4.M30">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="M31">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>M31</h4>
<pre>public static final&nbsp;int M31</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#com.badlogic.gdx.math.Matrix4.M31">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="M32">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>M32</h4>
<pre>public static final&nbsp;int M32</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#com.badlogic.gdx.math.Matrix4.M32">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="M33">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>M33</h4>
<pre>public static final&nbsp;int M33</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#com.badlogic.gdx.math.Matrix4.M33">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="tmp">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>tmp</h4>
<pre>public final&nbsp;float[] tmp</pre>
</li>
</ul>
<a name="val">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>val</h4>
<pre>public final&nbsp;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="Matrix4()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Matrix4</h4>
<pre>public&nbsp;Matrix4()</pre>
<div class="block">Constructs an identity matrix</div>
</li>
</ul>
<a name="Matrix4(com.badlogic.gdx.math.Matrix4)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Matrix4</h4>
<pre>public&nbsp;Matrix4(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;matrix)</pre>
<div class="block">Constructs a matrix from the given matrix.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>matrix</code> - The matrix to copy. (This matrix is not modified)</dd></dl>
</li>
</ul>
<a name="Matrix4(float[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Matrix4</h4>
<pre>public&nbsp;Matrix4(float[]&nbsp;values)</pre>
<div class="block">Constructs a matrix from the given float array. The array must have at least 16 elements; the first 16 will be copied.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>values</code> - The float array to copy. Remember that this matrix is in
 <a href="http://en.wikipedia.org/wiki/Row-major_order#Column-major_order">column major</a> order.
 (The float array is not modified.)</dd></dl>
</li>
</ul>
<a name="Matrix4(com.badlogic.gdx.math.Quaternion)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Matrix4</h4>
<pre>public&nbsp;Matrix4(<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a>&nbsp;quaternion)</pre>
<div class="block">Constructs a rotation matrix from the given <a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math"><code>Quaternion</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>quaternion</code> - The quaternion to be copied. (The quaternion is not modified)</dd></dl>
</li>
</ul>
<a name="Matrix4(com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Quaternion, com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Matrix4</h4>
<pre>public&nbsp;Matrix4(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;position,
       <a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a>&nbsp;rotation,
       <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;scale)</pre>
<div class="block">Construct a matrix from the given translation, rotation and scale.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>position</code> - The translation</dd><dd><code>rotation</code> - The rotation, must be normalized</dd><dd><code>scale</code> - The scale</dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="set(com.badlogic.gdx.math.Matrix4)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;set(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;matrix)</pre>
<div class="block">Sets the matrix to the given matrix.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>matrix</code> - The matrix that is to be copied. (The given matrix is not modified)</dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix for the purpose of chaining methods together.</dd></dl>
</li>
</ul>
<a name="set(float[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;set(float[]&nbsp;values)</pre>
<div class="block">Sets the matrix to the given matrix as a float array. The float array must have at least 16 elements; the first 16 will be
 copied.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>values</code> - The matrix, in float form, that is to be copied. Remember that this matrix is in <a
          href="http://en.wikipedia.org/wiki/Row-major_order#Column-major_order">column major</a> order.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix for the purpose of chaining methods together.</dd></dl>
</li>
</ul>
<a name="set(com.badlogic.gdx.math.Quaternion)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;set(<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a>&nbsp;quaternion)</pre>
<div class="block">Sets the matrix to a rotation matrix representing the quaternion.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>quaternion</code> - The quaternion that is to be used to set 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="set(float, float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;set(float&nbsp;x,
          float&nbsp;y,
          float&nbsp;z,
          float&nbsp;w)</pre>
<div class="block">Sets the matrix to a rotation matrix representing the quaternion.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - The X component of the quaternion that is to be used to set this matrix.</dd><dd><code>y</code> - The Y component of the quaternion that is to be used to set this matrix.</dd><dd><code>z</code> - The Z component of the quaternion that is to be used to set this matrix.</dd><dd><code>w</code> - The W component of the quaternion that is to be used to set 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="set(com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Quaternion, com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;set(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;position,
          <a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a>&nbsp;orientation,
          <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;scale)</pre>
<div class="block">Set this matrix to the specified translation, rotation and scale.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>position</code> - The translation</dd><dd><code>orientation</code> - The rotation, must be normalized</dd><dd><code>scale</code> - The scale</dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix for chaining</dd></dl>
</li>
</ul>
<a name="set(com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;set(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;xAxis,
          <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;yAxis,
          <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;zAxis,
          <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;pos)</pre>
<div class="block">Sets the four columns of the matrix which correspond to the x-, y- and z-axis of the vector space this matrix creates as
 well as the 4th column representing the translation of any point that is multiplied by this matrix.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>xAxis</code> - The x-axis.</dd><dd><code>yAxis</code> - The y-axis.</dd><dd><code>zAxis</code> - The z-axis.</dd><dd><code>pos</code> - The translation vector.</dd></dl>
</li>
</ul>
<a name="cpy()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cpy</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;cpy()</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>a copy of this matrix</dd></dl>
</li>
</ul>
<a name="trn(com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>trn</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;trn(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;vector)</pre>
<div class="block">Adds a translational component to the matrix in the 4th column. The other columns are untouched.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>vector</code> - The translation vector to add to the current matrix. (This vector is not modified)</dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix for the purpose of chaining methods together.</dd></dl>
</li>
</ul>
<a name="trn(float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>trn</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;trn(float&nbsp;x,
          float&nbsp;y,
          float&nbsp;z)</pre>
<div class="block">Adds a translational component to the matrix in the 4th 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><dd><code>z</code> - The z-component of the translation vector.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix for the purpose of chaining methods together.</dd></dl>
</li>
</ul>
<a name="getValues()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValues</h4>
<pre>public&nbsp;float[]&nbsp;getValues()</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>the backing float array</dd></dl>
</li>
</ul>
<a name="mul(com.badlogic.gdx.math.Matrix4)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mul</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;mul(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;matrix)</pre>
<div class="block">Postmultiplies this matrix with the given matrix, storing 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>matrix</code> - The other 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="tra()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>tra</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;tra()</pre>
<div class="block">Transposes the matrix.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>This matrix for the purpose of chaining methods together.</dd></dl>
</li>
</ul>
<a name="idt()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>idt</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;idt()</pre>
<div class="block">Sets the matrix to an identity matrix.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>This matrix for the purpose of chaining methods together.</dd></dl>
</li>
</ul>
<a name="inv()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>inv</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;inv()</pre>
<div class="block">Inverts the matrix. Stores the result in this matrix.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>This matrix for the purpose of chaining methods together.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.RuntimeException</code> - if the matrix is singular (not invertible)</dd></dl>
</li>
</ul>
<a name="det()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>det</h4>
<pre>public&nbsp;float&nbsp;det()</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>The determinant of this matrix</dd></dl>
</li>
</ul>
<a name="setToProjection(float, float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setToProjection</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;setToProjection(float&nbsp;near,
                      float&nbsp;far,
                      float&nbsp;fov,
                      float&nbsp;aspectRatio)</pre>
<div class="block">Sets the matrix to a projection matrix with a near- and far plane, a field of view in degrees and an aspect ratio.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>near</code> - The near plane</dd><dd><code>far</code> - The far plane</dd><dd><code>fov</code> - The field of view in degrees</dd><dd><code>aspectRatio</code> - The "width over height" aspect ratio</dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix for the purpose of chaining methods together.</dd></dl>
</li>
</ul>
<a name="setToOrtho2D(float, float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setToOrtho2D</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;setToOrtho2D(float&nbsp;x,
                   float&nbsp;y,
                   float&nbsp;width,
                   float&nbsp;height)</pre>
<div class="block">Sets this matrix to an orthographic projection matrix with the origin at (x,y) extending by width and height. The near plane
 is set to 0, the far plane is set to 1.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - The x-coordinate of the origin</dd><dd><code>y</code> - The y-coordinate of the origin</dd><dd><code>width</code> - The width</dd><dd><code>height</code> - The height</dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix for the purpose of chaining methods together.</dd></dl>
</li>
</ul>
<a name="setToOrtho2D(float, float, float, float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setToOrtho2D</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;setToOrtho2D(float&nbsp;x,
                   float&nbsp;y,
                   float&nbsp;width,
                   float&nbsp;height,
                   float&nbsp;near,
                   float&nbsp;far)</pre>
<div class="block">Sets this matrix to an orthographic projection matrix with the origin at (x,y) extending by width and height, having a near
 and far plane.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - The x-coordinate of the origin</dd><dd><code>y</code> - The y-coordinate of the origin</dd><dd><code>width</code> - The width</dd><dd><code>height</code> - The height</dd><dd><code>near</code> - The near plane</dd><dd><code>far</code> - The far plane</dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix for the purpose of chaining methods together.</dd></dl>
</li>
</ul>
<a name="setToOrtho(float, float, float, float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setToOrtho</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;setToOrtho(float&nbsp;left,
                 float&nbsp;right,
                 float&nbsp;bottom,
                 float&nbsp;top,
                 float&nbsp;near,
                 float&nbsp;far)</pre>
<div class="block">Sets the matrix to an orthographic projection like glOrtho (http://www.opengl.org/sdk/docs/man/xhtml/glOrtho.xml) following
 the OpenGL equivalent</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>left</code> - The left clipping plane</dd><dd><code>right</code> - The right clipping plane</dd><dd><code>bottom</code> - The bottom clipping plane</dd><dd><code>top</code> - The top clipping plane</dd><dd><code>near</code> - The near clipping plane</dd><dd><code>far</code> - The far clipping plane</dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix for the purpose of chaining methods together.</dd></dl>
</li>
</ul>
<a name="setTranslation(com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTranslation</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;setTranslation(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;vector)</pre>
<div class="block">Sets the 4th column to the translation vector.</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 methods together.</dd></dl>
</li>
</ul>
<a name="setToTranslation(com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setToTranslation</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;setToTranslation(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;vector)</pre>
<div class="block">Sets this matrix to a translation matrix, overwriting it first by an identity matrix and then setting the 4th column to the
 translation vector.</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 methods together.</dd></dl>
</li>
</ul>
<a name="setToTranslation(float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setToTranslation</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;setToTranslation(float&nbsp;x,
                       float&nbsp;y,
                       float&nbsp;z)</pre>
<div class="block">Sets this matrix to a translation matrix, overwriting it first by an identity matrix and then setting the 4th column to the
 translation vector.</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><dd><code>z</code> - The z-component of the translation vector.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix for the purpose of chaining methods together.</dd></dl>
</li>
</ul>
<a name="setToTranslationAndScaling(com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setToTranslationAndScaling</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;setToTranslationAndScaling(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;translation,
                                 <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;scaling)</pre>
<div class="block">Sets this matrix to a translation and scaling matrix by first overwritting it with an identity and then setting the
 translation vector in the 4th column and the scaling vector in the diagonal.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>translation</code> - The translation vector</dd><dd><code>scaling</code> - The scaling vector</dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix for the purpose of chaining methods together.</dd></dl>
</li>
</ul>
<a name="setToTranslationAndScaling(float, float, float, float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setToTranslationAndScaling</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;setToTranslationAndScaling(float&nbsp;translationX,
                                 float&nbsp;translationY,
                                 float&nbsp;translationZ,
                                 float&nbsp;scalingX,
                                 float&nbsp;scalingY,
                                 float&nbsp;scalingZ)</pre>
<div class="block">Sets this matrix to a translation and scaling matrix by first overwritting it with an identity and then setting the
 translation vector in the 4th column and the scaling vector in the diagonal.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>translationX</code> - The x-component of the translation vector</dd><dd><code>translationY</code> - The y-component of the translation vector</dd><dd><code>translationZ</code> - The z-component of the translation vector</dd><dd><code>scalingX</code> - The x-component of the scaling vector</dd><dd><code>scalingY</code> - The x-component of the scaling vector</dd><dd><code>scalingZ</code> - The x-component of the scaling vector</dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix for the purpose of chaining methods together.</dd></dl>
</li>
</ul>
<a name="setToRotation(com.badlogic.gdx.math.Vector3, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setToRotation</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;setToRotation(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;axis,
                    float&nbsp;degrees)</pre>
<div class="block">Sets the matrix to a rotation matrix around the given axis.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>axis</code> - The axis</dd><dd><code>degrees</code> - The angle in degrees</dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix for the purpose of chaining methods together.</dd></dl>
</li>
</ul>
<a name="setToRotation(float, float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setToRotation</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;setToRotation(float&nbsp;axisX,
                    float&nbsp;axisY,
                    float&nbsp;axisZ,
                    float&nbsp;degrees)</pre>
<div class="block">Sets the matrix to a rotation matrix around the given axis.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>axisX</code> - The x-component of the axis</dd><dd><code>axisY</code> - The y-component of the axis</dd><dd><code>axisZ</code> - The z-component of the axis</dd><dd><code>degrees</code> - The angle in degrees</dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix for the purpose of chaining methods together.</dd></dl>
</li>
</ul>
<a name="setToRotation(com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setToRotation</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;setToRotation(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;v1,
                    <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;v2)</pre>
<div class="block">Set the matrix to a rotation matrix between two vectors.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>v1</code> - The base vector</dd><dd><code>v2</code> - The target vector</dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix for the purpose of chaining methods together</dd></dl>
</li>
</ul>
<a name="setToRotation(float, float, float, float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setToRotation</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;setToRotation(float&nbsp;x1,
                    float&nbsp;y1,
                    float&nbsp;z1,
                    float&nbsp;x2,
                    float&nbsp;y2,
                    float&nbsp;z2)</pre>
<div class="block">Set the matrix to a rotation matrix between two vectors.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x1</code> - The base vectors x value</dd><dd><code>y1</code> - The base vectors y value</dd><dd><code>z1</code> - The base vectors z value</dd><dd><code>x2</code> - The target vector x value</dd><dd><code>y2</code> - The target vector y value</dd><dd><code>z2</code> - The target vector z value</dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix for the purpose of chaining methods together</dd></dl>
</li>
</ul>
<a name="setFromEulerAngles(float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFromEulerAngles</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;setFromEulerAngles(float&nbsp;yaw,
                         float&nbsp;pitch,
                         float&nbsp;roll)</pre>
<div class="block">Sets this matrix to a rotation matrix from the given euler angles.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>yaw</code> - the yaw in degrees</dd><dd><code>pitch</code> - the pitch in degress</dd><dd><code>roll</code> - the roll in degrees</dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix</dd></dl>
</li>
</ul>
<a name="setToScaling(com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setToScaling</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;setToScaling(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;vector)</pre>
<div class="block">Sets this matrix to a scaling matrix</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>vector</code> - The scaling vector</dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix for chaining.</dd></dl>
</li>
</ul>
<a name="setToScaling(float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setToScaling</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;setToScaling(float&nbsp;x,
                   float&nbsp;y,
                   float&nbsp;z)</pre>
<div class="block">Sets this matrix to a scaling matrix</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - The x-component of the scaling vector</dd><dd><code>y</code> - The y-component of the scaling vector</dd><dd><code>z</code> - The z-component of the scaling vector</dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix for chaining.</dd></dl>
</li>
</ul>
<a name="setToLookAt(com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setToLookAt</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;setToLookAt(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;direction,
                  <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;up)</pre>
<div class="block">Sets the matrix to a look at matrix with a direction and an up vector. Multiply with a translation matrix to get a camera
 model view matrix.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>direction</code> - The direction vector</dd><dd><code>up</code> - The up vector</dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix for the purpose of chaining methods together.</dd></dl>
</li>
</ul>
<a name="setToLookAt(com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setToLookAt</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;setToLookAt(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;position,
                  <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;target,
                  <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;up)</pre>
<div class="block">Sets this matrix to a look at matrix with the given position, target and up vector.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>position</code> - the position</dd><dd><code>target</code> - the target</dd><dd><code>up</code> - the up vector</dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix</dd></dl>
</li>
</ul>
<a name="setToWorld(com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setToWorld</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;setToWorld(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;position,
                 <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;forward,
                 <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;up)</pre>
</li>
</ul>
<a name="toString()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;java.lang.String&nbsp;toString()</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="lerp(com.badlogic.gdx.math.Matrix4, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lerp</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;lerp(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;matrix,
           float&nbsp;alpha)</pre>
<div class="block">Linearly interpolates between this matrix and the given matrix mixing by alpha</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>matrix</code> - the matrix</dd><dd><code>alpha</code> - the alpha value in the range [0,1]</dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix for the purpose of chaining methods together.</dd></dl>
</li>
</ul>
<a name="set(com.badlogic.gdx.math.Matrix3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;set(<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</a>&nbsp;mat)</pre>
<div class="block">Sets this matrix to the given 3x3 matrix. The third column of this matrix is set to (0,0,1,0).</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>mat</code> - the matrix</dd></dl>
</li>
</ul>
<a name="scl(com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>scl</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;scl(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;scale)</pre>
</li>
</ul>
<a name="scl(float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>scl</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;scl(float&nbsp;x,
          float&nbsp;y,
          float&nbsp;z)</pre>
</li>
</ul>
<a name="scl(float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>scl</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;scl(float&nbsp;scale)</pre>
</li>
</ul>
<a name="getTranslation(com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTranslation</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;getTranslation(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;position)</pre>
</li>
</ul>
<a name="getRotation(com.badlogic.gdx.math.Quaternion)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRotation</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a>&nbsp;getRotation(<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a>&nbsp;rotation)</pre>
</li>
</ul>
<a name="getScale(com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getScale</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;getScale(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;scale)</pre>
</li>
</ul>
<a name="toNormalMatrix()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toNormalMatrix</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;toNormalMatrix()</pre>
<div class="block">removes the translational part and transposes the matrix.</div>
</li>
</ul>
<a name="mul(float[], float[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mul</h4>
<pre>public static&nbsp;void&nbsp;mul(float[]&nbsp;mata,
       float[]&nbsp;matb)</pre>
<div class="block">Multiplies the matrix mata with matrix matb, storing the result in mata. The arrays are assumed to hold 4x4 column major
 matrices as you can get from <a href="../../../../com/badlogic/gdx/math/Matrix4.html#val"><code>val</code></a>. This is the same as <a href="../../../../com/badlogic/gdx/math/Matrix4.html#mul(com.badlogic.gdx.math.Matrix4)"><code>mul(Matrix4)</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>mata</code> - the first matrix.</dd><dd><code>matb</code> - the second matrix.</dd></dl>
</li>
</ul>
<a name="mulVec(float[], float[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mulVec</h4>
<pre>public static&nbsp;void&nbsp;mulVec(float[]&nbsp;mat,
          float[]&nbsp;vec)</pre>
<div class="block">Multiplies the vector with the given matrix. The matrix array is assumed to hold a 4x4 column major matrix as you can get
 from <a href="../../../../com/badlogic/gdx/math/Matrix4.html#val"><code>val</code></a>. The vector array is assumed to hold a 3-component vector, with x being the first element, y being
 the second and z being the last component. The result is stored in the vector array. This is the same as
 <a href="../../../../com/badlogic/gdx/math/Vector3.html#mul(com.badlogic.gdx.math.Matrix4)"><code>Vector3.mul(Matrix4)</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>mat</code> - the matrix</dd><dd><code>vec</code> - the vector.</dd></dl>
</li>
</ul>
<a name="mulVec(float[], float[], int, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mulVec</h4>
<pre>public static&nbsp;void&nbsp;mulVec(float[]&nbsp;mat,
          float[]&nbsp;vecs,
          int&nbsp;offset,
          int&nbsp;numVecs,
          int&nbsp;stride)</pre>
<div class="block">Multiplies the vectors with the given matrix. The matrix array is assumed to hold a 4x4 column major matrix as you can get
 from <a href="../../../../com/badlogic/gdx/math/Matrix4.html#val"><code>val</code></a>. The vectors array is assumed to hold 3-component vectors. Offset specifies the offset into the
 array where the x-component of the first vector is located. The numVecs parameter specifies the number of vectors stored in
 the vectors array. The stride parameter specifies the number of floats between subsequent vectors and must be >= 3. This is
 the same as <a href="../../../../com/badlogic/gdx/math/Vector3.html#mul(com.badlogic.gdx.math.Matrix4)"><code>Vector3.mul(Matrix4)</code></a> applied to multiple vectors.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>mat</code> - the matrix</dd><dd><code>vecs</code> - the vectors</dd><dd><code>offset</code> - the offset into the vectors array</dd><dd><code>numVecs</code> - the number of vectors</dd><dd><code>stride</code> - the stride between vectors in floats</dd></dl>
</li>
</ul>
<a name="prj(float[], float[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>prj</h4>
<pre>public static&nbsp;void&nbsp;prj(float[]&nbsp;mat,
       float[]&nbsp;vec)</pre>
<div class="block">Multiplies the vector with the given matrix, performing a division by w. The matrix array is assumed to hold a 4x4 column
 major matrix as you can get from <a href="../../../../com/badlogic/gdx/math/Matrix4.html#val"><code>val</code></a>. The vector array is assumed to hold a 3-component vector, with x being
 the first element, y being the second and z being the last component. The result is stored in the vector array. This is the
 same as <a href="../../../../com/badlogic/gdx/math/Vector3.html#prj(com.badlogic.gdx.math.Matrix4)"><code>Vector3.prj(Matrix4)</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>mat</code> - the matrix</dd><dd><code>vec</code> - the vector.</dd></dl>
</li>
</ul>
<a name="prj(float[], float[], int, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>prj</h4>
<pre>public static&nbsp;void&nbsp;prj(float[]&nbsp;mat,
       float[]&nbsp;vecs,
       int&nbsp;offset,
       int&nbsp;numVecs,
       int&nbsp;stride)</pre>
<div class="block">Multiplies the vectors with the given matrix, , performing a division by w. The matrix array is assumed to hold a 4x4 column
 major matrix as you can get from <a href="../../../../com/badlogic/gdx/math/Matrix4.html#val"><code>val</code></a>. The vectors array is assumed to hold 3-component vectors. Offset
 specifies the offset into the array where the x-component of the first vector is located. The numVecs parameter specifies
 the number of vectors stored in the vectors array. The stride parameter specifies the number of floats between subsequent
 vectors and must be >= 3. This is the same as <a href="../../../../com/badlogic/gdx/math/Vector3.html#prj(com.badlogic.gdx.math.Matrix4)"><code>Vector3.prj(Matrix4)</code></a> applied to multiple vectors.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>mat</code> - the matrix</dd><dd><code>vecs</code> - the vectors</dd><dd><code>offset</code> - the offset into the vectors array</dd><dd><code>numVecs</code> - the number of vectors</dd><dd><code>stride</code> - the stride between vectors in floats</dd></dl>
</li>
</ul>
<a name="rot(float[], float[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rot</h4>
<pre>public static&nbsp;void&nbsp;rot(float[]&nbsp;mat,
       float[]&nbsp;vec)</pre>
<div class="block">Multiplies the vector with the top most 3x3 sub-matrix of the given matrix. The matrix array is assumed to hold a 4x4 column
 major matrix as you can get from <a href="../../../../com/badlogic/gdx/math/Matrix4.html#val"><code>val</code></a>. The vector array is assumed to hold a 3-component vector, with x being
 the first element, y being the second and z being the last component. The result is stored in the vector array. This is the
 same as <a href="../../../../com/badlogic/gdx/math/Vector3.html#rot(com.badlogic.gdx.math.Matrix4)"><code>Vector3.rot(Matrix4)</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>mat</code> - the matrix</dd><dd><code>vec</code> - the vector.</dd></dl>
</li>
</ul>
<a name="rot(float[], float[], int, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rot</h4>
<pre>public static&nbsp;void&nbsp;rot(float[]&nbsp;mat,
       float[]&nbsp;vecs,
       int&nbsp;offset,
       int&nbsp;numVecs,
       int&nbsp;stride)</pre>
<div class="block">Multiplies the vectors with the top most 3x3 sub-matrix of the given matrix. The matrix array is assumed to hold a 4x4
 column major matrix as you can get from <a href="../../../../com/badlogic/gdx/math/Matrix4.html#val"><code>val</code></a>. The vectors array is assumed to hold 3-component vectors.
 Offset specifies the offset into the array where the x-component of the first vector is located. The numVecs parameter
 specifies the number of vectors stored in the vectors array. The stride parameter specifies the number of floats between
 subsequent vectors and must be >= 3. This is the same as <a href="../../../../com/badlogic/gdx/math/Vector3.html#rot(com.badlogic.gdx.math.Matrix4)"><code>Vector3.rot(Matrix4)</code></a> applied to multiple vectors.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>mat</code> - the matrix</dd><dd><code>vecs</code> - the vectors</dd><dd><code>offset</code> - the offset into the vectors array</dd><dd><code>numVecs</code> - the number of vectors</dd><dd><code>stride</code> - the stride between vectors in floats</dd></dl>
</li>
</ul>
<a name="inv(float[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>inv</h4>
<pre>public static&nbsp;boolean&nbsp;inv(float[]&nbsp;values)</pre>
<div class="block">Computes the inverse of the given matrix. The matrix array is assumed to hold a 4x4 column major matrix as you can get from
 <a href="../../../../com/badlogic/gdx/math/Matrix4.html#val"><code>val</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>values</code> - the matrix values.</dd>
<dt><span class="strong">Returns:</span></dt><dd>false in case the inverse could not be calculated, true otherwise.</dd></dl>
</li>
</ul>
<a name="det(float[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>det</h4>
<pre>public static&nbsp;float&nbsp;det(float[]&nbsp;values)</pre>
<div class="block">Computes the determinante of the given matrix. The matrix array is assumed to hold a 4x4 column major matrix as you can get
 from <a href="../../../../com/badlogic/gdx/math/Matrix4.html#val"><code>val</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>values</code> - the matrix values.</dd>
<dt><span class="strong">Returns:</span></dt><dd>the determinante.</dd></dl>
</li>
</ul>
<a name="translate(com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>translate</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;translate(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;translation)</pre>
<div class="block">Postmultiplies this matrix by a translation matrix. Postmultiplication is also used by OpenGL ES'
 glTranslate/glRotate/glScale</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>translation</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix for the purpose of chaining methods together.</dd></dl>
</li>
</ul>
<a name="translate(float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>translate</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;translate(float&nbsp;x,
                float&nbsp;y,
                float&nbsp;z)</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> - Translation in the x-axis.</dd><dd><code>y</code> - Translation in the y-axis.</dd><dd><code>z</code> - Translation in the z-axis.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix for the purpose of chaining methods together.</dd></dl>
</li>
</ul>
<a name="rotate(com.badlogic.gdx.math.Vector3, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rotate</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;rotate(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;axis,
             float&nbsp;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>axis</code> - The vector axis to rotate around.</dd><dd><code>degrees</code> - The angle in degrees.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix for the purpose of chaining methods together.</dd></dl>
</li>
</ul>
<a name="rotate(float, float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rotate</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;rotate(float&nbsp;axisX,
             float&nbsp;axisY,
             float&nbsp;axisZ,
             float&nbsp;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>axisX</code> - The x-axis component of the vector to rotate around.</dd><dd><code>axisY</code> - The y-axis component of the vector to rotate around.</dd><dd><code>axisZ</code> - The z-axis component of the vector to rotate around.</dd><dd><code>degrees</code> - The angle in degrees</dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix for the purpose of chaining methods together.</dd></dl>
</li>
</ul>
<a name="rotate(com.badlogic.gdx.math.Quaternion)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rotate</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;rotate(<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a>&nbsp;rotation)</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>rotation</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix for the purpose of chaining methods together.</dd></dl>
</li>
</ul>
<a name="rotate(com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rotate</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;rotate(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;v1,
             <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;v2)</pre>
<div class="block">Postmultiplies this matrix by the rotation between two vectors.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>v1</code> - The base vector</dd><dd><code>v2</code> - The target vector</dd>
<dt><span class="strong">Returns:</span></dt><dd>This matrix for the purpose of chaining methods together</dd></dl>
</li>
</ul>
<a name="scale(float, float, float)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>scale</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;scale(float&nbsp;scaleX,
            float&nbsp;scaleY,
            float&nbsp;scaleZ)</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><dd><code>scaleZ</code> - The scale in the z-axis.</dd>
<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/Matrix4.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/Matrix3.html" title="class in com.badlogic.gdx.math"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../com/badlogic/gdx/math/Path.html" title="interface 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/Matrix4.html" target="_top">Frames</a></li>
<li><a href="Matrix4.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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</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 &copy; 2010-2013 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
                                </i></div>
                        </small></p>
</body>
</html>