Subversion Repositories AndroidProjects

Rev

Blame | Last modification | View Log | RSS feed

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_17) on Sun Nov 03 15:35:43 CET 2013 -->
<title>Vector3 (libgdx API)</title>
<meta name="date" content="2013-11-03">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
   if (location.href.indexOf('is-external=true') == -1) {
       parent.document.title="Vector3 (libgdx API)";
   }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Vector3.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em>
                                libgdx API
                                <style>
                                body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt }
                                pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif }
                                h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%;  font-weight:bold }
                                .TableHeadingColor { background:#EEEEFF; }
                                a { text-decoration:none }
                                a:hover { text-decoration:underline }
                                a:link, a:visited { color:blue }
                                table { border:0px }
                                .TableRowColor td:first-child { border-left:1px solid black }
                                .TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black }
                                hr { border:0px; border-bottom:1px solid #333366; }
                                </style>
                        </em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../com/badlogic/gdx/math/WindowedMean.html" title="class in com.badlogic.gdx.math"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/badlogic/gdx/math/Vector3.html" target="_top">Frames</a></li>
<li><a href="Vector3.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
 allClassesLink = document.getElementById("allclasses_navbar_top");
 if(window==top) {
   allClassesLink.style.display = "block";
 }
 else {
   allClassesLink.style.display = "none";
 }
 //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.badlogic.gdx.math</div>
<h2 title="Class Vector3" class="title">Class Vector3</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>com.badlogic.gdx.math.Vector3</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../com/badlogic/gdx/math/Vector.html" title="interface in com.badlogic.gdx.math">Vector</a>&lt;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&gt;, java.io.Serializable</dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">Vector3</span>
extends java.lang.Object
implements java.io.Serializable, <a href="../../../../com/badlogic/gdx/math/Vector.html" title="interface in com.badlogic.gdx.math">Vector</a>&lt;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&gt;</pre>
<div class="block">Encapsulates a 3D vector. Allows chaining operations by returning a reference to itself in all modification methods.</div>
<dl><dt><span class="strong">Author:</span></dt>
  <dd>badlogicgames@gmail.com</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../serialized-form.html#com.badlogic.gdx.math.Vector3">Serialized Form</a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#tmp">tmp</a></strong></code>
<div class="block"><strong>Deprecated.</strong>&nbsp;
<div class="block"><i>Static temporary vector. Use with care! Use only when sure other code will not also use this.</i></div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#tmp2">tmp2</a></strong></code>
<div class="block"><strong>Deprecated.</strong>&nbsp;
<div class="block"><i>Static temporary vector. Use with care! Use only when sure other code will not also use this.</i></div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#tmp3">tmp3</a></strong></code>
<div class="block"><strong>Deprecated.</strong>&nbsp;
<div class="block"><i>Static temporary vector. Use with care! Use only when sure other code will not also use this.</i></div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#x">x</a></strong></code>
<div class="block">the x-component of this vector</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#X">X</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#y">y</a></strong></code>
<div class="block">the y-component of this vector</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#Y">Y</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#z">z</a></strong></code>
<div class="block">the z-component of this vector</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#Z">Z</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#Zero">Zero</a></strong></code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#Vector3()">Vector3</a></strong>()</code>
<div class="block">Constructs a vector at (0,0,0)</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#Vector3(float[])">Vector3</a></strong>(float[]&nbsp;values)</code>
<div class="block">Creates a vector from the given array.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#Vector3(float, float, float)">Vector3</a></strong>(float&nbsp;x,
       float&nbsp;y,
       float&nbsp;z)</code>
<div class="block">Creates a vector with the given components</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#Vector3(com.badlogic.gdx.math.Vector2, float)">Vector3</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</a>&nbsp;vector,
       float&nbsp;z)</code>
<div class="block">Creates a vector from the given vector and z-component</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#Vector3(com.badlogic.gdx.math.Vector3)">Vector3</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;vector)</code>
<div class="block">Creates a vector from the given vector</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#add(float)">add</a></strong>(float&nbsp;values)</code>
<div class="block">Adds the given value to all three components of the vector.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#add(float, float, float)">add</a></strong>(float&nbsp;x,
   float&nbsp;y,
   float&nbsp;z)</code>
<div class="block">Adds the given vector to this component</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#add(com.badlogic.gdx.math.Vector3)">add</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;vector)</code>
<div class="block">Adds the given vector to this vector</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#clamp(float, float)">clamp</a></strong>(float&nbsp;min,
     float&nbsp;max)</code>
<div class="block">Clamps this vector's length to given value</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#cpy()">cpy</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#crs(float, float, float)">crs</a></strong>(float&nbsp;x,
   float&nbsp;y,
   float&nbsp;z)</code>
<div class="block">Sets this vector to the cross product between it and the other vector.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#crs(com.badlogic.gdx.math.Vector3)">crs</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;vector)</code>
<div class="block">Sets this vector to the cross product between it and the other vector.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#div(float)">div</a></strong>(float&nbsp;value)</code>
<div class="block"><strong>Deprecated.</strong>&nbsp;
<div class="block"><i>Use <a href="../../../../com/badlogic/gdx/math/Vector3.html#scl(float)"><code>scl(float)</code></a> instead.
 Divides all components of this vector by the given value</i></div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#div(float, float, float)">div</a></strong>(float&nbsp;vx,
   float&nbsp;vy,
   float&nbsp;vz)</code>
<div class="block"><strong>Deprecated.</strong>&nbsp;
<div class="block"><i>Use <a href="../../../../com/badlogic/gdx/math/Vector3.html#scl(float, float, float)"><code>scl(float, float, float)</code></a> instead.
 Divides this vector by the given vector</i></div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#div(com.badlogic.gdx.math.Vector3)">div</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;other)</code>
<div class="block"><strong>Deprecated.</strong>&nbsp;
<div class="block"><i>Use <a href="../../../../com/badlogic/gdx/math/Vector3.html#scl(com.badlogic.gdx.math.Vector3)"><code>scl(Vector3)</code></a> instead.
 Divides this vector by the given vector</i></div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#dot(float, float, float)">dot</a></strong>(float&nbsp;x,
   float&nbsp;y,
   float&nbsp;z)</code>
<div class="block">Returns the dot product between this and the given vector.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static float</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#dot(float, float, float, float, float, float)">dot</a></strong>(float&nbsp;x1,
   float&nbsp;y1,
   float&nbsp;z1,
   float&nbsp;x2,
   float&nbsp;y2,
   float&nbsp;z2)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#dot(com.badlogic.gdx.math.Vector3)">dot</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;vector)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#dst(float, float, float)">dst</a></strong>(float&nbsp;x,
   float&nbsp;y,
   float&nbsp;z)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static float</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#dst(float, float, float, float, float, float)">dst</a></strong>(float&nbsp;x1,
   float&nbsp;y1,
   float&nbsp;z1,
   float&nbsp;x2,
   float&nbsp;y2,
   float&nbsp;z2)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#dst(com.badlogic.gdx.math.Vector3)">dst</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;vector)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#dst2(float, float, float)">dst2</a></strong>(float&nbsp;x,
    float&nbsp;y,
    float&nbsp;z)</code>
<div class="block">Returns the squared distance between this point and the given point</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static float</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#dst2(float, float, float, float, float, float)">dst2</a></strong>(float&nbsp;x1,
    float&nbsp;y1,
    float&nbsp;z1,
    float&nbsp;x2,
    float&nbsp;y2,
    float&nbsp;z2)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#dst2(com.badlogic.gdx.math.Vector3)">dst2</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;point)</code>
<div class="block">Returns the squared distance between this point and the given point</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#epsilonEquals(float, float, float, float)">epsilonEquals</a></strong>(float&nbsp;x,
             float&nbsp;y,
             float&nbsp;z,
             float&nbsp;epsilon)</code>
<div class="block">Compares this vector with the other vector, using the supplied epsilon for fuzzy equality testing.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#epsilonEquals(com.badlogic.gdx.math.Vector3, float)">epsilonEquals</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;obj,
             float&nbsp;epsilon)</code>
<div class="block">Compares this vector with the other vector, using the supplied epsilon for fuzzy equality testing.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#equals(java.lang.Object)">equals</a></strong>(java.lang.Object&nbsp;obj)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#hashCode()">hashCode</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#idt(com.badlogic.gdx.math.Vector3)">idt</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;vector)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#isUnit()">isUnit</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#isUnit(float)">isUnit</a></strong>(float&nbsp;margin)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#isZero()">isZero</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#isZero(float)">isZero</a></strong>(float&nbsp;margin)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#len()">len</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static float</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#len(float, float, float)">len</a></strong>(float&nbsp;x,
   float&nbsp;y,
   float&nbsp;z)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#len2()">len2</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static float</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#len2(float, float, float)">len2</a></strong>(float&nbsp;x,
    float&nbsp;y,
    float&nbsp;z)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#lerp(com.badlogic.gdx.math.Vector3, float)">lerp</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;target,
    float&nbsp;alpha)</code>
<div class="block">Linearly interpolates between this vector and the target vector by alpha which is in the range [0,1].</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#limit(float)">limit</a></strong>(float&nbsp;limit)</code>
<div class="block">Limits this vector's length to given value</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#mul(float)">mul</a></strong>(float&nbsp;value)</code>
<div class="block"><strong>Deprecated.</strong>&nbsp;
<div class="block"><i>Use <a href="../../../../com/badlogic/gdx/math/Vector3.html#scl(float)"><code>scl(float)</code></a> instead.</i></div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#mul(float, float, float)">mul</a></strong>(float&nbsp;vx,
   float&nbsp;vy,
   float&nbsp;vz)</code>
<div class="block"><strong>Deprecated.</strong>&nbsp;
<div class="block"><i>Use <a href="../../../../com/badlogic/gdx/math/Vector3.html#scl(float, float, float)"><code>scl(float, float, float)</code></a> instead.</i></div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#mul(com.badlogic.gdx.math.Matrix4)">mul</a></strong>(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;matrix)</code>
<div class="block">Left-multiplies the vector by the given matrix, assuming the fourth (w) component of the vector is 1.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#mul(com.badlogic.gdx.math.Quaternion)">mul</a></strong>(<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a>&nbsp;quat)</code>
<div class="block">Multiplies the vector by 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="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#mul(com.badlogic.gdx.math.Vector3)">mul</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;other)</code>
<div class="block"><strong>Deprecated.</strong>&nbsp;
<div class="block"><i>Use <a href="../../../../com/badlogic/gdx/math/Vector3.html#scl(com.badlogic.gdx.math.Vector3)"><code>scl(Vector3)</code></a> instead.</i></div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#nor()">nor</a></strong>()</code>
<div class="block">Normalizes this vector to unit length.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#prj(com.badlogic.gdx.math.Matrix4)">prj</a></strong>(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;matrix)</code>
<div class="block">Multiplies this vector by the given matrix dividing by w, assuming the fourth (w) component of the vector is 1.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#rot(com.badlogic.gdx.math.Matrix4)">rot</a></strong>(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;matrix)</code>
<div class="block">Multiplies this vector by the first three columns of the matrix, essentially only applying rotation and scaling.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#rotate(float, float, float, float)">rotate</a></strong>(float&nbsp;degrees,
      float&nbsp;axisX,
      float&nbsp;axisY,
      float&nbsp;axisZ)</code>
<div class="block">Rotates this vector by the given angle in degrees around the given axis.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#rotate(com.badlogic.gdx.math.Vector3, float)">rotate</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;axis,
      float&nbsp;degrees)</code>
<div class="block">Rotates this vector by the given angle in degrees around the given axis.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#scale(float, float, float)">scale</a></strong>(float&nbsp;scalarX,
     float&nbsp;scalarY,
     float&nbsp;scalarZ)</code>
<div class="block"><strong>Deprecated.</strong>&nbsp;
<div class="block"><i>Use <a href="../../../../com/badlogic/gdx/math/Vector3.html#scl(float, float, float)"><code>scl(float, float, float)</code></a> instead.</i></div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#scl(float)">scl</a></strong>(float&nbsp;value)</code>
<div class="block">Scales this vector by the given value</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#scl(float, float, float)">scl</a></strong>(float&nbsp;vx,
   float&nbsp;vy,
   float&nbsp;vz)</code>
<div class="block">Scales this vector by the given values</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#scl(com.badlogic.gdx.math.Vector3)">scl</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;other)</code>
<div class="block">Scales this vector by the given vector3's values</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#set(float[])">set</a></strong>(float[]&nbsp;values)</code>
<div class="block">Sets the components from the array.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#set(float, float, float)">set</a></strong>(float&nbsp;x,
   float&nbsp;y,
   float&nbsp;z)</code>
<div class="block">Sets the vector to the given components</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#set(com.badlogic.gdx.math.Vector2, float)">set</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</a>&nbsp;vector,
   float&nbsp;z)</code>
<div class="block">Sets the components of the given vector and z-component</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#set(com.badlogic.gdx.math.Vector3)">set</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;vector)</code>
<div class="block">Sets the components of the given vector</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#slerp(com.badlogic.gdx.math.Vector3, float)">slerp</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;target,
     float&nbsp;alpha)</code>
<div class="block">Spherically interpolates between this vector and the target vector by alpha which is in the range [0,1].</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#sub(float)">sub</a></strong>(float&nbsp;value)</code>
<div class="block">Subtracts the given value from all components of this vector</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#sub(float, float, float)">sub</a></strong>(float&nbsp;x,
   float&nbsp;y,
   float&nbsp;z)</code>
<div class="block">Subtracts the other vector from this vector.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#sub(com.badlogic.gdx.math.Vector3)">sub</a></strong>(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;a_vec)</code>
<div class="block">Subtracts the given vector from this vector</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#tmp()">tmp</a></strong>()</code>
<div class="block"><strong>Deprecated.</strong>&nbsp;
<div class="block"><i>NEVER EVER SAVE THIS REFERENCE! Do not use this unless you are aware of the side-effects, e.g. other methods might call this
 as well.</i></div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#tmp2()">tmp2</a></strong>()</code>
<div class="block"><strong>Deprecated.</strong>&nbsp;
<div class="block"><i>NEVER EVER SAVE THIS REFERENCE! Do not use this unless you are aware of the side-effects, e.g. other methods might call this
 as well.</i></div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/math/Vector3.html#toString()">toString</a></strong>()</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, finalize, getClass, 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="x">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>x</h4>
<pre>public&nbsp;float x</pre>
<div class="block">the x-component of this vector</div>
</li>
</ul>
<a name="y">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>y</h4>
<pre>public&nbsp;float y</pre>
<div class="block">the y-component of this vector</div>
</li>
</ul>
<a name="z">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>z</h4>
<pre>public&nbsp;float z</pre>
<div class="block">the z-component of this vector</div>
</li>
</ul>
<a name="tmp">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>tmp</h4>
<pre>public static final&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> tmp</pre>
<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>Static temporary vector. Use with care! Use only when sure other code will not also use this.</i></div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../com/badlogic/gdx/math/Vector3.html#tmp()"><code>tmp()</code></a></dd></dl>
</li>
</ul>
<a name="tmp2">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>tmp2</h4>
<pre>public static final&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> tmp2</pre>
<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>Static temporary vector. Use with care! Use only when sure other code will not also use this.</i></div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../com/badlogic/gdx/math/Vector3.html#tmp()"><code>tmp()</code></a></dd></dl>
</li>
</ul>
<a name="tmp3">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>tmp3</h4>
<pre>public static final&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> tmp3</pre>
<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>Static temporary vector. Use with care! Use only when sure other code will not also use this.</i></div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../com/badlogic/gdx/math/Vector3.html#tmp()"><code>tmp()</code></a></dd></dl>
</li>
</ul>
<a name="X">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>X</h4>
<pre>public static final&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> X</pre>
</li>
</ul>
<a name="Y">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Y</h4>
<pre>public static final&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> Y</pre>
</li>
</ul>
<a name="Z">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Z</h4>
<pre>public static final&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> Z</pre>
</li>
</ul>
<a name="Zero">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Zero</h4>
<pre>public static final&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a> Zero</pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="Vector3()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Vector3</h4>
<pre>public&nbsp;Vector3()</pre>
<div class="block">Constructs a vector at (0,0,0)</div>
</li>
</ul>
<a name="Vector3(float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Vector3</h4>
<pre>public&nbsp;Vector3(float&nbsp;x,
       float&nbsp;y,
       float&nbsp;z)</pre>
<div class="block">Creates a vector with the given components</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - The x-component</dd><dd><code>y</code> - The y-component</dd><dd><code>z</code> - The z-component</dd></dl>
</li>
</ul>
<a name="Vector3(com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Vector3</h4>
<pre>public&nbsp;Vector3(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;vector)</pre>
<div class="block">Creates a vector from the given vector</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>vector</code> - The vector</dd></dl>
</li>
</ul>
<a name="Vector3(float[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Vector3</h4>
<pre>public&nbsp;Vector3(float[]&nbsp;values)</pre>
<div class="block">Creates a vector from the given array. The array must have at least 3 elements.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>values</code> - The array</dd></dl>
</li>
</ul>
<a name="Vector3(com.badlogic.gdx.math.Vector2, float)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Vector3</h4>
<pre>public&nbsp;Vector3(<a href="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</a>&nbsp;vector,
       float&nbsp;z)</pre>
<div class="block">Creates a vector from the given vector and z-component</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>vector</code> - The vector</dd><dd><code>z</code> - The z-component</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(float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;set(float&nbsp;x,
          float&nbsp;y,
          float&nbsp;z)</pre>
<div class="block">Sets the vector to the given components</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - The x-component</dd><dd><code>y</code> - The y-component</dd><dd><code>z</code> - The z-component</dd>
<dt><span class="strong">Returns:</span></dt><dd>this vector for chaining</dd></dl>
</li>
</ul>
<a name="set(com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;set(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;vector)</pre>
<div class="block">Sets the components of the given vector</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../com/badlogic/gdx/math/Vector.html#set(T)">set</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/badlogic/gdx/math/Vector.html" title="interface in com.badlogic.gdx.math">Vector</a>&lt;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&gt;</code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>vector</code> - The vector</dd>
<dt><span class="strong">Returns:</span></dt><dd>This vector for chaining</dd></dl>
</li>
</ul>
<a name="set(float[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;set(float[]&nbsp;values)</pre>
<div class="block">Sets the components from the array. The array must have at least 3 elements</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>values</code> - The array</dd>
<dt><span class="strong">Returns:</span></dt><dd>this vector for chaining</dd></dl>
</li>
</ul>
<a name="set(com.badlogic.gdx.math.Vector2, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;set(<a href="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</a>&nbsp;vector,
          float&nbsp;z)</pre>
<div class="block">Sets the components of the given vector and z-component</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>vector</code> - The vector</dd><dd><code>z</code> - The z-component</dd>
<dt><span class="strong">Returns:</span></dt><dd>This vector for chaining</dd></dl>
</li>
</ul>
<a name="cpy()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cpy</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;cpy()</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../com/badlogic/gdx/math/Vector.html#cpy()">cpy</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/badlogic/gdx/math/Vector.html" title="interface in com.badlogic.gdx.math">Vector</a>&lt;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&gt;</code></dd>
<dt><span class="strong">Returns:</span></dt><dd>a copy of this vector</dd></dl>
</li>
</ul>
<a name="tmp()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>tmp</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;tmp()</pre>
<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>NEVER EVER SAVE THIS REFERENCE! Do not use this unless you are aware of the side-effects, e.g. other methods might call this
 as well.</i></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a temporary copy of this vector</dd></dl>
</li>
</ul>
<a name="tmp2()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>tmp2</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;tmp2()</pre>
<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>NEVER EVER SAVE THIS REFERENCE! Do not use this unless you are aware of the side-effects, e.g. other methods might call this
 as well.</i></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a temporary copy of this vector</dd></dl>
</li>
</ul>
<a name="add(com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;add(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;vector)</pre>
<div class="block">Adds the given vector to this vector</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../com/badlogic/gdx/math/Vector.html#add(T)">add</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/badlogic/gdx/math/Vector.html" title="interface in com.badlogic.gdx.math">Vector</a>&lt;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&gt;</code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>vector</code> - The other vector</dd>
<dt><span class="strong">Returns:</span></dt><dd>This vector for chaining</dd></dl>
</li>
</ul>
<a name="add(float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;add(float&nbsp;x,
          float&nbsp;y,
          float&nbsp;z)</pre>
<div class="block">Adds the given vector to this component</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - The x-component of the other vector</dd><dd><code>y</code> - The y-component of the other vector</dd><dd><code>z</code> - The z-component of the other vector</dd>
<dt><span class="strong">Returns:</span></dt><dd>This vector for chaining.</dd></dl>
</li>
</ul>
<a name="add(float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;add(float&nbsp;values)</pre>
<div class="block">Adds the given value to all three components of the vector.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>values</code> - The value</dd>
<dt><span class="strong">Returns:</span></dt><dd>This vector for chaining</dd></dl>
</li>
</ul>
<a name="sub(com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sub</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;sub(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;a_vec)</pre>
<div class="block">Subtracts the given vector from this vector</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../com/badlogic/gdx/math/Vector.html#sub(T)">sub</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/badlogic/gdx/math/Vector.html" title="interface in com.badlogic.gdx.math">Vector</a>&lt;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&gt;</code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>a_vec</code> - The other vector</dd>
<dt><span class="strong">Returns:</span></dt><dd>This vector for chaining</dd></dl>
</li>
</ul>
<a name="sub(float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sub</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;sub(float&nbsp;x,
          float&nbsp;y,
          float&nbsp;z)</pre>
<div class="block">Subtracts the other vector from this vector.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - The x-component of the other vector</dd><dd><code>y</code> - The y-component of the other vector</dd><dd><code>z</code> - The z-component of the other vector</dd>
<dt><span class="strong">Returns:</span></dt><dd>This vector for chaining</dd></dl>
</li>
</ul>
<a name="sub(float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sub</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;sub(float&nbsp;value)</pre>
<div class="block">Subtracts the given value from all components of this vector</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - The value</dd>
<dt><span class="strong">Returns:</span></dt><dd>This vector for chaining</dd></dl>
</li>
</ul>
<a name="scl(float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>scl</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;scl(float&nbsp;value)</pre>
<div class="block">Scales this vector by the given value</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../com/badlogic/gdx/math/Vector.html#scl(float)">scl</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/badlogic/gdx/math/Vector.html" title="interface in com.badlogic.gdx.math">Vector</a>&lt;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&gt;</code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - The value</dd>
<dt><span class="strong">Returns:</span></dt><dd>This vector for chaining</dd></dl>
</li>
</ul>
<a name="mul(float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mul</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;mul(float&nbsp;value)</pre>
<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>Use <a href="../../../../com/badlogic/gdx/math/Vector3.html#scl(float)"><code>scl(float)</code></a> instead.</i></div>
</li>
</ul>
<a name="scl(com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>scl</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;scl(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;other)</pre>
<div class="block">Scales this vector by the given vector3's values</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../com/badlogic/gdx/math/Vector.html#scl(T)">scl</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/badlogic/gdx/math/Vector.html" title="interface in com.badlogic.gdx.math">Vector</a>&lt;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&gt;</code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>other</code> - The vector3 to multiply by</dd>
<dt><span class="strong">Returns:</span></dt><dd>This vector for chaining</dd></dl>
</li>
</ul>
<a name="mul(com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mul</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;mul(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;other)</pre>
<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>Use <a href="../../../../com/badlogic/gdx/math/Vector3.html#scl(com.badlogic.gdx.math.Vector3)"><code>scl(Vector3)</code></a> instead.</i></div>
</li>
</ul>
<a name="scl(float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>scl</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;scl(float&nbsp;vx,
          float&nbsp;vy,
          float&nbsp;vz)</pre>
<div class="block">Scales this vector by the given values</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>vx</code> - X value</dd><dd><code>vy</code> - Y value</dd><dd><code>vz</code> - Z value</dd>
<dt><span class="strong">Returns:</span></dt><dd>This vector for chaining</dd></dl>
</li>
</ul>
<a name="mul(float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mul</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;mul(float&nbsp;vx,
          float&nbsp;vy,
          float&nbsp;vz)</pre>
<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>Use <a href="../../../../com/badlogic/gdx/math/Vector3.html#scl(float, float, float)"><code>scl(float, float, float)</code></a> instead.</i></div>
</li>
</ul>
<a name="scale(float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>scale</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;scale(float&nbsp;scalarX,
            float&nbsp;scalarY,
            float&nbsp;scalarZ)</pre>
<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>Use <a href="../../../../com/badlogic/gdx/math/Vector3.html#scl(float, float, float)"><code>scl(float, float, float)</code></a> instead.</i></div>
</li>
</ul>
<a name="div(float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>div</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;div(float&nbsp;value)</pre>
<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>Use <a href="../../../../com/badlogic/gdx/math/Vector3.html#scl(float)"><code>scl(float)</code></a> instead.
 Divides all components of this vector by the given value</i></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - The value</dd>
<dt><span class="strong">Returns:</span></dt><dd>This vector for chaining</dd></dl>
</li>
</ul>
<a name="div(float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>div</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;div(float&nbsp;vx,
          float&nbsp;vy,
          float&nbsp;vz)</pre>
<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>Use <a href="../../../../com/badlogic/gdx/math/Vector3.html#scl(float, float, float)"><code>scl(float, float, float)</code></a> instead.
 Divides this vector by the given vector</i></div>
</li>
</ul>
<a name="div(com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>div</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;div(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;other)</pre>
<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>Use <a href="../../../../com/badlogic/gdx/math/Vector3.html#scl(com.badlogic.gdx.math.Vector3)"><code>scl(Vector3)</code></a> instead.
 Divides this vector by the given vector</i></div>
</li>
</ul>
<a name="len(float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>len</h4>
<pre>public static&nbsp;float&nbsp;len(float&nbsp;x,
        float&nbsp;y,
        float&nbsp;z)</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>The euclidian length</dd></dl>
</li>
</ul>
<a name="len()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>len</h4>
<pre>public&nbsp;float&nbsp;len()</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../com/badlogic/gdx/math/Vector.html#len()">len</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/badlogic/gdx/math/Vector.html" title="interface in com.badlogic.gdx.math">Vector</a>&lt;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&gt;</code></dd>
<dt><span class="strong">Returns:</span></dt><dd>The euclidian length</dd></dl>
</li>
</ul>
<a name="len2(float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>len2</h4>
<pre>public static&nbsp;float&nbsp;len2(float&nbsp;x,
         float&nbsp;y,
         float&nbsp;z)</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>The squared euclidian length</dd></dl>
</li>
</ul>
<a name="len2()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>len2</h4>
<pre>public&nbsp;float&nbsp;len2()</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../com/badlogic/gdx/math/Vector.html#len2()">len2</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/badlogic/gdx/math/Vector.html" title="interface in com.badlogic.gdx.math">Vector</a>&lt;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&gt;</code></dd>
<dt><span class="strong">Returns:</span></dt><dd>The squared euclidian length</dd></dl>
</li>
</ul>
<a name="idt(com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>idt</h4>
<pre>public&nbsp;boolean&nbsp;idt(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;vector)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>vector</code> - The other vector</dd>
<dt><span class="strong">Returns:</span></dt><dd>Wether this and the other vector are equal</dd></dl>
</li>
</ul>
<a name="dst(float, float, float, float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dst</h4>
<pre>public static&nbsp;float&nbsp;dst(float&nbsp;x1,
        float&nbsp;y1,
        float&nbsp;z1,
        float&nbsp;x2,
        float&nbsp;y2,
        float&nbsp;z2)</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>The euclidian distance between the two specified vectors</dd></dl>
</li>
</ul>
<a name="dst(com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dst</h4>
<pre>public&nbsp;float&nbsp;dst(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;vector)</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../com/badlogic/gdx/math/Vector.html#dst(T)">dst</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/badlogic/gdx/math/Vector.html" title="interface in com.badlogic.gdx.math">Vector</a>&lt;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&gt;</code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>vector</code> - The other vector</dd>
<dt><span class="strong">Returns:</span></dt><dd>The euclidian distance between this and the other vector</dd></dl>
</li>
</ul>
<a name="dst(float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dst</h4>
<pre>public&nbsp;float&nbsp;dst(float&nbsp;x,
        float&nbsp;y,
        float&nbsp;z)</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>the distance between this point and the given point</dd></dl>
</li>
</ul>
<a name="dst2(float, float, float, float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dst2</h4>
<pre>public static&nbsp;float&nbsp;dst2(float&nbsp;x1,
         float&nbsp;y1,
         float&nbsp;z1,
         float&nbsp;x2,
         float&nbsp;y2,
         float&nbsp;z2)</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>the squared distance between the given points</dd></dl>
</li>
</ul>
<a name="dst2(com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dst2</h4>
<pre>public&nbsp;float&nbsp;dst2(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;point)</pre>
<div class="block">Returns the squared distance between this point and the given point</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../com/badlogic/gdx/math/Vector.html#dst2(T)">dst2</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/badlogic/gdx/math/Vector.html" title="interface in com.badlogic.gdx.math">Vector</a>&lt;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&gt;</code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>point</code> - The other point</dd>
<dt><span class="strong">Returns:</span></dt><dd>The squared distance</dd></dl>
</li>
</ul>
<a name="dst2(float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dst2</h4>
<pre>public&nbsp;float&nbsp;dst2(float&nbsp;x,
         float&nbsp;y,
         float&nbsp;z)</pre>
<div class="block">Returns the squared distance between this point and the given point</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - The x-component of the other point</dd><dd><code>y</code> - The y-component of the other point</dd><dd><code>z</code> - The z-component of the other point</dd>
<dt><span class="strong">Returns:</span></dt><dd>The squared distance</dd></dl>
</li>
</ul>
<a name="nor()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nor</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;nor()</pre>
<div class="block">Normalizes this vector to unit length. Does nothing if it is zero.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../com/badlogic/gdx/math/Vector.html#nor()">nor</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/badlogic/gdx/math/Vector.html" title="interface in com.badlogic.gdx.math">Vector</a>&lt;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&gt;</code></dd>
<dt><span class="strong">Returns:</span></dt><dd>This vector for chaining</dd></dl>
</li>
</ul>
<a name="dot(float, float, float, float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dot</h4>
<pre>public static&nbsp;float&nbsp;dot(float&nbsp;x1,
        float&nbsp;y1,
        float&nbsp;z1,
        float&nbsp;x2,
        float&nbsp;y2,
        float&nbsp;z2)</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>The dot product between the two vectors</dd></dl>
</li>
</ul>
<a name="dot(com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dot</h4>
<pre>public&nbsp;float&nbsp;dot(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;vector)</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../com/badlogic/gdx/math/Vector.html#dot(T)">dot</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/badlogic/gdx/math/Vector.html" title="interface in com.badlogic.gdx.math">Vector</a>&lt;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&gt;</code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>vector</code> - The other vector</dd>
<dt><span class="strong">Returns:</span></dt><dd>The dot product between this and the other vector</dd></dl>
</li>
</ul>
<a name="dot(float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dot</h4>
<pre>public&nbsp;float&nbsp;dot(float&nbsp;x,
        float&nbsp;y,
        float&nbsp;z)</pre>
<div class="block">Returns the dot product between this and the given vector.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - The x-component of the other vector</dd><dd><code>y</code> - The y-component of the other vector</dd><dd><code>z</code> - The z-component of the other vector</dd>
<dt><span class="strong">Returns:</span></dt><dd>The dot product</dd></dl>
</li>
</ul>
<a name="crs(com.badlogic.gdx.math.Vector3)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>crs</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;crs(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;vector)</pre>
<div class="block">Sets this vector to the cross product between it and the other vector.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>vector</code> - The other vector</dd>
<dt><span class="strong">Returns:</span></dt><dd>This vector for chaining</dd></dl>
</li>
</ul>
<a name="crs(float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>crs</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;crs(float&nbsp;x,
          float&nbsp;y,
          float&nbsp;z)</pre>
<div class="block">Sets this vector to the cross product between it and the other vector.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - The x-component of the other vector</dd><dd><code>y</code> - The y-component of the other vector</dd><dd><code>z</code> - The z-component of the other vector</dd>
<dt><span class="strong">Returns:</span></dt><dd>This vector for chaining</dd></dl>
</li>
</ul>
<a name="mul(com.badlogic.gdx.math.Matrix4)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mul</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;mul(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;matrix)</pre>
<div class="block">Left-multiplies the vector by the given matrix, assuming the fourth (w) component of the vector is 1.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>matrix</code> - The matrix</dd>
<dt><span class="strong">Returns:</span></dt><dd>This vector for chaining</dd></dl>
</li>
</ul>
<a name="mul(com.badlogic.gdx.math.Quaternion)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mul</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;mul(<a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion</a>&nbsp;quat)</pre>
<div class="block">Multiplies the vector by the given <a href="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math"><code>Quaternion</code></a>.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>This vector for chaining</dd></dl>
</li>
</ul>
<a name="prj(com.badlogic.gdx.math.Matrix4)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>prj</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;prj(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;matrix)</pre>
<div class="block">Multiplies this vector by the given matrix dividing by w, assuming the fourth (w) component of the vector is 1.
 This is mostly used to project/unproject vectors via a perspective projection matrix.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>matrix</code> - The matrix.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This vector for chaining</dd></dl>
</li>
</ul>
<a name="rot(com.badlogic.gdx.math.Matrix4)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rot</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;rot(<a href="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4</a>&nbsp;matrix)</pre>
<div class="block">Multiplies this vector by the first three columns of the matrix, essentially only applying rotation and scaling.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>matrix</code> - The matrix</dd>
<dt><span class="strong">Returns:</span></dt><dd>This vector for chaining</dd></dl>
</li>
</ul>
<a name="rotate(float, float, float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rotate</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;rotate(float&nbsp;degrees,
             float&nbsp;axisX,
             float&nbsp;axisY,
             float&nbsp;axisZ)</pre>
<div class="block">Rotates this vector by the given angle in degrees around the given axis.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>degrees</code> - the angle in degrees</dd><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>
<dt><span class="strong">Returns:</span></dt><dd>This vector for chaining</dd></dl>
</li>
</ul>
<a name="rotate(com.badlogic.gdx.math.Vector3, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rotate</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;rotate(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;axis,
             float&nbsp;degrees)</pre>
<div class="block">Rotates this vector by the given angle in degrees around the given axis.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>axis</code> - the axis</dd><dd><code>degrees</code> - the angle in degrees</dd>
<dt><span class="strong">Returns:</span></dt><dd>This vector for chaining</dd></dl>
</li>
</ul>
<a name="isUnit()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isUnit</h4>
<pre>public&nbsp;boolean&nbsp;isUnit()</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>Whether this vector is a unit length vector</dd></dl>
</li>
</ul>
<a name="isUnit(float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isUnit</h4>
<pre>public&nbsp;boolean&nbsp;isUnit(float&nbsp;margin)</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>Whether this vector is a unit length vector within the given margin</dd></dl>
</li>
</ul>
<a name="isZero()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isZero</h4>
<pre>public&nbsp;boolean&nbsp;isZero()</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>Whether this vector is a zero vector</dd></dl>
</li>
</ul>
<a name="isZero(float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isZero</h4>
<pre>public&nbsp;boolean&nbsp;isZero(float&nbsp;margin)</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>Whether the length of this vector is smaller than the given margin</dd></dl>
</li>
</ul>
<a name="lerp(com.badlogic.gdx.math.Vector3, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lerp</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;lerp(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;target,
           float&nbsp;alpha)</pre>
<div class="block">Linearly interpolates between this vector and the target vector by alpha which is in the range [0,1]. The result is stored
 in this vector.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../com/badlogic/gdx/math/Vector.html#lerp(T, float)">lerp</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/badlogic/gdx/math/Vector.html" title="interface in com.badlogic.gdx.math">Vector</a>&lt;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&gt;</code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>target</code> - The target vector</dd><dd><code>alpha</code> - The interpolation coefficient</dd>
<dt><span class="strong">Returns:</span></dt><dd>This vector for chaining.</dd></dl>
</li>
</ul>
<a name="slerp(com.badlogic.gdx.math.Vector3, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>slerp</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;slerp(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;target,
            float&nbsp;alpha)</pre>
<div class="block">Spherically interpolates between this vector and the target vector by alpha which is in the range [0,1]. The result is
 stored in this vector.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>target</code> - The target vector</dd><dd><code>alpha</code> - The interpolation coefficient</dd>
<dt><span class="strong">Returns:</span></dt><dd>This vector for chaining.</dd></dl>
</li>
</ul>
<a name="toString()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;java.lang.String&nbsp;toString()</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="limit(float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>limit</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;limit(float&nbsp;limit)</pre>
<div class="block">Limits this vector's length to given value</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../com/badlogic/gdx/math/Vector.html#limit(float)">limit</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/badlogic/gdx/math/Vector.html" title="interface in com.badlogic.gdx.math">Vector</a>&lt;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&gt;</code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>limit</code> - Max length</dd>
<dt><span class="strong">Returns:</span></dt><dd>This vector for chaining</dd></dl>
</li>
</ul>
<a name="clamp(float, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clamp</h4>
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;clamp(float&nbsp;min,
            float&nbsp;max)</pre>
<div class="block">Clamps this vector's length to given value</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../com/badlogic/gdx/math/Vector.html#clamp(float, float)">clamp</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/badlogic/gdx/math/Vector.html" title="interface in com.badlogic.gdx.math">Vector</a>&lt;<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&gt;</code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>min</code> - Min length</dd><dd><code>max</code> - Max length</dd>
<dt><span class="strong">Returns:</span></dt><dd>This vector for chaining</dd></dl>
</li>
</ul>
<a name="hashCode()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hashCode</h4>
<pre>public&nbsp;int&nbsp;hashCode()</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>hashCode</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="equals(java.lang.Object)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre>public&nbsp;boolean&nbsp;equals(java.lang.Object&nbsp;obj)</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>equals</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="epsilonEquals(com.badlogic.gdx.math.Vector3, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>epsilonEquals</h4>
<pre>public&nbsp;boolean&nbsp;epsilonEquals(<a href="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3</a>&nbsp;obj,
                    float&nbsp;epsilon)</pre>
<div class="block">Compares this vector with the other vector, using the supplied epsilon for fuzzy equality testing.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>obj</code> - </dd><dd><code>epsilon</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>whether the vectors are the same.</dd></dl>
</li>
</ul>
<a name="epsilonEquals(float, float, float, float)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>epsilonEquals</h4>
<pre>public&nbsp;boolean&nbsp;epsilonEquals(float&nbsp;x,
                    float&nbsp;y,
                    float&nbsp;z,
                    float&nbsp;epsilon)</pre>
<div class="block">Compares this vector with the other vector, using the supplied epsilon for fuzzy equality testing.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>whether the vectors are the same.</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Vector3.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em>libgdx API</em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../com/badlogic/gdx/math/WindowedMean.html" title="class in com.badlogic.gdx.math"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/badlogic/gdx/math/Vector3.html" target="_top">Frames</a></li>
<li><a href="Vector3.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
 allClassesLink = document.getElementById("allclasses_navbar_bottom");
 if(window==top) {
   allClassesLink.style.display = "block";
 }
 else {
   allClassesLink.style.display = "none";
 }
 //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>
                                <div style="font-size:9pt"><i>
                                Copyright &copy; 2010-2013 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
                                </i></div>
                        </small></p>
</body>
</html>