Page MenuHomec4science

classVector3.html
No OneTemporary

File Metadata

Created
Fri, Nov 22, 06:18

classVector3.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PHPC - nBody project: Vector3&lt; Type &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">PHPC - nBody project
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="classVector3-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Vector3&lt; Type &gt; Class Template Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="Vector_8hpp_source.html">Vector.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Vector3&lt; Type &gt;:</div>
<div class="dyncontent">
<div class="center">
<img src="classVector3.png" usemap="#Vector3_3C_20Type_20_3E_map" alt=""/>
<map id="Vector3_3C_20Type_20_3E_map" name="Vector3_3C_20Type_20_3E_map">
<area href="classVector2.html" alt="Vector2&lt; Type &gt;" shape="rect" coords="0,0,109,24"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a8a742dbf2d58667e6851fae2767210c3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector3.html#a8a742dbf2d58667e6851fae2767210c3">Vector3</a> (Type val=0.0f)</td></tr>
<tr class="separator:a8a742dbf2d58667e6851fae2767210c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a7104ae58a55184def0fdee28b5d454"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector3.html#a1a7104ae58a55184def0fdee28b5d454">Vector3</a> (Type x_val, Type y_val, Type z_val)</td></tr>
<tr class="separator:a1a7104ae58a55184def0fdee28b5d454"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7cc1dd16f85a1b6381082b4b64d9672f"><td class="memItemLeft" align="right" valign="top">Type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector3.html#a7cc1dd16f85a1b6381082b4b64d9672f">norm</a> () override</td></tr>
<tr class="separator:a7cc1dd16f85a1b6381082b4b64d9672f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab898be9de3aeebf6a0483cdc031269d8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVector3.html">Vector3</a>&lt; Type &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector3.html#ab898be9de3aeebf6a0483cdc031269d8">pow</a> (Type power)</td></tr>
<tr class="separator:ab898be9de3aeebf6a0483cdc031269d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a910b1b4c5e627d2e2cc4ada0de06ef1d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVector3.html">Vector3</a>&lt; Type &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector3.html#a910b1b4c5e627d2e2cc4ada0de06ef1d">operator-</a> (<a class="el" href="classVector3.html">Vector3</a>&lt; Type &gt; vec)</td></tr>
<tr class="separator:a910b1b4c5e627d2e2cc4ada0de06ef1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b18a9d2c95af3f96f2b6e9a8649c7d4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVector3.html">Vector3</a>&lt; Type &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector3.html#a1b18a9d2c95af3f96f2b6e9a8649c7d4">operator+</a> (<a class="el" href="classVector3.html">Vector3</a>&lt; Type &gt; vec)</td></tr>
<tr class="separator:a1b18a9d2c95af3f96f2b6e9a8649c7d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a467342d455d3768a443068eab10cdb2b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVector3.html">Vector3</a>&lt; Type &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector3.html#a467342d455d3768a443068eab10cdb2b">operator+</a> (Type scalar)</td></tr>
<tr class="separator:a467342d455d3768a443068eab10cdb2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e821480dfbb1763d5e7d4d6ca1cb587"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVector3.html">Vector3</a>&lt; Type &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector3.html#a4e821480dfbb1763d5e7d4d6ca1cb587">operator*</a> (Type scalar)</td></tr>
<tr class="separator:a4e821480dfbb1763d5e7d4d6ca1cb587"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a211e07a10b4e3c78a1f175e4a5cb1679"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVector3.html">Vector3</a>&lt; Type &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector3.html#a211e07a10b4e3c78a1f175e4a5cb1679">operator/</a> (Type scalar)</td></tr>
<tr class="separator:a211e07a10b4e3c78a1f175e4a5cb1679"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51c91b0c588e113384e5d765b5ff704b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVector3.html">Vector3</a>&lt; Type &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector3.html#a51c91b0c588e113384e5d765b5ff704b">operator/</a> (<a class="el" href="classVector3.html">Vector3</a>&lt; Type &gt; vec)</td></tr>
<tr class="separator:a51c91b0c588e113384e5d765b5ff704b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classVector2"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classVector2')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classVector2.html">Vector2&lt; Type &gt;</a></td></tr>
<tr class="memitem:af1b03d760d86acd30816150da0ffc896 inherit pub_methods_classVector2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector2.html#af1b03d760d86acd30816150da0ffc896">Vector2</a> (Type val=0.0f)</td></tr>
<tr class="separator:af1b03d760d86acd30816150da0ffc896 inherit pub_methods_classVector2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5941d07aab86b8f13f2e09c4bc83745a inherit pub_methods_classVector2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector2.html#a5941d07aab86b8f13f2e09c4bc83745a">Vector2</a> (Type x_val, Type y_val)</td></tr>
<tr class="separator:a5941d07aab86b8f13f2e09c4bc83745a inherit pub_methods_classVector2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a970178743faf0cb0bdb5e9a3efad9d18 inherit pub_methods_classVector2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVector2.html">Vector2</a>&lt; Type &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector2.html#a970178743faf0cb0bdb5e9a3efad9d18">pow</a> (Type power)</td></tr>
<tr class="separator:a970178743faf0cb0bdb5e9a3efad9d18 inherit pub_methods_classVector2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab08cd52c0b1f7f4fa03b5ebaad3a1e15 inherit pub_methods_classVector2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVector2.html">Vector2</a>&lt; Type &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector2.html#ab08cd52c0b1f7f4fa03b5ebaad3a1e15">operator-</a> (<a class="el" href="classVector2.html">Vector2</a>&lt; Type &gt; vec)</td></tr>
<tr class="separator:ab08cd52c0b1f7f4fa03b5ebaad3a1e15 inherit pub_methods_classVector2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7e3f65715c8b3679537912ec8316545 inherit pub_methods_classVector2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVector2.html">Vector2</a>&lt; Type &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector2.html#ad7e3f65715c8b3679537912ec8316545">operator+</a> (<a class="el" href="classVector2.html">Vector2</a>&lt; Type &gt; vec)</td></tr>
<tr class="separator:ad7e3f65715c8b3679537912ec8316545 inherit pub_methods_classVector2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4dc0e05c139dbc50157470bf44d0672f inherit pub_methods_classVector2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVector2.html">Vector2</a>&lt; Type &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector2.html#a4dc0e05c139dbc50157470bf44d0672f">operator+</a> (Type scalar)</td></tr>
<tr class="separator:a4dc0e05c139dbc50157470bf44d0672f inherit pub_methods_classVector2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad1f540401c9045b395843a63adeee697 inherit pub_methods_classVector2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVector2.html">Vector2</a>&lt; Type &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector2.html#ad1f540401c9045b395843a63adeee697">operator*</a> (Type scalar)</td></tr>
<tr class="separator:ad1f540401c9045b395843a63adeee697 inherit pub_methods_classVector2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac45a42b2af019f19d55281c0744d9d39 inherit pub_methods_classVector2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVector2.html">Vector2</a>&lt; Type &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector2.html#ac45a42b2af019f19d55281c0744d9d39">operator/</a> (Type scalar)</td></tr>
<tr class="separator:ac45a42b2af019f19d55281c0744d9d39 inherit pub_methods_classVector2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50779344df37e5e57aa6e4d19524b1af inherit pub_methods_classVector2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVector2.html">Vector2</a>&lt; Type &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector2.html#a50779344df37e5e57aa6e4d19524b1af">operator/</a> (<a class="el" href="classVector2.html">Vector2</a>&lt; Type &gt; vec)</td></tr>
<tr class="separator:a50779344df37e5e57aa6e4d19524b1af inherit pub_methods_classVector2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:afce2813445b5f03f013bba7e8dc96622"><td class="memItemLeft" align="right" valign="top">Type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector3.html#afce2813445b5f03f013bba7e8dc96622">z</a></td></tr>
<tr class="separator:afce2813445b5f03f013bba7e8dc96622"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_attribs_classVector2"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_classVector2')"><img src="closed.png" alt="-"/>&#160;Public Attributes inherited from <a class="el" href="classVector2.html">Vector2&lt; Type &gt;</a></td></tr>
<tr class="memitem:a719fb98acee6f3034e1a90310230bdb1 inherit pub_attribs_classVector2"><td class="memItemLeft" align="right" valign="top">Type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector2.html#a719fb98acee6f3034e1a90310230bdb1">x</a></td></tr>
<tr class="separator:a719fb98acee6f3034e1a90310230bdb1 inherit pub_attribs_classVector2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a268ae24da74876262c3eb48887d982 inherit pub_attribs_classVector2"><td class="memItemLeft" align="right" valign="top">Type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector2.html#a7a268ae24da74876262c3eb48887d982">y</a></td></tr>
<tr class="separator:a7a268ae24da74876262c3eb48887d982 inherit pub_attribs_classVector2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename Type&gt;<br />
class Vector3&lt; Type &gt;</h3>
<p>Class of 3D vectors.</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">Type</td><td>of the vector (int, float, etc ...) </td></tr>
</table>
</dd>
</dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a8a742dbf2d58667e6851fae2767210c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8a742dbf2d58667e6851fae2767210c3">&#9670;&nbsp;</a></span>Vector3() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classVector3.html">Vector3</a>&lt; Type &gt;::<a class="el" href="classVector3.html">Vector3</a> </td>
<td>(</td>
<td class="paramtype">Type&#160;</td>
<td class="paramname"><em>val</em> = <code>0.0f</code></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Surcharge constructor of the 3D vector. Call <a class="el" href="classVector2.html">Vector2</a> constructor to construct it.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">val</td><td>coordinate on all axis </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a1a7104ae58a55184def0fdee28b5d454"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1a7104ae58a55184def0fdee28b5d454">&#9670;&nbsp;</a></span>Vector3() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classVector3.html">Vector3</a>&lt; Type &gt;::<a class="el" href="classVector3.html">Vector3</a> </td>
<td>(</td>
<td class="paramtype">Type&#160;</td>
<td class="paramname"><em>x_val</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">Type&#160;</td>
<td class="paramname"><em>y_val</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">Type&#160;</td>
<td class="paramname"><em>z_val</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Surcharge constructor of the 3D vector. Call <a class="el" href="classVector2.html">Vector2</a> constructor to construct it.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">x_val</td><td>coordinate on x axis </td></tr>
<tr><td class="paramname">y_val</td><td>coordinate on y axis </td></tr>
<tr><td class="paramname">y_val</td><td>coordinate on z axis </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a7cc1dd16f85a1b6381082b4b64d9672f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7cc1dd16f85a1b6381082b4b64d9672f">&#9670;&nbsp;</a></span>norm()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">Type <a class="el" href="classVector3.html">Vector3</a>&lt; Type &gt;::norm </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Override norm computation of the given vector.</p>
<dl class="section return"><dt>Returns</dt><dd>norm of the given vector </dd></dl>
<p>Reimplemented from <a class="el" href="classVector2.html#a3f3cbea608c5ff5d846db9f814ab7219">Vector2&lt; Type &gt;</a>.</p>
</div>
</div>
<a id="a4e821480dfbb1763d5e7d4d6ca1cb587"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e821480dfbb1763d5e7d4d6ca1cb587">&#9670;&nbsp;</a></span>operator*()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classVector3.html">Vector3</a>&lt;Type&gt; <a class="el" href="classVector3.html">Vector3</a>&lt; Type &gt;::operator* </td>
<td>(</td>
<td class="paramtype">Type&#160;</td>
<td class="paramname"><em>scalar</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Override * to compute on vector3&lt;Type&gt;.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">Type</td><td>value to multiply the given vector </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>given vector multiply by scalar argument </dd></dl>
</div>
</div>
<a id="a467342d455d3768a443068eab10cdb2b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a467342d455d3768a443068eab10cdb2b">&#9670;&nbsp;</a></span>operator+() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classVector3.html">Vector3</a>&lt;Type&gt; <a class="el" href="classVector3.html">Vector3</a>&lt; Type &gt;::operator+ </td>
<td>(</td>
<td class="paramtype">Type&#160;</td>
<td class="paramname"><em>scalar</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Surcharge override + to compute on vector3&lt;Type&gt;.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">scalar</td><td>Type to add to the given vector </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>given vector plus scalar argument on each dimension </dd></dl>
</div>
</div>
<a id="a1b18a9d2c95af3f96f2b6e9a8649c7d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1b18a9d2c95af3f96f2b6e9a8649c7d4">&#9670;&nbsp;</a></span>operator+() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classVector3.html">Vector3</a>&lt;Type&gt; <a class="el" href="classVector3.html">Vector3</a>&lt; Type &gt;::operator+ </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classVector3.html">Vector3</a>&lt; Type &gt;&#160;</td>
<td class="paramname"><em>vec</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Override + to compute on vector3&lt;Type&gt;.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">vec</td><td>vector to add to the given vector </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>given vector plus vec argument </dd></dl>
</div>
</div>
<a id="a910b1b4c5e627d2e2cc4ada0de06ef1d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a910b1b4c5e627d2e2cc4ada0de06ef1d">&#9670;&nbsp;</a></span>operator-()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classVector3.html">Vector3</a>&lt;Type&gt; <a class="el" href="classVector3.html">Vector3</a>&lt; Type &gt;::operator- </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classVector3.html">Vector3</a>&lt; Type &gt;&#160;</td>
<td class="paramname"><em>vec</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Override - to compute on vector3&lt;Type&gt;. Avoid having a too small vector which reach to segfault.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">vec</td><td>vector to subtract to the given vector </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>given vector minus vec argument </dd></dl>
</div>
</div>
<a id="a211e07a10b4e3c78a1f175e4a5cb1679"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a211e07a10b4e3c78a1f175e4a5cb1679">&#9670;&nbsp;</a></span>operator/() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classVector3.html">Vector3</a>&lt;Type&gt; <a class="el" href="classVector3.html">Vector3</a>&lt; Type &gt;::operator/ </td>
<td>(</td>
<td class="paramtype">Type&#160;</td>
<td class="paramname"><em>scalar</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Override / to compute on vector3&lt;Type&gt;.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">Type</td><td>value to divide the given vector </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>given vector divide by scalar argument </dd></dl>
</div>
</div>
<a id="a51c91b0c588e113384e5d765b5ff704b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a51c91b0c588e113384e5d765b5ff704b">&#9670;&nbsp;</a></span>operator/() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classVector3.html">Vector3</a>&lt;Type&gt; <a class="el" href="classVector3.html">Vector3</a>&lt; Type &gt;::operator/ </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classVector3.html">Vector3</a>&lt; Type &gt;&#160;</td>
<td class="paramname"><em>vec</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Override / to compute on vector3&lt;Type&gt; with a vector argument.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">Type</td><td>value to divide the given vector </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>given vector divide by vec argument </dd></dl>
</div>
</div>
<a id="ab898be9de3aeebf6a0483cdc031269d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab898be9de3aeebf6a0483cdc031269d8">&#9670;&nbsp;</a></span>pow()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classVector3.html">Vector3</a>&lt;Type&gt; <a class="el" href="classVector3.html">Vector3</a>&lt; Type &gt;::pow </td>
<td>(</td>
<td class="paramtype">Type&#160;</td>
<td class="paramname"><em>power</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="afce2813445b5f03f013bba7e8dc96622"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afce2813445b5f03f013bba7e8dc96622">&#9670;&nbsp;</a></span>z</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Type&gt; </div>
<table class="memname">
<tr>
<td class="memname">Type <a class="el" href="classVector3.html">Vector3</a>&lt; Type &gt;::z</td>
</tr>
</table>
</div><div class="memdoc">
<p>Last coordinate of the vector in 3D. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/media/lmunier/Data/EPFL/Master/2eme_annee/Semestre_2/Parallel_and_High_Performance_Computing/phpc_nBody/src/<a class="el" href="Vector_8hpp_source.html">Vector.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>

Event Timeline