mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
2961 lines
145 KiB
HTML
2961 lines
145 KiB
HTML
<!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 (1.8.0_101) on Sat Jun 10 08:04:08 CEST 2017 -->
|
|
<title>Matrix4 (libgdx API)</title>
|
|
<meta name="date" content="2017-06-10">
|
|
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
|
<script type="text/javascript" src="../../../../script.js"></script>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
try {
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="Matrix4 (libgdx API)";
|
|
}
|
|
}
|
|
catch(err) {
|
|
}
|
|
//-->
|
|
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":9,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":9,"i23":10,"i24":9,"i25":10,"i26":10,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10,"i61":10,"i62":10,"i63":10,"i64":10,"i65":10,"i66":10,"i67":10,"i68":10,"i69":10,"i70":10,"i71":10,"i72":10,"i73":10,"i74":10,"i75":10,"i76":10,"i77":10,"i78":10,"i79":10,"i80":10,"i81":10,"i82":10,"i83":10,"i84":10,"i85":10,"i86":10};
|
|
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
|
var altColor = "altColor";
|
|
var rowColor = "rowColor";
|
|
var tableTab = "tableTab";
|
|
var activeTableTab = "activeTableTab";
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a name="navbar.top">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
|
<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">
|
|
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>
|
|
</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="typeNameLink">Prev Class</span></a></li>
|
|
<li><a href="../../../../com/badlogic/gdx/math/Path.html" title="interface in com.badlogic.gdx.math"><span class="typeNameLink">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: </li>
|
|
<li>Nested | </li>
|
|
<li><a href="#field.summary">Field</a> | </li>
|
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li><a href="#field.detail">Field</a> | </li>
|
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip.navbar.top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<div class="header">
|
|
<div class="subTitle">com.badlogic.gdx.math</div>
|
|
<h2 title="Class 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="typeNameLabel">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="simpleTagLabel">Author:</span></dt>
|
|
<dd>badlogicgames@gmail.com</dd>
|
|
<dt><span class="seeLabel">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="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
|
|
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Field and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M00">M00</a></span></code>
|
|
<div class="block">XX: Typically the unrotated X component for scaling, also the cosine of the angle when rotated on the Y and/or Z axis.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M01">M01</a></span></code>
|
|
<div class="block">XY: Typically the negative sine of the angle when rotated on the Z axis.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M02">M02</a></span></code>
|
|
<div class="block">XZ: Typically the sine of the angle when rotated on the Y axis.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M03">M03</a></span></code>
|
|
<div class="block">XW: Typically the translation of the X component.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M10">M10</a></span></code>
|
|
<div class="block">YX: Typically the sine of the angle when rotated on the Z axis.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M11">M11</a></span></code>
|
|
<div class="block">YY: Typically the unrotated Y component for scaling, also the cosine of the angle when rotated on the X and/or Z axis.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M12">M12</a></span></code>
|
|
<div class="block">YZ: Typically the negative sine of the angle when rotated on the X axis.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M13">M13</a></span></code>
|
|
<div class="block">YW: Typically the translation of the Y component.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M20">M20</a></span></code>
|
|
<div class="block">ZX: Typically the negative sine of the angle when rotated on the Y axis.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M21">M21</a></span></code>
|
|
<div class="block">ZY: Typical the sine of the angle when rotated on the X axis.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M22">M22</a></span></code>
|
|
<div class="block">ZZ: Typically the unrotated Z component for scaling, also the cosine of the angle when rotated on the X and/or Y axis.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M23">M23</a></span></code>
|
|
<div class="block">ZW: Typically the translation of the Z component.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M30">M30</a></span></code>
|
|
<div class="block">WX: Typically the value zero.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M31">M31</a></span></code>
|
|
<div class="block">WY: Typically the value zero.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M32">M32</a></span></code>
|
|
<div class="block">WZ: Typically the value zero.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#M33">M33</a></span></code>
|
|
<div class="block">WW: Typically the value one.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>float[]</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#val">val</a></span></code> </td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Summary</h3>
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colOne" scope="col">Constructor and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#Matrix4--">Matrix4</a></span>()</code>
|
|
<div class="block">Constructs an identity matrix</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#Matrix4-float:A-">Matrix4</a></span>(float[] values)</code>
|
|
<div class="block">Constructs a matrix from the given float array.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#Matrix4-com.badlogic.gdx.math.Matrix4-">Matrix4</a></span>(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> matrix)</code>
|
|
<div class="block">Constructs a matrix from the given matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#Matrix4-com.badlogic.gdx.math.Quaternion-">Matrix4</a></span>(<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a> 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><span class="memberNameLink"><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></span>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> position,
|
|
<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a> rotation,
|
|
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> 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="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
|
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Method and Description</th>
|
|
</tr>
|
|
<tr id="i0" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#avg-com.badlogic.gdx.math.Matrix4:A-">avg</a></span>(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>[] t)</code>
|
|
<div class="block">Averages the given transforms and stores the result in this matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i1" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#avg-com.badlogic.gdx.math.Matrix4:A-float:A-">avg</a></span>(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>[] t,
|
|
float[] w)</code>
|
|
<div class="block">Averages the given transforms with the given weights and stores the result in this matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i2" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#avg-com.badlogic.gdx.math.Matrix4-float-">avg</a></span>(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> other,
|
|
float w)</code>
|
|
<div class="block">Averages the given transform with this one and stores the result in this matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i3" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#cpy--">cpy</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i4" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#det--">det</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i5" class="rowColor">
|
|
<td class="colFirst"><code>static float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#det-float:A-">det</a></span>(float[] values)</code>
|
|
<div class="block">Computes the determinante of the given matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i6" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#det3x3--">det3x3</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i7" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#extract4x3Matrix-float:A-">extract4x3Matrix</a></span>(float[] dst)</code>
|
|
<div class="block">Copies the 4x3 upper-left sub-matrix into float array.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i8" class="altColor">
|
|
<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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#getRotation-com.badlogic.gdx.math.Quaternion-">getRotation</a></span>(<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a> rotation)</code>
|
|
<div class="block">Gets the rotation of this matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i9" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#getRotation-com.badlogic.gdx.math.Quaternion-boolean-">getRotation</a></span>(<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a> rotation,
|
|
boolean normalizeAxes)</code>
|
|
<div class="block">Gets the rotation of this matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i10" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#getScale-com.badlogic.gdx.math.Vector3-">getScale</a></span>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> scale)</code> </td>
|
|
</tr>
|
|
<tr id="i11" class="rowColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#getScaleX--">getScaleX</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i12" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#getScaleXSquared--">getScaleXSquared</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i13" class="rowColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#getScaleY--">getScaleY</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i14" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#getScaleYSquared--">getScaleYSquared</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i15" class="rowColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#getScaleZ--">getScaleZ</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i16" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#getScaleZSquared--">getScaleZSquared</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i17" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#getTranslation-com.badlogic.gdx.math.Vector3-">getTranslation</a></span>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> position)</code> </td>
|
|
</tr>
|
|
<tr id="i18" class="altColor">
|
|
<td class="colFirst"><code>float[]</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#getValues--">getValues</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i19" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#hasRotationOrScaling--">hasRotationOrScaling</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i20" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#idt--">idt</a></span>()</code>
|
|
<div class="block">Sets the matrix to an identity matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i21" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#inv--">inv</a></span>()</code>
|
|
<div class="block">Inverts the matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i22" class="altColor">
|
|
<td class="colFirst"><code>static boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#inv-float:A-">inv</a></span>(float[] values)</code>
|
|
<div class="block">Computes the inverse of the given matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i23" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#lerp-com.badlogic.gdx.math.Matrix4-float-">lerp</a></span>(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> matrix,
|
|
float alpha)</code>
|
|
<div class="block">Linearly interpolates between this matrix and the given matrix mixing by alpha</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i24" class="altColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#mul-float:A-float:A-">mul</a></span>(float[] mata,
|
|
float[] matb)</code>
|
|
<div class="block">Multiplies the matrix mata with matrix matb, storing the result in mata.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i25" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#mul-com.badlogic.gdx.math.Matrix4-">mul</a></span>(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> matrix)</code>
|
|
<div class="block">Postmultiplies this matrix with the given matrix, storing the result in this matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i26" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#mulLeft-com.badlogic.gdx.math.Matrix4-">mulLeft</a></span>(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> matrix)</code>
|
|
<div class="block">Premultiplies this matrix with the given matrix, storing the result in this matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i27" class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#mulVec-float:A-float:A-">mulVec</a></span>(float[] mat,
|
|
float[] vec)</code>
|
|
<div class="block">Multiplies the vector with the given matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i28" class="altColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#mulVec-float:A-float:A-int-int-int-">mulVec</a></span>(float[] mat,
|
|
float[] vecs,
|
|
int offset,
|
|
int numVecs,
|
|
int stride)</code>
|
|
<div class="block">Multiplies the vectors with the given matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i29" class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#prj-float:A-float:A-">prj</a></span>(float[] mat,
|
|
float[] vec)</code>
|
|
<div class="block">Multiplies the vector with the given matrix, performing a division by w.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i30" class="altColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#prj-float:A-float:A-int-int-int-">prj</a></span>(float[] mat,
|
|
float[] vecs,
|
|
int offset,
|
|
int numVecs,
|
|
int stride)</code>
|
|
<div class="block">Multiplies the vectors with the given matrix, , performing a division by w.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i31" class="rowColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#rot-float:A-float:A-">rot</a></span>(float[] mat,
|
|
float[] vec)</code>
|
|
<div class="block">Multiplies the vector with the top most 3x3 sub-matrix of the given matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i32" class="altColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#rot-float:A-float:A-int-int-int-">rot</a></span>(float[] mat,
|
|
float[] vecs,
|
|
int offset,
|
|
int numVecs,
|
|
int stride)</code>
|
|
<div class="block">Multiplies the vectors with the top most 3x3 sub-matrix of the given matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i33" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#rotate-float-float-float-float-">rotate</a></span>(float axisX,
|
|
float axisY,
|
|
float axisZ,
|
|
float degrees)</code>
|
|
<div class="block">Postmultiplies this matrix with a (counter-clockwise) rotation matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i34" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#rotate-com.badlogic.gdx.math.Quaternion-">rotate</a></span>(<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a> rotation)</code>
|
|
<div class="block">Postmultiplies this matrix with a (counter-clockwise) rotation matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i35" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#rotate-com.badlogic.gdx.math.Vector3-float-">rotate</a></span>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> axis,
|
|
float degrees)</code>
|
|
<div class="block">Postmultiplies this matrix with a (counter-clockwise) rotation matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i36" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#rotate-com.badlogic.gdx.math.Vector3-com.badlogic.gdx.math.Vector3-">rotate</a></span>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> v1,
|
|
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> v2)</code>
|
|
<div class="block">Postmultiplies this matrix by the rotation between two vectors.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i37" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#rotateRad-float-float-float-float-">rotateRad</a></span>(float axisX,
|
|
float axisY,
|
|
float axisZ,
|
|
float radians)</code>
|
|
<div class="block">Postmultiplies this matrix with a (counter-clockwise) rotation matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i38" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#rotateRad-com.badlogic.gdx.math.Vector3-float-">rotateRad</a></span>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> axis,
|
|
float radians)</code>
|
|
<div class="block">Postmultiplies this matrix with a (counter-clockwise) rotation matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i39" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#scale-float-float-float-">scale</a></span>(float scaleX,
|
|
float scaleY,
|
|
float scaleZ)</code>
|
|
<div class="block">Postmultiplies this matrix with a scale matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i40" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#scl-float-">scl</a></span>(float scale)</code> </td>
|
|
</tr>
|
|
<tr id="i41" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#scl-float-float-float-">scl</a></span>(float x,
|
|
float y,
|
|
float z)</code> </td>
|
|
</tr>
|
|
<tr id="i42" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#scl-com.badlogic.gdx.math.Vector3-">scl</a></span>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> scale)</code> </td>
|
|
</tr>
|
|
<tr id="i43" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#set-com.badlogic.gdx.math.Affine2-">set</a></span>(<a href="../../../../com/badlogic/gdx/math/Affine2.html" title="class in com.badlogic.gdx.math">Affine2</a> affine)</code>
|
|
<div class="block">Sets this matrix to the given affine matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i44" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#set-float:A-">set</a></span>(float[] values)</code>
|
|
<div class="block">Sets the matrix to the given matrix as a float array.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i45" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#set-float-float-float-float-">set</a></span>(float quaternionX,
|
|
float quaternionY,
|
|
float quaternionZ,
|
|
float quaternionW)</code>
|
|
<div class="block">Sets the matrix to a rotation matrix representing the quaternion.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i46" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#set-float-float-float-float-float-float-float-">set</a></span>(float translationX,
|
|
float translationY,
|
|
float translationZ,
|
|
float quaternionX,
|
|
float quaternionY,
|
|
float quaternionZ,
|
|
float quaternionW)</code>
|
|
<div class="block">Sets the matrix to a rotation matrix representing the translation and quaternion.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i47" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#set-float-float-float-float-float-float-float-float-float-float-">set</a></span>(float translationX,
|
|
float translationY,
|
|
float translationZ,
|
|
float quaternionX,
|
|
float quaternionY,
|
|
float quaternionZ,
|
|
float quaternionW,
|
|
float scaleX,
|
|
float scaleY,
|
|
float scaleZ)</code>
|
|
<div class="block">Sets the matrix to a rotation matrix representing the translation and quaternion.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i48" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#set-com.badlogic.gdx.math.Matrix3-">set</a></span>(<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</a> mat)</code>
|
|
<div class="block">Sets this matrix to the given 3x3 matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i49" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#set-com.badlogic.gdx.math.Matrix4-">set</a></span>(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> matrix)</code>
|
|
<div class="block">Sets the matrix to the given matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i50" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#set-com.badlogic.gdx.math.Quaternion-">set</a></span>(<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a> quaternion)</code>
|
|
<div class="block">Sets the matrix to a rotation matrix representing the quaternion.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i51" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#set-com.badlogic.gdx.math.Vector3-com.badlogic.gdx.math.Quaternion-">set</a></span>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> position,
|
|
<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a> orientation)</code>
|
|
<div class="block">Set this matrix to the specified translation and rotation.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i52" 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><span class="memberNameLink"><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></span>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> position,
|
|
<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a> orientation,
|
|
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> scale)</code>
|
|
<div class="block">Set this matrix to the specified translation, rotation and scale.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i53" 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><span class="memberNameLink"><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></span>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> xAxis,
|
|
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> yAxis,
|
|
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> zAxis,
|
|
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> 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 id="i54" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setAsAffine-com.badlogic.gdx.math.Affine2-">setAsAffine</a></span>(<a href="../../../../com/badlogic/gdx/math/Affine2.html" title="class in com.badlogic.gdx.math">Affine2</a> affine)</code>
|
|
<div class="block">Assumes that this matrix is a 2D affine transformation, copying only the relevant components.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i55" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setAsAffine-com.badlogic.gdx.math.Matrix4-">setAsAffine</a></span>(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> mat)</code>
|
|
<div class="block">Assumes that both matrices are 2D affine transformations, copying only the relevant components.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i56" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setFromEulerAngles-float-float-float-">setFromEulerAngles</a></span>(float yaw,
|
|
float pitch,
|
|
float roll)</code>
|
|
<div class="block">Sets this matrix to a rotation matrix from the given euler angles.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i57" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setFromEulerAnglesRad-float-float-float-">setFromEulerAnglesRad</a></span>(float yaw,
|
|
float pitch,
|
|
float roll)</code>
|
|
<div class="block">Sets this matrix to a rotation matrix from the given euler angles.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i58" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToLookAt-com.badlogic.gdx.math.Vector3-com.badlogic.gdx.math.Vector3-">setToLookAt</a></span>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> direction,
|
|
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> up)</code>
|
|
<div class="block">Sets the matrix to a look at matrix with a direction and an up vector.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i59" 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><span class="memberNameLink"><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></span>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> position,
|
|
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> target,
|
|
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> 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 id="i60" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToOrtho-float-float-float-float-float-float-">setToOrtho</a></span>(float left,
|
|
float right,
|
|
float bottom,
|
|
float top,
|
|
float near,
|
|
float 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 id="i61" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToOrtho2D-float-float-float-float-">setToOrtho2D</a></span>(float x,
|
|
float y,
|
|
float width,
|
|
float 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 id="i62" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToOrtho2D-float-float-float-float-float-float-">setToOrtho2D</a></span>(float x,
|
|
float y,
|
|
float width,
|
|
float height,
|
|
float near,
|
|
float 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 id="i63" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToProjection-float-float-float-float-">setToProjection</a></span>(float near,
|
|
float far,
|
|
float fovy,
|
|
float 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 id="i64" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToProjection-float-float-float-float-float-float-">setToProjection</a></span>(float left,
|
|
float right,
|
|
float bottom,
|
|
float top,
|
|
float near,
|
|
float far)</code>
|
|
<div class="block">Sets the matrix to a projection matrix with a near/far plane, and left, bottom, right and top specifying the points on the
|
|
near plane that are mapped to the lower left and upper right corners of the viewport.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i65" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToRotation-float-float-float-float-">setToRotation</a></span>(float axisX,
|
|
float axisY,
|
|
float axisZ,
|
|
float degrees)</code>
|
|
<div class="block">Sets the matrix to a rotation matrix around the given axis.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i66" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToRotation-float-float-float-float-float-float-">setToRotation</a></span>(float x1,
|
|
float y1,
|
|
float z1,
|
|
float x2,
|
|
float y2,
|
|
float z2)</code>
|
|
<div class="block">Set the matrix to a rotation matrix between two vectors.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i67" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToRotation-com.badlogic.gdx.math.Vector3-float-">setToRotation</a></span>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> axis,
|
|
float degrees)</code>
|
|
<div class="block">Sets the matrix to a rotation matrix around the given axis.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i68" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToRotation-com.badlogic.gdx.math.Vector3-com.badlogic.gdx.math.Vector3-">setToRotation</a></span>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> v1,
|
|
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> v2)</code>
|
|
<div class="block">Set the matrix to a rotation matrix between two vectors.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i69" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToRotationRad-float-float-float-float-">setToRotationRad</a></span>(float axisX,
|
|
float axisY,
|
|
float axisZ,
|
|
float radians)</code>
|
|
<div class="block">Sets the matrix to a rotation matrix around the given axis.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i70" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToRotationRad-com.badlogic.gdx.math.Vector3-float-">setToRotationRad</a></span>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> axis,
|
|
float radians)</code>
|
|
<div class="block">Sets the matrix to a rotation matrix around the given axis.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i71" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToScaling-float-float-float-">setToScaling</a></span>(float x,
|
|
float y,
|
|
float z)</code>
|
|
<div class="block">Sets this matrix to a scaling matrix</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i72" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToScaling-com.badlogic.gdx.math.Vector3-">setToScaling</a></span>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> vector)</code>
|
|
<div class="block">Sets this matrix to a scaling matrix</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i73" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToTranslation-float-float-float-">setToTranslation</a></span>(float x,
|
|
float y,
|
|
float 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 id="i74" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToTranslation-com.badlogic.gdx.math.Vector3-">setToTranslation</a></span>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> 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 id="i75" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToTranslationAndScaling-float-float-float-float-float-float-">setToTranslationAndScaling</a></span>(float translationX,
|
|
float translationY,
|
|
float translationZ,
|
|
float scalingX,
|
|
float scalingY,
|
|
float scalingZ)</code>
|
|
<div class="block">Sets this matrix to a translation and scaling matrix by first overwriting 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 id="i76" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setToTranslationAndScaling-com.badlogic.gdx.math.Vector3-com.badlogic.gdx.math.Vector3-">setToTranslationAndScaling</a></span>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> translation,
|
|
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> scaling)</code>
|
|
<div class="block">Sets this matrix to a translation and scaling matrix by first overwriting 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 id="i77" 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><span class="memberNameLink"><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></span>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> position,
|
|
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> forward,
|
|
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> up)</code> </td>
|
|
</tr>
|
|
<tr id="i78" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setTranslation-float-float-float-">setTranslation</a></span>(float x,
|
|
float y,
|
|
float z)</code>
|
|
<div class="block">Sets the 4th column to the translation vector.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i79" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#setTranslation-com.badlogic.gdx.math.Vector3-">setTranslation</a></span>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> vector)</code>
|
|
<div class="block">Sets the 4th column to the translation vector.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i80" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#toNormalMatrix--">toNormalMatrix</a></span>()</code>
|
|
<div class="block">removes the translational part and transposes the matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i81" class="rowColor">
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#toString--">toString</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i82" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#tra--">tra</a></span>()</code>
|
|
<div class="block">Transposes the matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i83" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#translate-float-float-float-">translate</a></span>(float x,
|
|
float y,
|
|
float z)</code>
|
|
<div class="block">Postmultiplies this matrix by a translation matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i84" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#translate-com.badlogic.gdx.math.Vector3-">translate</a></span>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> translation)</code>
|
|
<div class="block">Postmultiplies this matrix by a translation matrix.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i85" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#trn-float-float-float-">trn</a></span>(float x,
|
|
float y,
|
|
float z)</code>
|
|
<div class="block">Adds a translational component to the matrix in the 4th column.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i86" 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><span class="memberNameLink"><a href="../../../../com/badlogic/gdx/math/Matrix4.html#trn-com.badlogic.gdx.math.Vector3-">trn</a></span>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> vector)</code>
|
|
<div class="block">Adds a translational component to the matrix in the 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 java.lang.Object</h3>
|
|
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="field.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Detail</h3>
|
|
<a name="M00">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>M00</h4>
|
|
<pre>public static final int M00</pre>
|
|
<div class="block">XX: Typically the unrotated X component for scaling, also the cosine of the angle when rotated on the Y and/or Z axis. On
|
|
Vector3 multiplication this value is multiplied with the source X component and added to the target X component.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">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 int M01</pre>
|
|
<div class="block">XY: Typically the negative sine of the angle when rotated on the Z axis. On Vector3 multiplication this value is multiplied
|
|
with the source Y component and added to the target X component.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">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 int M02</pre>
|
|
<div class="block">XZ: Typically the sine of the angle when rotated on the Y axis. On Vector3 multiplication this value is multiplied with the
|
|
source Z component and added to the target X component.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">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 int M03</pre>
|
|
<div class="block">XW: Typically the translation of the X component. On Vector3 multiplication this value is added to the target X component.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">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 int M10</pre>
|
|
<div class="block">YX: Typically the sine of the angle when rotated on the Z axis. On Vector3 multiplication this value is multiplied with the
|
|
source X component and added to the target Y component.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">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 int M11</pre>
|
|
<div class="block">YY: Typically the unrotated Y component for scaling, also the cosine of the angle when rotated on the X and/or Z axis. On
|
|
Vector3 multiplication this value is multiplied with the source Y component and added to the target Y component.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">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 int M12</pre>
|
|
<div class="block">YZ: Typically the negative sine of the angle when rotated on the X axis. On Vector3 multiplication this value is multiplied
|
|
with the source Z component and added to the target Y component.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">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 int M13</pre>
|
|
<div class="block">YW: Typically the translation of the Y component. On Vector3 multiplication this value is added to the target Y component.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">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 int M20</pre>
|
|
<div class="block">ZX: Typically the negative sine of the angle when rotated on the Y axis. On Vector3 multiplication this value is multiplied
|
|
with the source X component and added to the target Z component.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">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 int M21</pre>
|
|
<div class="block">ZY: Typical the sine of the angle when rotated on the X axis. On Vector3 multiplication this value is multiplied with the
|
|
source Y component and added to the target Z component.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">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 int M22</pre>
|
|
<div class="block">ZZ: Typically the unrotated Z component for scaling, also the cosine of the angle when rotated on the X and/or Y axis. On
|
|
Vector3 multiplication this value is multiplied with the source Z component and added to the target Z component.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">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 int M23</pre>
|
|
<div class="block">ZW: Typically the translation of the Z component. On Vector3 multiplication this value is added to the target Z component.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">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 int M30</pre>
|
|
<div class="block">WX: Typically the value zero. On Vector3 multiplication this value is ignored.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">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 int M31</pre>
|
|
<div class="block">WY: Typically the value zero. On Vector3 multiplication this value is ignored.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">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 int M32</pre>
|
|
<div class="block">WZ: Typically the value zero. On Vector3 multiplication this value is ignored.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">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 int M33</pre>
|
|
<div class="block">WW: Typically the value one. On Vector3 multiplication this value is ignored.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">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="val">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>val</h4>
|
|
<pre>public final 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 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 Matrix4(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> matrix)</pre>
|
|
<div class="block">Constructs a matrix from the given matrix.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">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-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>Matrix4</h4>
|
|
<pre>public Matrix4(float[] 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="paramLabel">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</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 Matrix4(<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a> 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="paramLabel">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 Matrix4(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> position,
|
|
<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a> rotation,
|
|
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> scale)</pre>
|
|
<div class="block">Construct a matrix from the given translation, rotation and scale.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> set(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> matrix)</pre>
|
|
<div class="block">Sets the matrix to the given matrix.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>matrix</code> - The matrix that is to be copied. (The given matrix is not modified)</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This matrix for the purpose of chaining methods together.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="set-float:A-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>set</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> set(float[] 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="paramLabel">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</a> order.</dd>
|
|
<dt><span class="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> set(<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a> quaternion)</pre>
|
|
<div class="block">Sets the matrix to a rotation matrix representing the quaternion.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>quaternion</code> - The quaternion that is to be used to set this matrix.</dd>
|
|
<dt><span class="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> set(float quaternionX,
|
|
float quaternionY,
|
|
float quaternionZ,
|
|
float quaternionW)</pre>
|
|
<div class="block">Sets the matrix to a rotation matrix representing the quaternion.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>quaternionX</code> - The X component of the quaternion that is to be used to set this matrix.</dd>
|
|
<dd><code>quaternionY</code> - The Y component of the quaternion that is to be used to set this matrix.</dd>
|
|
<dd><code>quaternionZ</code> - The Z component of the quaternion that is to be used to set this matrix.</dd>
|
|
<dd><code>quaternionW</code> - The W component of the quaternion that is to be used to set this matrix.</dd>
|
|
<dt><span class="returnLabel">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-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>set</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> set(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> position,
|
|
<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a> orientation)</pre>
|
|
<div class="block">Set this matrix to the specified translation and rotation.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>position</code> - The translation</dd>
|
|
<dd><code>orientation</code> - The rotation, must be normalized</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This matrix for chaining</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="set-float-float-float-float-float-float-float-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>set</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> set(float translationX,
|
|
float translationY,
|
|
float translationZ,
|
|
float quaternionX,
|
|
float quaternionY,
|
|
float quaternionZ,
|
|
float quaternionW)</pre>
|
|
<div class="block">Sets the matrix to a rotation matrix representing the translation and quaternion.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>translationX</code> - The X component of the translation that is to be used to set this matrix.</dd>
|
|
<dd><code>translationY</code> - The Y component of the translation that is to be used to set this matrix.</dd>
|
|
<dd><code>translationZ</code> - The Z component of the translation that is to be used to set this matrix.</dd>
|
|
<dd><code>quaternionX</code> - The X component of the quaternion that is to be used to set this matrix.</dd>
|
|
<dd><code>quaternionY</code> - The Y component of the quaternion that is to be used to set this matrix.</dd>
|
|
<dd><code>quaternionZ</code> - The Z component of the quaternion that is to be used to set this matrix.</dd>
|
|
<dd><code>quaternionW</code> - The W component of the quaternion that is to be used to set this matrix.</dd>
|
|
<dt><span class="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> set(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> position,
|
|
<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a> orientation,
|
|
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> scale)</pre>
|
|
<div class="block">Set this matrix to the specified translation, rotation and scale.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">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="returnLabel">Returns:</span></dt>
|
|
<dd>This matrix for chaining</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="set-float-float-float-float-float-float-float-float-float-float-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>set</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> set(float translationX,
|
|
float translationY,
|
|
float translationZ,
|
|
float quaternionX,
|
|
float quaternionY,
|
|
float quaternionZ,
|
|
float quaternionW,
|
|
float scaleX,
|
|
float scaleY,
|
|
float scaleZ)</pre>
|
|
<div class="block">Sets the matrix to a rotation matrix representing the translation and quaternion.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>translationX</code> - The X component of the translation that is to be used to set this matrix.</dd>
|
|
<dd><code>translationY</code> - The Y component of the translation that is to be used to set this matrix.</dd>
|
|
<dd><code>translationZ</code> - The Z component of the translation that is to be used to set this matrix.</dd>
|
|
<dd><code>quaternionX</code> - The X component of the quaternion that is to be used to set this matrix.</dd>
|
|
<dd><code>quaternionY</code> - The Y component of the quaternion that is to be used to set this matrix.</dd>
|
|
<dd><code>quaternionZ</code> - The Z component of the quaternion that is to be used to set this matrix.</dd>
|
|
<dd><code>quaternionW</code> - The W component of the quaternion that is to be used to set this matrix.</dd>
|
|
<dd><code>scaleX</code> - The X component of the scaling that is to be used to set this matrix.</dd>
|
|
<dd><code>scaleY</code> - The Y component of the scaling that is to be used to set this matrix.</dd>
|
|
<dd><code>scaleZ</code> - The Z component of the scaling that is to be used to set this matrix.</dd>
|
|
<dt><span class="returnLabel">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.Vector3-com.badlogic.gdx.math.Vector3-com.badlogic.gdx.math.Vector3-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>set</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> set(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> xAxis,
|
|
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> yAxis,
|
|
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> zAxis,
|
|
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> 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="paramLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> cpy()</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> trn(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> vector)</pre>
|
|
<div class="block">Adds a translational component to the matrix in the 4th column. The other columns are untouched.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">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="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> trn(float x,
|
|
float y,
|
|
float 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="paramLabel">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="returnLabel">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 float[] getValues()</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> mul(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> 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="paramLabel">Parameters:</span></dt>
|
|
<dd><code>matrix</code> - The other matrix to multiply by.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This matrix for the purpose of chaining operations together.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="mulLeft-com.badlogic.gdx.math.Matrix4-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>mulLeft</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> mulLeft(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> matrix)</pre>
|
|
<div class="block">Premultiplies this matrix with the given matrix, storing the result in this matrix. For example:
|
|
|
|
<pre>
|
|
A.mulLeft(B) results in A := BA.
|
|
</pre></div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>matrix</code> - The other matrix to multiply by.</dd>
|
|
<dt><span class="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> tra()</pre>
|
|
<div class="block">Transposes the matrix.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> idt()</pre>
|
|
<div class="block">Sets the matrix to an identity matrix.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> inv()</pre>
|
|
<div class="block">Inverts the matrix. Stores the result in this matrix.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This matrix for the purpose of chaining methods together.</dd>
|
|
<dt><span class="throwsLabel">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 float det()</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The determinant of this matrix</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="det3x3--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>det3x3</h4>
|
|
<pre>public float det3x3()</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The determinant of the 3x3 upper left matrix</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setToProjection-float-float-float-float-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setToProjection</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> setToProjection(float near,
|
|
float far,
|
|
float fovy,
|
|
float 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. Note that
|
|
the field of view specified is the angle in degrees for the height, the field of view for the width will be calculated
|
|
according to the aspect ratio.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>near</code> - The near plane</dd>
|
|
<dd><code>far</code> - The far plane</dd>
|
|
<dd><code>fovy</code> - The field of view of the height in degrees</dd>
|
|
<dd><code>aspectRatio</code> - The "width over height" aspect ratio</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This matrix for the purpose of chaining methods together.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setToProjection-float-float-float-float-float-float-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setToProjection</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> setToProjection(float left,
|
|
float right,
|
|
float bottom,
|
|
float top,
|
|
float near,
|
|
float far)</pre>
|
|
<div class="block">Sets the matrix to a projection matrix with a near/far plane, and left, bottom, right and top specifying the points on the
|
|
near plane that are mapped to the lower left and upper right corners of the viewport. This allows to create projection
|
|
matrix with off-center vanishing point.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>left</code> - </dd>
|
|
<dd><code>right</code> - </dd>
|
|
<dd><code>bottom</code> - </dd>
|
|
<dd><code>top</code> - </dd>
|
|
<dd><code>near</code> - The near plane</dd>
|
|
<dd><code>far</code> - The far plane</dd>
|
|
<dt><span class="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> setToOrtho2D(float x,
|
|
float y,
|
|
float width,
|
|
float 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="paramLabel">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="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> setToOrtho2D(float x,
|
|
float y,
|
|
float width,
|
|
float height,
|
|
float near,
|
|
float 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="paramLabel">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="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> setToOrtho(float left,
|
|
float right,
|
|
float bottom,
|
|
float top,
|
|
float near,
|
|
float 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="paramLabel">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="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> setTranslation(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> vector)</pre>
|
|
<div class="block">Sets the 4th column to the translation vector.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>vector</code> - The translation vector</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This matrix for the purpose of chaining methods together.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setTranslation-float-float-float-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setTranslation</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> setTranslation(float x,
|
|
float y,
|
|
float z)</pre>
|
|
<div class="block">Sets the 4th column to the translation vector.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>x</code> - The X coordinate of the translation vector</dd>
|
|
<dd><code>y</code> - The Y coordinate of the translation vector</dd>
|
|
<dd><code>z</code> - The Z coordinate of the translation vector</dd>
|
|
<dt><span class="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> setToTranslation(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> 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="paramLabel">Parameters:</span></dt>
|
|
<dd><code>vector</code> - The translation vector</dd>
|
|
<dt><span class="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> setToTranslation(float x,
|
|
float y,
|
|
float 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="paramLabel">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="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> setToTranslationAndScaling(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> translation,
|
|
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> scaling)</pre>
|
|
<div class="block">Sets this matrix to a translation and scaling matrix by first overwriting 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="paramLabel">Parameters:</span></dt>
|
|
<dd><code>translation</code> - The translation vector</dd>
|
|
<dd><code>scaling</code> - The scaling vector</dd>
|
|
<dt><span class="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> setToTranslationAndScaling(float translationX,
|
|
float translationY,
|
|
float translationZ,
|
|
float scalingX,
|
|
float scalingY,
|
|
float scalingZ)</pre>
|
|
<div class="block">Sets this matrix to a translation and scaling matrix by first overwriting 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="paramLabel">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="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> setToRotation(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> axis,
|
|
float degrees)</pre>
|
|
<div class="block">Sets the matrix to a rotation matrix around the given axis.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>axis</code> - The axis</dd>
|
|
<dd><code>degrees</code> - The angle in degrees</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This matrix for the purpose of chaining methods together.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setToRotationRad-com.badlogic.gdx.math.Vector3-float-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setToRotationRad</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> setToRotationRad(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> axis,
|
|
float radians)</pre>
|
|
<div class="block">Sets the matrix to a rotation matrix around the given axis.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>axis</code> - The axis</dd>
|
|
<dd><code>radians</code> - The angle in radians</dd>
|
|
<dt><span class="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> setToRotation(float axisX,
|
|
float axisY,
|
|
float axisZ,
|
|
float degrees)</pre>
|
|
<div class="block">Sets the matrix to a rotation matrix around the given axis.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">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="returnLabel">Returns:</span></dt>
|
|
<dd>This matrix for the purpose of chaining methods together.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setToRotationRad-float-float-float-float-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setToRotationRad</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> setToRotationRad(float axisX,
|
|
float axisY,
|
|
float axisZ,
|
|
float radians)</pre>
|
|
<div class="block">Sets the matrix to a rotation matrix around the given axis.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">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>radians</code> - The angle in radians</dd>
|
|
<dt><span class="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> setToRotation(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> v1,
|
|
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> v2)</pre>
|
|
<div class="block">Set the matrix to a rotation matrix between two vectors.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>v1</code> - The base vector</dd>
|
|
<dd><code>v2</code> - The target vector</dd>
|
|
<dt><span class="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> setToRotation(float x1,
|
|
float y1,
|
|
float z1,
|
|
float x2,
|
|
float y2,
|
|
float z2)</pre>
|
|
<div class="block">Set the matrix to a rotation matrix between two vectors.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">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="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> setFromEulerAngles(float yaw,
|
|
float pitch,
|
|
float roll)</pre>
|
|
<div class="block">Sets this matrix to a rotation matrix from the given euler angles.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>yaw</code> - the yaw in degrees</dd>
|
|
<dd><code>pitch</code> - the pitch in degrees</dd>
|
|
<dd><code>roll</code> - the roll in degrees</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This matrix</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setFromEulerAnglesRad-float-float-float-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setFromEulerAnglesRad</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> setFromEulerAnglesRad(float yaw,
|
|
float pitch,
|
|
float roll)</pre>
|
|
<div class="block">Sets this matrix to a rotation matrix from the given euler angles.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>yaw</code> - the yaw in radians</dd>
|
|
<dd><code>pitch</code> - the pitch in radians</dd>
|
|
<dd><code>roll</code> - the roll in radians</dd>
|
|
<dt><span class="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> setToScaling(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> vector)</pre>
|
|
<div class="block">Sets this matrix to a scaling matrix</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>vector</code> - The scaling vector</dd>
|
|
<dt><span class="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> setToScaling(float x,
|
|
float y,
|
|
float z)</pre>
|
|
<div class="block">Sets this matrix to a scaling matrix</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">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="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> setToLookAt(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> direction,
|
|
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> 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="paramLabel">Parameters:</span></dt>
|
|
<dd><code>direction</code> - The direction vector</dd>
|
|
<dd><code>up</code> - The up vector</dd>
|
|
<dt><span class="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> setToLookAt(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> position,
|
|
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> target,
|
|
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> 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="paramLabel">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="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> setToWorld(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> position,
|
|
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> forward,
|
|
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> up)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="toString--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>toString</h4>
|
|
<pre>public java.lang.String toString()</pre>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
|
<dd><code>toString</code> in class <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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> lerp(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> matrix,
|
|
float alpha)</pre>
|
|
<div class="block">Linearly interpolates between this matrix and the given matrix mixing by alpha</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">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="returnLabel">Returns:</span></dt>
|
|
<dd>This matrix for the purpose of chaining methods together.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="avg-com.badlogic.gdx.math.Matrix4-float-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>avg</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> avg(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> other,
|
|
float w)</pre>
|
|
<div class="block">Averages the given transform with this one and stores the result in this matrix. Translations and scales are lerped while
|
|
rotations are slerped.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>other</code> - The other transform</dd>
|
|
<dd><code>w</code> - Weight of this transform; weight of the other transform is (1 - w)</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This matrix for chaining</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="avg-com.badlogic.gdx.math.Matrix4:A-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>avg</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> avg(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>[] t)</pre>
|
|
<div class="block">Averages the given transforms and stores the result in this matrix. Translations and scales are lerped while rotations are
|
|
slerped. Does not destroy the data contained in t.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>t</code> - List of transforms</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This matrix for chaining</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="avg-com.badlogic.gdx.math.Matrix4:A-float:A-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>avg</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> avg(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>[] t,
|
|
float[] w)</pre>
|
|
<div class="block">Averages the given transforms with the given weights and stores the result in this matrix. Translations and scales are
|
|
lerped while rotations are slerped. Does not destroy the data contained in t or w; Sum of w_i must be equal to 1, or
|
|
unexpected results will occur.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>t</code> - List of transforms</dd>
|
|
<dd><code>w</code> - List of weights</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This matrix for chaining</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="set-com.badlogic.gdx.math.Matrix3-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>set</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> set(<a href="../../../../com/badlogic/gdx/math/Matrix3.html" title="class in com.badlogic.gdx.math">Matrix3</a> 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="paramLabel">Parameters:</span></dt>
|
|
<dd><code>mat</code> - the matrix</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="set-com.badlogic.gdx.math.Affine2-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>set</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> set(<a href="../../../../com/badlogic/gdx/math/Affine2.html" title="class in com.badlogic.gdx.math">Affine2</a> affine)</pre>
|
|
<div class="block">Sets this matrix to the given affine matrix. The values are mapped as follows:
|
|
|
|
<pre>
|
|
[ M00 M01 0 M02 ]
|
|
[ M10 M11 0 M12 ]
|
|
[ 0 0 1 0 ]
|
|
[ 0 0 0 1 ]
|
|
</pre></div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>affine</code> - the affine matrix</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This matrix for chaining</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setAsAffine-com.badlogic.gdx.math.Affine2-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setAsAffine</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> setAsAffine(<a href="../../../../com/badlogic/gdx/math/Affine2.html" title="class in com.badlogic.gdx.math">Affine2</a> affine)</pre>
|
|
<div class="block">Assumes that this matrix is a 2D affine transformation, copying only the relevant components. The values are mapped as
|
|
follows:
|
|
|
|
<pre>
|
|
[ M00 M01 _ M02 ]
|
|
[ M10 M11 _ M12 ]
|
|
[ _ _ _ _ ]
|
|
[ _ _ _ _ ]
|
|
</pre></div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>affine</code> - the source matrix</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This matrix for chaining</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setAsAffine-com.badlogic.gdx.math.Matrix4-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setAsAffine</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> setAsAffine(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> mat)</pre>
|
|
<div class="block">Assumes that both matrices are 2D affine transformations, copying only the relevant components. The copied values are:
|
|
|
|
<pre>
|
|
[ M00 M01 _ M03 ]
|
|
[ M10 M11 _ M13 ]
|
|
[ _ _ _ _ ]
|
|
[ _ _ _ _ ]
|
|
</pre></div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>mat</code> - the source matrix</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This matrix for chaining</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="scl-com.badlogic.gdx.math.Vector3-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>scl</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> scl(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> scale)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="scl-float-float-float-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>scl</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> scl(float x,
|
|
float y,
|
|
float z)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="scl-float-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>scl</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> scl(float scale)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getTranslation-com.badlogic.gdx.math.Vector3-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getTranslation</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> getTranslation(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> position)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getRotation-com.badlogic.gdx.math.Quaternion-boolean-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRotation</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a> getRotation(<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a> rotation,
|
|
boolean normalizeAxes)</pre>
|
|
<div class="block">Gets the rotation of this matrix.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>rotation</code> - The <a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math"><code>Quaternion</code></a> to receive the rotation</dd>
|
|
<dd><code>normalizeAxes</code> - True to normalize the axes, necessary when the matrix might also include scaling.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The provided <a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math"><code>Quaternion</code></a> for chaining.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getRotation-com.badlogic.gdx.math.Quaternion-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRotation</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a> getRotation(<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a> rotation)</pre>
|
|
<div class="block">Gets the rotation of this matrix.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>rotation</code> - The <a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math"><code>Quaternion</code></a> to receive the rotation</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The provided <a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math"><code>Quaternion</code></a> for chaining.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getScaleXSquared--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getScaleXSquared</h4>
|
|
<pre>public float getScaleXSquared()</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the squared scale factor on the X axis</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getScaleYSquared--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getScaleYSquared</h4>
|
|
<pre>public float getScaleYSquared()</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the squared scale factor on the Y axis</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getScaleZSquared--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getScaleZSquared</h4>
|
|
<pre>public float getScaleZSquared()</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the squared scale factor on the Z axis</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getScaleX--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getScaleX</h4>
|
|
<pre>public float getScaleX()</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the scale factor on the X axis (non-negative)</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getScaleY--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getScaleY</h4>
|
|
<pre>public float getScaleY()</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the scale factor on the Y axis (non-negative)</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getScaleZ--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getScaleZ</h4>
|
|
<pre>public float getScaleZ()</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the scale factor on the X axis (non-negative)</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getScale-com.badlogic.gdx.math.Vector3-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getScale</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> getScale(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> scale)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>scale</code> - The vector which will receive the (non-negative) scale components on each axis.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The provided vector for chaining.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="toNormalMatrix--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>toNormalMatrix</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> toNormalMatrix()</pre>
|
|
<div class="block">removes the translational part and transposes the matrix.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="mul-float:A-float:A-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>mul</h4>
|
|
<pre>public static void mul(float[] mata,
|
|
float[] 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="paramLabel">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:A-float:A-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>mulVec</h4>
|
|
<pre>public static void mulVec(float[] mat,
|
|
float[] 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="paramLabel">Parameters:</span></dt>
|
|
<dd><code>mat</code> - the matrix</dd>
|
|
<dd><code>vec</code> - the vector.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="mulVec-float:A-float:A-int-int-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>mulVec</h4>
|
|
<pre>public static void mulVec(float[] mat,
|
|
float[] vecs,
|
|
int offset,
|
|
int numVecs,
|
|
int 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="paramLabel">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:A-float:A-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>prj</h4>
|
|
<pre>public static void prj(float[] mat,
|
|
float[] 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="paramLabel">Parameters:</span></dt>
|
|
<dd><code>mat</code> - the matrix</dd>
|
|
<dd><code>vec</code> - the vector.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="prj-float:A-float:A-int-int-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>prj</h4>
|
|
<pre>public static void prj(float[] mat,
|
|
float[] vecs,
|
|
int offset,
|
|
int numVecs,
|
|
int 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="paramLabel">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:A-float:A-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>rot</h4>
|
|
<pre>public static void rot(float[] mat,
|
|
float[] 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="paramLabel">Parameters:</span></dt>
|
|
<dd><code>mat</code> - the matrix</dd>
|
|
<dd><code>vec</code> - the vector.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="rot-float:A-float:A-int-int-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>rot</h4>
|
|
<pre>public static void rot(float[] mat,
|
|
float[] vecs,
|
|
int offset,
|
|
int numVecs,
|
|
int 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="paramLabel">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-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>inv</h4>
|
|
<pre>public static boolean inv(float[] 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="paramLabel">Parameters:</span></dt>
|
|
<dd><code>values</code> - the matrix values.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>false in case the inverse could not be calculated, true otherwise.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="det-float:A-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>det</h4>
|
|
<pre>public static float det(float[] 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="paramLabel">Parameters:</span></dt>
|
|
<dd><code>values</code> - the matrix values.</dd>
|
|
<dt><span class="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> translate(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> 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="paramLabel">Parameters:</span></dt>
|
|
<dd><code>translation</code> - </dd>
|
|
<dt><span class="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> translate(float x,
|
|
float y,
|
|
float 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="paramLabel">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="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> rotate(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> axis,
|
|
float degrees)</pre>
|
|
<div class="block">Postmultiplies this matrix with a (counter-clockwise) rotation matrix. Postmultiplication is also used by OpenGL ES' 1.x
|
|
glTranslate/glRotate/glScale.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">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="returnLabel">Returns:</span></dt>
|
|
<dd>This matrix for the purpose of chaining methods together.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="rotateRad-com.badlogic.gdx.math.Vector3-float-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>rotateRad</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> rotateRad(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> axis,
|
|
float radians)</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="paramLabel">Parameters:</span></dt>
|
|
<dd><code>axis</code> - The vector axis to rotate around.</dd>
|
|
<dd><code>radians</code> - The angle in radians.</dd>
|
|
<dt><span class="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> rotate(float axisX,
|
|
float axisY,
|
|
float axisZ,
|
|
float degrees)</pre>
|
|
<div class="block">Postmultiplies this matrix with a (counter-clockwise) rotation matrix. Postmultiplication is also used by OpenGL ES' 1.x
|
|
glTranslate/glRotate/glScale</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">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="returnLabel">Returns:</span></dt>
|
|
<dd>This matrix for the purpose of chaining methods together.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="rotateRad-float-float-float-float-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>rotateRad</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> rotateRad(float axisX,
|
|
float axisY,
|
|
float axisZ,
|
|
float radians)</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="paramLabel">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>radians</code> - The angle in radians</dd>
|
|
<dt><span class="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> rotate(<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a> 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="paramLabel">Parameters:</span></dt>
|
|
<dd><code>rotation</code> - </dd>
|
|
<dt><span class="returnLabel">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 <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> rotate(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> v1,
|
|
<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> v2)</pre>
|
|
<div class="block">Postmultiplies this matrix by the rotation between two vectors.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>v1</code> - The base vector</dd>
|
|
<dd><code>v2</code> - The target vector</dd>
|
|
<dt><span class="returnLabel">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="blockList">
|
|
<li class="blockList">
|
|
<h4>scale</h4>
|
|
<pre>public <a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a> scale(float scaleX,
|
|
float scaleY,
|
|
float 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="paramLabel">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="returnLabel">Returns:</span></dt>
|
|
<dd>This matrix for the purpose of chaining methods together.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="extract4x3Matrix-float:A-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>extract4x3Matrix</h4>
|
|
<pre>public void extract4x3Matrix(float[] dst)</pre>
|
|
<div class="block">Copies the 4x3 upper-left sub-matrix into float array. The destination array is supposed to be a column major matrix.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>dst</code> - the destination matrix</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="hasRotationOrScaling--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>hasRotationOrScaling</h4>
|
|
<pre>public boolean hasRotationOrScaling()</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>True if this matrix has any rotation or scaling, false otherwise</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>
|
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
|
<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">libgdx API</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="typeNameLink">Prev Class</span></a></li>
|
|
<li><a href="../../../../com/badlogic/gdx/math/Path.html" title="interface in com.badlogic.gdx.math"><span class="typeNameLink">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: </li>
|
|
<li>Nested | </li>
|
|
<li><a href="#field.summary">Field</a> | </li>
|
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li><a href="#field.detail">Field</a> | </li>
|
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip.navbar.bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
<p class="legalCopy"><small>
|
|
<div style="font-size:9pt"><i>
|
|
Copyright © 2010-2013 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
|
|
</i></div>
|
|
</small></p>
|
|
</body>
|
|
</html>
|