359 lines
25 KiB
HTML
359 lines
25 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__log.html">log</a>
|
|
</li>
|
|
<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>
|
|
</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::template<T> Vector4D</h1><hr/><h2>Description:</h2>
|
|
|
|
<br/><br/>
|
|
<h2>Synopsis:</h2>
|
|
<pre>
|
|
+ <span class="code-type" >T</span> <a class="code-member" href="#6622">m_floats</a>;<br/>+ <a class="code-function" href="#6623">Vector4D</a> ();<br/>+ <a class="code-function" href="#6624">Vector4D</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-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-argument">_w</span>);<br/>+ Vector4D<T> & <a class="code-function" href="#6629">operator +=</a> (<span class="code-storage-keyword">const</span> Vector4D<T> & <span class="code-argument">v</span>);<br/>+ Vector4D<T> <a class="code-function" href="#6631">operator +</a> (<span class="code-storage-keyword">const</span> Vector4D<T> & <span class="code-argument">v</span>);<br/>+ Vector4D<T> & <a class="code-function" href="#6633">operator -=</a> (<span class="code-storage-keyword">const</span> Vector4D<T> & <span class="code-argument">v</span>);<br/>+ Vector4D<T> <a class="code-function" href="#6635">operator -</a> (<span class="code-storage-keyword">const</span> Vector4D<T> & <span class="code-argument">v</span>);<br/>+ Vector4D<T> & <a class="code-function" href="#6637">operator *=</a> (<span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-argument">s</span>);<br/>+ Vector4D<T> <a class="code-function" href="#6639">operator *</a> (<span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-argument">s</span>);<br/>+ Vector4D<T> & <a class="code-function" href="#6641">operator =</a> (<span class="code-storage-keyword">const</span> Vector4D<T> & <span class="code-argument">s</span>);<br/>+ Vector4D<T> & <a class="code-function" href="#6643">operator =</a> (<span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-argument">s</span>);<br/>+ <span class="code-type" >float</span> <a class="code-function" href="#6645">dot</a> (<span class="code-storage-keyword">const</span> Vector4D<T> & <span class="code-argument">v</span>) <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-type" >float</span> <a class="code-function" href="#6647">length2</a> () <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-type" >float</span> <a class="code-function" href="#6648">length</a> () <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-type" >float</span> <a class="code-function" href="#6649">distance2</a> (<span class="code-storage-keyword">const</span> Vector4D<T> & <span class="code-argument">v</span>) <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-type" >float</span> <a class="code-function" href="#6651">distance</a> (<span class="code-storage-keyword">const</span> Vector4D<T> & <span class="code-argument">v</span>) <span class="code-storage-keyword">const</span>;<br/>+ Vector4D<T> & <a class="code-function" href="#6653">normalize</a> ();<br/>+ Vector4D<T> <a class="code-function" href="#6654">normalized</a> () <span class="code-storage-keyword">const</span>;<br/>+ Vector4D<T> <a class="code-function" href="#6655">absolute</a> () <span class="code-storage-keyword">const</span>;<br/>+ Vector4D<T> & <a class="code-function" href="#6656">operator *=</a> (<span class="code-storage-keyword">const</span> Vector4D<T> & <span class="code-argument">v</span>);<br/>+ Vector4D<T> <a class="code-function" href="#6658">operator *</a> (<span class="code-storage-keyword">const</span> Vector4D<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="#6660">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="#6661">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="#6662">getZ</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="#6663">getW</a> () <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#6664">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="#6666">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="#6668">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="#6670">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="#6672">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="#6673">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="#6674">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="#6675">w</a> () <span class="code-storage-keyword">const</span>;<br/>+ <a class="code-function" href="#6676">operator T *</a> ();<br/>+ <a class="code-function" href="#6677">operator const T *</a> () <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-type" >bool</span> <a class="code-function" href="#6678">operator ==</a> (<span class="code-storage-keyword">const</span> Vector4D<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="#6680">operator !=</a> (<span class="code-storage-keyword">const</span> Vector4D<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="#6682">setMax</a> (<span class="code-storage-keyword">const</span> Vector4D<T> & <span class="code-argument">other</span>);<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#6684">setMin</a> (<span class="code-storage-keyword">const</span> Vector4D<T> & <span class="code-argument">other</span>);<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#6686">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-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-argument">_w</span>);<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#6691">setZero</a> ();<br/>+ <span class="code-type" >bool</span> <a class="code-function" href="#6692">isZero</a> () <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
<br/>
|
|
<h2>Detail:</h2>
|
|
<a id="6622"/><a id="6623"/><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="6624"/><h3>Vector4D</h3><pre>
|
|
+ <span class="code-function">Vector4D</span> ();<br/></pre>
|
|
No initialization constructor (faster ...)<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="6629"/><h3>Vector4D</h3><pre>
|
|
+ <span class="code-function">Vector4D</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/> <span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-argument">_w</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="6631"/><h3>operator +=</h3><pre>
|
|
+ Vector4D<T> & <span class="code-function">operator +=</span> (<span class="code-storage-keyword">const</span> Vector4D<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="6633"/><h3>operator +</h3><pre>
|
|
+ Vector4D<T> <span class="code-function">operator +</span> (<span class="code-storage-keyword">const</span> Vector4D<T> & <span class="code-argument">v</span>);<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="6635"/><h3>operator -=</h3><pre>
|
|
+ Vector4D<T> & <span class="code-function">operator -=</span> (<span class="code-storage-keyword">const</span> Vector4D<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="6637"/><h3>operator -</h3><pre>
|
|
+ Vector4D<T> <span class="code-function">operator -</span> (<span class="code-storage-keyword">const</span> Vector4D<T> & <span class="code-argument">v</span>);<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="6639"/><h3>operator *=</h3><pre>
|
|
+ Vector4D<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="6641"/><h3>operator *</h3><pre>
|
|
+ Vector4D<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="6643"/><h3>operator =</h3><pre>
|
|
+ Vector4D<T> & <span class="code-function">operator =</span> (<span class="code-storage-keyword">const</span> Vector4D<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="6645"/><h3>operator =</h3><pre>
|
|
+ Vector4D<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="6647"/><h3>dot</h3><pre>
|
|
+ <span class="code-type" >float</span> <span class="code-function">dot</span> (<span class="code-storage-keyword">const</span> Vector4D<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="6648"/><h3>length2</h3><pre>
|
|
+ <span class="code-type" >float</span> <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="6649"/><h3>length</h3><pre>
|
|
+ <span class="code-type" >float</span> <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="6651"/><h3>distance2</h3><pre>
|
|
+ <span class="code-type" >float</span> <span class="code-function">distance2</span> (<span class="code-storage-keyword">const</span> Vector4D<T> & <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="6653"/><h3>distance</h3><pre>
|
|
+ <span class="code-type" >float</span> <span class="code-function">distance</span> (<span class="code-storage-keyword">const</span> Vector4D<T> & <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="6654"/><h3>normalize</h3><pre>
|
|
+ Vector4D<T> & <span class="code-function">normalize</span> ();<br/></pre>
|
|
Normalize this vector
|
|
x^2 + y^2 + z^2 = 1<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="6655"/><h3>normalized</h3><pre>
|
|
+ Vector4D<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="6656"/><h3>absolute</h3><pre>
|
|
+ Vector4D<T> <span class="code-function">absolute</span> () <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
Return a rotated version of this vector<br/>Return the angle between this and another vector<br/>Return a vector will the absolute values of each element<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>
|
|
<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="6658"/><h3>operator *=</h3><pre>
|
|
+ Vector4D<T> & <span class="code-function">operator *=</span> (<span class="code-storage-keyword">const</span> Vector4D<T> & <span class="code-argument">v</span>);<br/></pre>
|
|
Return the cross product between this and another vector<br/>Return the axis with the smallest value
|
|
Note return values are 0,1,2 for x, y, or z<br/>Return the axis with the largest value
|
|
Note return values are 0,1,2 for x, y, or z<br/>Return the linear interpolation between this and another vector <br/>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>
|
|
<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>
|
|
<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="6660"/><h3>operator *</h3><pre>
|
|
+ Vector4D<T> <span class="code-function">operator *</span> (<span class="code-storage-keyword">const</span> Vector4D<T> & <span class="code-argument">v</span>);<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="6661"/><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="6662"/><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="6663"/><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="6664"/><h3>getW</h3><pre>
|
|
+ <span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-function">getW</span> () <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
Return the z value<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="6666"/><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="6668"/><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="6670"/><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="6672"/><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="6673"/><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="6674"/><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="6675"/><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="6676"/><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="6677"/><h3>operator T *</h3><pre>
|
|
+ <span class="code-function">operator T *</span> ();<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="6678"/><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="6680"/><h3>operator ==</h3><pre>
|
|
+ <span class="code-type" >bool</span> <span class="code-function">operator ==</span> (<span class="code-storage-keyword">const</span> Vector4D<T> & <span class="code-argument">other</span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="6682"/><h3>operator !=</h3><pre>
|
|
+ <span class="code-type" >bool</span> <span class="code-function">operator !=</span> (<span class="code-storage-keyword">const</span> Vector4D<T> & <span class="code-argument">other</span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="6684"/><h3>setMax</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">setMax</span> (<span class="code-storage-keyword">const</span> Vector4D<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="6686"/><h3>setMin</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">setMin</span> (<span class="code-storage-keyword">const</span> Vector4D<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="6691"/><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/> <span class="code-storage-keyword">const</span> <span class="code-type" >T</span> & <span class="code-argument">_w</span>);<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="6692"/><h3>setZero</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">setZero</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-storage-keyword">const</span>;<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
</div>
|
|
<script>
|
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
ga('create', 'UA-46753803-1', 'heeroyui.github.io');
|
|
ga('send', 'pageview');
|
|
</script>
|
|
</body>
|
|
</html>
|