428 lines
32 KiB
HTML
428 lines
32 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
<title>etk Library</title>
|
|
<link rel="stylesheet" href="base.css">
|
|
<link rel="stylesheet" href="menu.css">
|
|
</head>
|
|
<body>
|
|
<div class="navbar navbar-fixed-top">
|
|
<div class="container">
|
|
<h1><a href="index.html">etk library</a></h1>
|
|
<h4><a href="http://github.com/heeroyui/etk/"> [ sources ]</a></h4>
|
|
<h3>API:</h3> <div id="menu">
|
|
<ul class="niveau1">
|
|
<li class="sousmenu"><a href="namespace_etk.html">etk</a>
|
|
<ul class="niveau2">
|
|
<li><a href="namespace_etk__color.html">color</a>
|
|
</li>
|
|
<li><a href="namespace_etk__tool.html">tool</a>
|
|
</li>
|
|
<li><a href="namespace_etk__archive.html">archive</a>
|
|
</li>
|
|
<li><a href="namespace_etk__theme.html">theme</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="namespace_u32char.html">u32char</a>
|
|
</li>
|
|
<li><a href="namespace_utf8.html">utf8</a>
|
|
</li>
|
|
<li><a href="namespace_std.html">std</a>
|
|
</li>
|
|
<li><a href="namespace_debug.html">debug</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<br/><h3>Associate libraries:</h3><div id="menu">
|
|
<ul class="niveau1"><li><a href="../ewol/index.html">ewol</a></li>
|
|
</ul><ul class="niveau1"><li><a href="../ejson/index.html">ejson</a></li>
|
|
</ul><ul class="niveau1"><li><a href="../egami/index.html">egami</a></li>
|
|
</ul><ul class="niveau1"><li><a href="../ege/index.html">ege</a></li>
|
|
</ul><ul class="niveau1"><li><a href="../esvg/index.html">esvg</a></li>
|
|
</ul><ul class="niveau1"><li><a href="../exml/index.html">exml</a></li>
|
|
</ul></div>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
</div>
|
|
</div>
|
|
<div class="container" id="content">
|
|
<h1>class: etk::Vector3D</h1><hr/><h2>Description:</h2>
|
|
|
|
<br/><br/>
|
|
<h2>Constructor and Destructor:</h2>
|
|
<pre>
|
|
+ <a class="code-function" href="#8611">Vector3D</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/>+ <a class="code-function" href="#8613">Vector3D</a> (<span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-argument">_x</span>,<br/> <span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-argument">_y</span>,<br/> <span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-argument">_z</span>);<br/></pre>
|
|
<br/>
|
|
<h2>Synopsis:</h2>
|
|
<pre>
|
|
+ <span class="code-type" >T</span> <a class="code-member" href="#8610">m_floats</a>;<br/>+ Vector3D<T> & <a class="code-function" href="#8617">operator +=</a> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v</span>);<br/>+ Vector3D<T> <a class="code-function" href="#8619">operator +</a> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v</span>);<br/>+ Vector3D<T> & <a class="code-function" href="#8621">operator -=</a> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v</span>);<br/>+ Vector3D<T> <a class="code-function" href="#8623">operator -</a> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v</span>);<br/>+ Vector3D<T> & <a class="code-function" href="#8625">operator *=</a> (<span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-argument">s</span>);<br/>+ Vector3D<T> <a class="code-function" href="#8627">operator *</a> (<span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-argument">s</span>);<br/>+ Vector3D<T> & <a class="code-function" href="#8629">operator =</a> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">s</span>);<br/>+ Vector3D<T> & <a class="code-function" href="#8631">operator =</a> (<span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-argument">s</span>);<br/>+ btScalar <a class="code-function" href="#8633">dot</a> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v</span>) <span class="code-storage-keyword">const</span>;<br/>+ btScalar <a class="code-function" href="#8635">length2</a> () <span class="code-storage-keyword">const</span>;<br/>+ btScalar <a class="code-function" href="#8636">length</a> () <span class="code-storage-keyword">const</span>;<br/>+ btScalar <a class="code-function" href="#8637">distance2</a> (<span class="code-storage-keyword">const</span> btVector3 & <span class="code-argument">v</span>) <span class="code-storage-keyword">const</span>;<br/>+ btScalar <a class="code-function" href="#8639">distance</a> (<span class="code-storage-keyword">const</span> btVector3 & <span class="code-argument">v</span>) <span class="code-storage-keyword">const</span>;<br/>+ Vector3D<T> & <a class="code-function" href="#8641">safeNormalize</a> ();<br/>+ Vector3D<T> & <a class="code-function" href="#8642">normalize</a> ();<br/>+ Vector3D<T> <a class="code-function" href="#8643">normalized</a> () <span class="code-storage-keyword">const</span>;<br/>+ Vector3D<T> <a class="code-function" href="#8644">rotate</a> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">wAxis</span>,<br/> <span class="code-storage-keyword">const</span> btScalar <span class="code-argument">angle</span>) <span class="code-storage-keyword">const</span>;<br/>+ btScalar <a class="code-function" href="#8647">angle</a> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v</span>) <span class="code-storage-keyword">const</span>;<br/>+ Vector3D<T> <a class="code-function" href="#8649">absolute</a> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/>+ Vector3D<T> <a class="code-function" href="#8651">cross</a> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v</span>) <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-type" >T</span> <a class="code-function" href="#8653">triple</a> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v1</span>,<br/> <span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v2</span>) <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-type" >int32_t</span> <a class="code-function" href="#8656">minAxis</a> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-type" >int32_t</span> <a class="code-function" href="#8658">maxAxis</a> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-type" >int32_t</span> <a class="code-function" href="#8660">furthestAxis</a> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-type" >int32_t</span> <a class="code-function" href="#8662">closestAxis</a> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#8664">setInterpolate3</a> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v0</span>,<br/> <span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v1</span>,<br/> <span class="code-type" >T</span> <span class="code-argument">rt</span>);<br/>+ Vector3D<T> <a class="code-function" href="#8668">lerp</a> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v</span>,<br/> <span class="code-storage-keyword">const</span> btScalar & <span class="code-argument">t</span>) <span class="code-storage-keyword">const</span>;<br/>+ Vector3D<T> & <a class="code-function" href="#8671">operator *=</a> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v</span>);<br/>+ Vector3D<T> <a class="code-function" href="#8673">operator *</a> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v</span>);<br/>+ <span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <a class="code-function" href="#8675">getX</a> () <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <a class="code-function" href="#8676">getY</a> () <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <a class="code-function" href="#8677">getZ</a> () <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#8678">setX</a> (<span class="code-type" >T</span> <span class="code-argument">_x</span>);<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#8680">setY</a> (<span class="code-type" >T</span> <span class="code-argument">_y</span>);<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#8682">setZ</a> (<span class="code-type" >T</span> <span class="code-argument">_z</span>);<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#8684">setW</a> (<span class="code-type" >T</span> <span class="code-argument">_w</span>);<br/>+ <span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <a class="code-function" href="#8686">x</a> () <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <a class="code-function" href="#8687">y</a> () <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <a class="code-function" href="#8688">z</a> () <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <a class="code-function" href="#8689">w</a> () <span class="code-storage-keyword">const</span>;<br/>+ <a class="code-function" href="#8690">operator T *</a> ();<br/>+ <a class="code-function" href="#8691">operator const T *</a> () <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-type" >bool</span> <a class="code-function" href="#8692">operator ==</a> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">other</span>) <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-type" >bool</span> <a class="code-function" href="#8694">operator !=</a> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">other</span>) <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#8696">setMax</a> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">other</span>);<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#8698">setMin</a> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">other</span>);<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#8700">setValue</a> (<span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-argument">_x</span>,<br/> <span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-argument">_y</span>,<br/> <span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-argument">_z</span>);<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#8704">getSkewSymmetricMatrix</a> (Vector3D<T>* <span class="code-argument">v0</span>,<br/> Vector3D<T>* <span class="code-argument">v1</span>,<br/> Vector3D<T>* <span class="code-argument">v2</span>) <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#8708">setZero</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/>+ <span class="code-type" >bool</span> <a class="code-function" href="#8710">isZero</a> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
<br/>
|
|
<h2>Detail:</h2>
|
|
<a id="8610"/><a id="8611"/><h3>m_floats</h3><pre>
|
|
+ <span class="code-type" >T</span> <span class="code-member">m_floats</span>;<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8613"/><h3>Vector3D</h3><pre>
|
|
+ <span class="code-function">Vector3D</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
No initialization constructor (faster ...)<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8617"/><h3>Vector3D</h3><pre>
|
|
+ <span class="code-function">Vector3D</span> (<span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-argument">_x</span>,<br/> <span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-argument">_y</span>,<br/> <span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-argument">_z</span>);<br/></pre>
|
|
Constructor from scalars <br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter:</b></td><td><span class="code-argument">x</span> </td><td> X value</td></tr>
|
|
<td><b>Parameter:</b></td><td><span class="code-argument">y</span> </td><td> Y value </td></tr>
|
|
<td><b>Parameter:</b></td><td><span class="code-argument">z</span> </td><td> Z value</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="8619"/><h3>operator +=</h3><pre>
|
|
+ Vector3D<T> & <span class="code-function">operator +=</span> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v</span>);<br/></pre>
|
|
Add a vector to this one <br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter:</b></td><td><span class="code-argument">The</span> </td><td> vector to add to this one</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="8621"/><h3>operator +</h3><pre>
|
|
+ Vector3D<T> <span class="code-function">operator +</span> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v</span>);<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8623"/><h3>operator -=</h3><pre>
|
|
+ Vector3D<T> & <span class="code-function">operator -=</span> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v</span>);<br/></pre>
|
|
Subtract a vector from this one<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter:</b></td><td><span class="code-argument">The</span> </td><td> vector to subtract</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="8625"/><h3>operator -</h3><pre>
|
|
+ Vector3D<T> <span class="code-function">operator -</span> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v</span>);<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8627"/><h3>operator *=</h3><pre>
|
|
+ Vector3D<T> & <span class="code-function">operator *=</span> (<span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-argument">s</span>);<br/></pre>
|
|
Scale the vector<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter:</b></td><td><span class="code-argument">s</span> </td><td> Scale factor</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="8629"/><h3>operator *</h3><pre>
|
|
+ Vector3D<T> <span class="code-function">operator *</span> (<span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-argument">s</span>);<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8631"/><h3>operator =</h3><pre>
|
|
+ Vector3D<T> & <span class="code-function">operator =</span> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">s</span>);<br/></pre>
|
|
Inversely scale the vector <br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter:</b></td><td><span class="code-argument">s</span> </td><td> Scale factor to divide by</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="8633"/><h3>operator =</h3><pre>
|
|
+ Vector3D<T> & <span class="code-function">operator =</span> (<span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-argument">s</span>);<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8635"/><h3>dot</h3><pre>
|
|
+ btScalar <span class="code-function">dot</span> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v</span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
Return the dot product<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter:</b></td><td><span class="code-argument">v</span> </td><td> The other vector in the dot product</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="8636"/><h3>length2</h3><pre>
|
|
+ btScalar <span class="code-function">length2</span> () <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
Return the length of the vector squared<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8637"/><h3>length</h3><pre>
|
|
+ btScalar <span class="code-function">length</span> () <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
Return the length of the vector<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8639"/><h3>distance2</h3><pre>
|
|
+ btScalar <span class="code-function">distance2</span> (<span class="code-storage-keyword">const</span> btVector3 & <span class="code-argument">v</span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
Return the distance squared between the ends of this and another vector
|
|
This is symantically treating the vector like a point<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8641"/><h3>distance</h3><pre>
|
|
+ btScalar <span class="code-function">distance</span> (<span class="code-storage-keyword">const</span> btVector3 & <span class="code-argument">v</span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
Return the distance between the ends of this and another vector
|
|
This is symantically treating the vector like a point<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8642"/><h3>safeNormalize</h3><pre>
|
|
+ Vector3D<T> & <span class="code-function">safeNormalize</span> ();<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8643"/><h3>normalize</h3><pre>
|
|
+ Vector3D<T> & <span class="code-function">normalize</span> ();<br/></pre>
|
|
Normalize this vector
|
|
x^2 + y^2 + z^2 = 1<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8644"/><h3>normalized</h3><pre>
|
|
+ Vector3D<T> <span class="code-function">normalized</span> () <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
Return a normalized version of this vector<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8647"/><h3>rotate</h3><pre>
|
|
+ Vector3D<T> <span class="code-function">rotate</span> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">wAxis</span>,<br/> <span class="code-storage-keyword">const</span> btScalar <span class="code-argument">angle</span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
Return a rotated version of this vector<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter:</b></td><td><span class="code-argument">wAxis</span> </td><td> The axis to rotate about</td></tr>
|
|
<td><b>Parameter:</b></td><td><span class="code-argument">angle</span> </td><td> The angle to rotate by</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="8649"/><h3>angle</h3><pre>
|
|
+ btScalar <span class="code-function">angle</span> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v</span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
Return the angle between this and another vector<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter:</b></td><td><span class="code-argument">v</span> </td><td> The other vector</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="8651"/><h3>absolute</h3><pre>
|
|
+ Vector3D<T> <span class="code-function">absolute</span> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
Return a vector will the absolute values of each element<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8653"/><h3>cross</h3><pre>
|
|
+ Vector3D<T> <span class="code-function">cross</span> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v</span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
Return the cross product between this and another vector<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter:</b></td><td><span class="code-argument">v</span> </td><td> The other vector</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="8656"/><h3>triple</h3><pre>
|
|
+ <span class="code-type" >T</span> <span class="code-function">triple</span> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v1</span>,<br/> <span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v2</span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8658"/><h3>minAxis</h3><pre>
|
|
+ <span class="code-type" >int32_t</span> <span class="code-function">minAxis</span> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
Return the axis with the smallest value
|
|
Note return values are 0,1,2 for x, y, or z<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8660"/><h3>maxAxis</h3><pre>
|
|
+ <span class="code-type" >int32_t</span> <span class="code-function">maxAxis</span> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
Return the axis with the largest value
|
|
Note return values are 0,1,2 for x, y, or z<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8662"/><h3>furthestAxis</h3><pre>
|
|
+ <span class="code-type" >int32_t</span> <span class="code-function">furthestAxis</span> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8664"/><h3>closestAxis</h3><pre>
|
|
+ <span class="code-type" >int32_t</span> <span class="code-function">closestAxis</span> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8668"/><h3>setInterpolate3</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">setInterpolate3</span> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v0</span>,<br/> <span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v1</span>,<br/> <span class="code-type" >T</span> <span class="code-argument">rt</span>);<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8671"/><h3>lerp</h3><pre>
|
|
+ Vector3D<T> <span class="code-function">lerp</span> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v</span>,<br/> <span class="code-storage-keyword">const</span> btScalar & <span class="code-argument">t</span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
Return the linear interpolation between this and another vector <br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter:</b></td><td><span class="code-argument">v</span> </td><td> The other vector </td></tr>
|
|
<td><b>Parameter:</b></td><td><span class="code-argument">t</span> </td><td> The ration of this to v (t = 0 => return this, t=1 => return other)</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="8673"/><h3>operator *=</h3><pre>
|
|
+ Vector3D<T> & <span class="code-function">operator *=</span> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v</span>);<br/></pre>
|
|
Elementwise multiply this vector by the other <br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter:</b></td><td><span class="code-argument">v</span> </td><td> The other vector</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="8675"/><h3>operator *</h3><pre>
|
|
+ Vector3D<T> <span class="code-function">operator *</span> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">v</span>);<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8676"/><h3>getX</h3><pre>
|
|
+ <span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-function">getX</span> () <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
Return the x value<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8677"/><h3>getY</h3><pre>
|
|
+ <span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-function">getY</span> () <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
Return the y value<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8678"/><h3>getZ</h3><pre>
|
|
+ <span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-function">getZ</span> () <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
Return the z value<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8680"/><h3>setX</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">setX</span> (<span class="code-type" >T</span> <span class="code-argument">_x</span>);<br/></pre>
|
|
Set the x value<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8682"/><h3>setY</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">setY</span> (<span class="code-type" >T</span> <span class="code-argument">_y</span>);<br/></pre>
|
|
Set the y value<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8684"/><h3>setZ</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">setZ</span> (<span class="code-type" >T</span> <span class="code-argument">_z</span>);<br/></pre>
|
|
Set the z value<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8686"/><h3>setW</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">setW</span> (<span class="code-type" >T</span> <span class="code-argument">_w</span>);<br/></pre>
|
|
Set the w value<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8687"/><h3>x</h3><pre>
|
|
+ <span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-function">x</span> () <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
Return the x value<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8688"/><h3>y</h3><pre>
|
|
+ <span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-function">y</span> () <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
Return the y value<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8689"/><h3>z</h3><pre>
|
|
+ <span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-function">z</span> () <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
Return the z value<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8690"/><h3>w</h3><pre>
|
|
+ <span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-function">w</span> () <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
Return the w value<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8691"/><h3>operator T *</h3><pre>
|
|
+ <span class="code-function">operator T *</span> ();<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8692"/><h3>operator const T *</h3><pre>
|
|
+ <span class="code-function">operator const T *</span> () <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8694"/><h3>operator ==</h3><pre>
|
|
+ <span class="code-type" >bool</span> <span class="code-function">operator ==</span> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">other</span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8696"/><h3>operator !=</h3><pre>
|
|
+ <span class="code-type" >bool</span> <span class="code-function">operator !=</span> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">other</span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8698"/><h3>setMax</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">setMax</span> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">other</span>);<br/></pre>
|
|
Set each element to the max of the current values and the values of another btVector3<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter:</b></td><td><span class="code-argument">other</span> </td><td> The other btVector3 to compare with</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="8700"/><h3>setMin</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">setMin</span> (<span class="code-storage-keyword">const</span> Vector3D<T> & <span class="code-argument">other</span>);<br/></pre>
|
|
Set each element to the min of the current values and the values of another btVector3<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter:</b></td><td><span class="code-argument">other</span> </td><td> The other btVector3 to compare with</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="8704"/><h3>setValue</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">setValue</span> (<span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-argument">_x</span>,<br/> <span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-argument">_y</span>,<br/> <span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-argument">_z</span>);<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8708"/><h3>getSkewSymmetricMatrix</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">getSkewSymmetricMatrix</span> (Vector3D<T>* <span class="code-argument">v0</span>,<br/> Vector3D<T>* <span class="code-argument">v1</span>,<br/> Vector3D<T>* <span class="code-argument">v2</span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="8710"/><h3>setZero</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">setZero</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<h3>isZero</h3><pre>
|
|
+ <span class="code-type" >bool</span> <span class="code-function">isZero</span> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
</div>
|
|
</body>
|
|
</html>
|