Page MenuHomec4science

classVector2.html
No OneTemporary

File Metadata

Created
Sat, Nov 30, 05:55

classVector2.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: Vector2&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="classVector2-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Vector2&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 Vector2&lt; Type &gt;:</div>
<div class="dyncontent">
<div class="center">
<img src="classVector2.png" usemap="#Vector2_3C_20Type_20_3E_map" alt=""/>
<map id="Vector2_3C_20Type_20_3E_map" name="Vector2_3C_20Type_20_3E_map">
<area href="classVector3.html" alt="Vector3&lt; Type &gt;" shape="rect" coords="0,56,109,80"/>
</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:af1b03d760d86acd30816150da0ffc896"><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"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5941d07aab86b8f13f2e09c4bc83745a"><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"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f3cbea608c5ff5d846db9f814ab7219"><td class="memItemLeft" align="right" valign="top">virtual Type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector2.html#a3f3cbea608c5ff5d846db9f814ab7219">norm</a> ()</td></tr>
<tr class="separator:a3f3cbea608c5ff5d846db9f814ab7219"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a970178743faf0cb0bdb5e9a3efad9d18"><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"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab08cd52c0b1f7f4fa03b5ebaad3a1e15"><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"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7e3f65715c8b3679537912ec8316545"><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"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4dc0e05c139dbc50157470bf44d0672f"><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"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad1f540401c9045b395843a63adeee697"><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"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac45a42b2af019f19d55281c0744d9d39"><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"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50779344df37e5e57aa6e4d19524b1af"><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"><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:a719fb98acee6f3034e1a90310230bdb1"><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"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a268ae24da74876262c3eb48887d982"><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"><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 Vector2&lt; Type &gt;</h3>
<p>Class of 2D 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="af1b03d760d86acd30816150da0ffc896"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1b03d760d86acd30816150da0ffc896">&#9670;&nbsp;</a></span>Vector2() <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="classVector2.html">Vector2</a>&lt; Type &gt;::<a class="el" href="classVector2.html">Vector2</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="a5941d07aab86b8f13f2e09c4bc83745a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5941d07aab86b8f13f2e09c4bc83745a">&#9670;&nbsp;</a></span>Vector2() <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="classVector2.html">Vector2</a>&lt; Type &gt;::<a class="el" href="classVector2.html">Vector2</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>&#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 2D vector.</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>
</table>
</dd>
</dl>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a3f3cbea608c5ff5d846db9f814ab7219"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f3cbea608c5ff5d846db9f814ab7219">&#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">virtual Type <a class="el" href="classVector2.html">Vector2</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">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Compute norm of the given vector.</p>
<dl class="section return"><dt>Returns</dt><dd>norm of the given vector </dd></dl>
<p>Reimplemented in <a class="el" href="classVector3.html#a7cc1dd16f85a1b6381082b4b64d9672f">Vector3&lt; Type &gt;</a>.</p>
</div>
</div>
<a id="ad1f540401c9045b395843a63adeee697"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad1f540401c9045b395843a63adeee697">&#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="classVector2.html">Vector2</a>&lt;Type&gt; <a class="el" href="classVector2.html">Vector2</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 vector2&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="a4dc0e05c139dbc50157470bf44d0672f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4dc0e05c139dbc50157470bf44d0672f">&#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="classVector2.html">Vector2</a>&lt;Type&gt; <a class="el" href="classVector2.html">Vector2</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="ad7e3f65715c8b3679537912ec8316545"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad7e3f65715c8b3679537912ec8316545">&#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="classVector2.html">Vector2</a>&lt;Type&gt; <a class="el" href="classVector2.html">Vector2</a>&lt; Type &gt;::operator+ </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classVector2.html">Vector2</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 vector2&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="ab08cd52c0b1f7f4fa03b5ebaad3a1e15"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab08cd52c0b1f7f4fa03b5ebaad3a1e15">&#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="classVector2.html">Vector2</a>&lt;Type&gt; <a class="el" href="classVector2.html">Vector2</a>&lt; Type &gt;::operator- </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classVector2.html">Vector2</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 vector2&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="ac45a42b2af019f19d55281c0744d9d39"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac45a42b2af019f19d55281c0744d9d39">&#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="classVector2.html">Vector2</a>&lt;Type&gt; <a class="el" href="classVector2.html">Vector2</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 vector2&lt;Type&gt; with a scalar 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 scalar argument </dd></dl>
</div>
</div>
<a id="a50779344df37e5e57aa6e4d19524b1af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a50779344df37e5e57aa6e4d19524b1af">&#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="classVector2.html">Vector2</a>&lt;Type&gt; <a class="el" href="classVector2.html">Vector2</a>&lt; Type &gt;::operator/ </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classVector2.html">Vector2</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 vector2&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="a970178743faf0cb0bdb5e9a3efad9d18"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a970178743faf0cb0bdb5e9a3efad9d18">&#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="classVector2.html">Vector2</a>&lt;Type&gt; <a class="el" href="classVector2.html">Vector2</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="a719fb98acee6f3034e1a90310230bdb1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a719fb98acee6f3034e1a90310230bdb1">&#9670;&nbsp;</a></span>x</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="classVector2.html">Vector2</a>&lt; Type &gt;::x</td>
</tr>
</table>
</div><div class="memdoc">
<p>coordinates of the vector. </p>
</div>
</div>
<a id="a7a268ae24da74876262c3eb48887d982"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7a268ae24da74876262c3eb48887d982">&#9670;&nbsp;</a></span>y</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="classVector2.html">Vector2</a>&lt; Type &gt;::y</td>
</tr>
</table>
</div><div class="memdoc">
</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