source: flair-dev/trunk/doc/Flair/_vector3_d_8h_source.html

Last change on this file was 100, checked in by Sanahuja Guillaume, 6 years ago

doc

File size: 32.9 KB
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5<meta http-equiv="X-UA-Compatible" content="IE=9"/>
6<meta name="generator" content="Doxygen 1.8.9.1"/>
7<title>Flair: Vector3D.h Source File</title>
8<link href="tabs.css" rel="stylesheet" type="text/css"/>
9<script type="text/javascript" src="jquery.js"></script>
10<script type="text/javascript" src="dynsections.js"></script>
11<link href="navtree.css" rel="stylesheet" type="text/css"/>
12<script type="text/javascript" src="resize.js"></script>
13<script type="text/javascript" src="navtreedata.js"></script>
14<script type="text/javascript" src="navtree.js"></script>
15<script type="text/javascript">
16 $(document).ready(initResizable);
17 $(window).load(resizeHeight);
18</script>
19<link href="search/search.css" rel="stylesheet" type="text/css"/>
20<script type="text/javascript" src="search/searchdata.js"></script>
21<script type="text/javascript" src="search/search.js"></script>
22<script type="text/javascript">
23 $(document).ready(function() { init_search(); });
24</script>
25<link href="doxygen.css" rel="stylesheet" type="text/css" />
26</head>
27<body>
28<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
29<div id="titlearea">
30<table cellspacing="0" cellpadding="0">
31 <tbody>
32 <tr style="height: 56px;">
33 <td id="projectlogo"><img alt="Logo" src="logo_hds.png"/></td>
34 <td style="padding-left: 0.5em;">
35 <div id="projectname">Flair
36 </div>
37 <div id="projectbrief">Framework Libre Air</div>
38 </td>
39 </tr>
40 </tbody>
41</table>
42</div>
43<!-- end header part -->
44<!-- Generated by Doxygen 1.8.9.1 -->
45<script type="text/javascript">
46var searchBox = new SearchBox("searchBox", "search",false,'Search');
47</script>
48 <div id="navrow1" class="tabs">
49 <ul class="tablist">
50 <li><a href="index.html"><span>Main&#160;Page</span></a></li>
51 <li><a href="namespaces.html"><span>Namespaces</span></a></li>
52 <li><a href="annotated.html"><span>Classes</span></a></li>
53 <li class="current"><a href="files.html"><span>Files</span></a></li>
54 <li>
55 <div id="MSearchBox" class="MSearchBoxInactive">
56 <span class="left">
57 <img id="MSearchSelect" src="search/mag_sel.png"
58 onmouseover="return searchBox.OnSearchSelectShow()"
59 onmouseout="return searchBox.OnSearchSelectHide()"
60 alt=""/>
61 <input type="text" id="MSearchField" value="Search" accesskey="S"
62 onfocus="searchBox.OnSearchFieldFocus(true)"
63 onblur="searchBox.OnSearchFieldFocus(false)"
64 onkeyup="searchBox.OnSearchFieldChange(event)"/>
65 </span><span class="right">
66 <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
67 </span>
68 </div>
69 </li>
70 </ul>
71 </div>
72 <div id="navrow2" class="tabs2">
73 <ul class="tablist">
74 <li><a href="files.html"><span>File&#160;List</span></a></li>
75 </ul>
76 </div>
77</div><!-- top -->
78<div id="side-nav" class="ui-resizable side-nav-resizable">
79 <div id="nav-tree">
80 <div id="nav-tree-contents">
81 <div id="nav-sync" class="sync"></div>
82 </div>
83 </div>
84 <div id="splitbar" style="-moz-user-select:none;"
85 class="ui-resizable-handle">
86 </div>
87</div>
88<script type="text/javascript">
89$(document).ready(function(){initNavTree('_vector3_d_8h_source.html','');});
90</script>
91<div id="doc-content">
92<!-- window showing the filter options -->
93<div id="MSearchSelectWindow"
94 onmouseover="return searchBox.OnSearchSelectShow()"
95 onmouseout="return searchBox.OnSearchSelectHide()"
96 onkeydown="return searchBox.OnSearchSelectKey(event)">
97</div>
98
99<!-- iframe showing the search results (closed by default) -->
100<div id="MSearchResultsWindow">
101<iframe src="javascript:void(0)" frameborder="0"
102 name="MSearchResults" id="MSearchResults">
103</iframe>
104</div>
105
106<div class="header">
107 <div class="headertitle">
108<div class="title">Vector3D.h</div> </div>
109</div><!--header-->
110<div class="contents">
111<a href="_vector3_d_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">// %flair:license{</span></div>
112<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">// This file is part of the Flair framework distributed under the</span></div>
113<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">// CECILL-C License, Version 1.0.</span></div>
114<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">// %flair:license}</span></div>
115<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;</div>
116<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#ifndef VECTOR3D_H</span></div>
117<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#define VECTOR3D_H</span></div>
118<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;</div>
119<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor">#include &lt;stddef.h&gt;</span></div>
120<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="_vector2_d_8h.html">Vector2D.h</a>&gt;</span></div>
121<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;</div>
122<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceflair.html">flair</a> {</div>
123<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="keyword">namespace </span>core {</div>
124<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="keyword">class </span>RotationMatrix;</div>
125<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="keyword">class </span>Quaternion;</div>
126<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div>
127<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
128<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="classflair_1_1core_1_1_vector3_d.html"> 29</a></span>&#160;<span class="keyword">class </span><a class="code" href="classflair_1_1core_1_1_vector3_d.html">Vector3D</a> {</div>
129<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="keyword">public</span>:</div>
130<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <a class="code" href="classflair_1_1core_1_1_vector3_d.html#a4434fbd95b0f760a7f374d8068238c87">Vector3D</a>(T <a class="code" href="classflair_1_1core_1_1_vector3_d.html#abb356ca2add4d7cd62c3e1772ce84a4f">x</a> = 0, T <a class="code" href="classflair_1_1core_1_1_vector3_d.html#a62a7b867d542c4aee7634f8a58b25256">y</a> = 0, T <a class="code" href="classflair_1_1core_1_1_vector3_d.html#ab0c47253b9de56abf0fbe9661f9e1812">z</a> = 0);</div>
131<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;</div>
132<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <a class="code" href="classflair_1_1core_1_1_vector3_d.html#ae09b7edbe9f6be35b9f171eefd401b99">~Vector3D</a>();</div>
133<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;</div>
134<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classflair_1_1core_1_1_vector3_d.html#abb356ca2add4d7cd62c3e1772ce84a4f"> 51</a></span>&#160; T <a class="code" href="classflair_1_1core_1_1_vector3_d.html#abb356ca2add4d7cd62c3e1772ce84a4f">x</a>;</div>
135<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;</div>
136<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classflair_1_1core_1_1_vector3_d.html#a62a7b867d542c4aee7634f8a58b25256"> 56</a></span>&#160; T <a class="code" href="classflair_1_1core_1_1_vector3_d.html#a62a7b867d542c4aee7634f8a58b25256">y</a>;</div>
137<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;</div>
138<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="classflair_1_1core_1_1_vector3_d.html#ab0c47253b9de56abf0fbe9661f9e1812"> 61</a></span>&#160; T <a class="code" href="classflair_1_1core_1_1_vector3_d.html#ab0c47253b9de56abf0fbe9661f9e1812">z</a>;</div>
139<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;</div>
140<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html#a195e8601b80e5e85a4d361c5a9b746a0">RotateX</a>(<span class="keywordtype">float</span> value);</div>
141<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;</div>
142<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html#a70eb14b1c286020f1e5a092a6188b361">RotateXDeg</a>(<span class="keywordtype">float</span> value);</div>
143<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;</div>
144<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html#a47b3902a89379a918cd9f5441aa7c748">RotateY</a>(<span class="keywordtype">float</span> value);</div>
145<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;</div>
146<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html#a57a22e954ffffa6f9c8d828788ac1eac">RotateYDeg</a>(<span class="keywordtype">float</span> value);</div>
147<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;</div>
148<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html#aaa82d7a6693e70ff7b242aceb977e9c0">RotateZ</a>(<span class="keywordtype">float</span> value);</div>
149<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;</div>
150<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html#a3cd28096c5b268d44fae64ff3de97c60">RotateZDeg</a>(<span class="keywordtype">float</span> value);</div>
151<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;</div>
152<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html#a5b55225f9547b97a21758c1e2b65dea3">Rotate</a>(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_rotation_matrix.html">RotationMatrix</a> &amp;matrix);</div>
153<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160;</div>
154<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html#a5b55225f9547b97a21758c1e2b65dea3">Rotate</a>(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> &amp;quaternion);</div>
155<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;</div>
156<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html#af7bca23dab226f26818cddcac3771b0e">To2Dxy</a>(<a class="code" href="classflair_1_1core_1_1_vector2_d.html">Vector2D&lt;T&gt;</a> &amp;vector) <span class="keyword">const</span>;</div>
157<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160;</div>
158<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <a class="code" href="classflair_1_1core_1_1_vector2_d.html">Vector2D&lt;T&gt;</a> <a class="code" href="classflair_1_1core_1_1_vector3_d.html#af7bca23dab226f26818cddcac3771b0e">To2Dxy</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;</div>
159<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160;</div>
160<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; <span class="keywordtype">float</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html#a4249aef85a1848a2952dfafbe6caad12">GetNorm</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;</div>
161<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160;</div>
162<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html#a8230b1bbc50b49afac2758e44bcbb02c">Normalize</a>(<span class="keywordtype">void</span>);</div>
163<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160;</div>
164<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html#a82a85beea28856be5b64f1d773ecebec">Saturate</a>(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html">Vector3D&lt;T&gt;</a> &amp;min, <span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html">Vector3D&lt;T&gt;</a> &amp;max);</div>
165<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160;</div>
166<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html#a82a85beea28856be5b64f1d773ecebec">Saturate</a>(<span class="keywordtype">float</span> min, <span class="keywordtype">float</span> max);</div>
167<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160;</div>
168<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html#a82a85beea28856be5b64f1d773ecebec">Saturate</a>(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html">Vector3D&lt;T&gt;</a> &amp;value);</div>
169<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160;</div>
170<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html#a82a85beea28856be5b64f1d773ecebec">Saturate</a>(<span class="keywordtype">float</span> value);</div>
171<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160;</div>
172<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; T &amp;operator[](<span class="keywordtype">size_t</span> idx);</div>
173<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; <span class="keyword">const</span> T &amp;operator[](<span class="keywordtype">size_t</span> idx) <span class="keyword">const</span>;</div>
174<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; <span class="comment">//Vector3D&lt;T&gt; &amp;operator=(const Vector3D&lt;T&gt; &amp;vector);</span></div>
175<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> S&gt; <a class="code" href="classflair_1_1core_1_1_vector3_d.html">Vector3D&lt;T&gt;</a> &amp;operator=(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html">Vector3D&lt;S&gt;</a> &amp;vector) {</div>
176<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; x = vector.<a class="code" href="classflair_1_1core_1_1_vector3_d.html#abb356ca2add4d7cd62c3e1772ce84a4f">x</a>;</div>
177<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; y = vector.<a class="code" href="classflair_1_1core_1_1_vector3_d.html#a62a7b867d542c4aee7634f8a58b25256">y</a>;</div>
178<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; z = vector.<a class="code" href="classflair_1_1core_1_1_vector3_d.html#ab0c47253b9de56abf0fbe9661f9e1812">z</a>;</div>
179<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; <span class="keywordflow">return</span> (*<span class="keyword">this</span>);</div>
180<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; }</div>
181<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; <a class="code" href="classflair_1_1core_1_1_vector3_d.html">Vector3D&lt;T&gt;</a> &amp;operator+=(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html">Vector3D&lt;T&gt;</a> &amp;vector);</div>
182<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; <a class="code" href="classflair_1_1core_1_1_vector3_d.html">Vector3D&lt;T&gt;</a> &amp;operator-=(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html">Vector3D&lt;T&gt;</a> &amp;vector);</div>
183<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160;</div>
184<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160;<span class="keyword">private</span>:</div>
185<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160;};</div>
186<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160;</div>
187<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160;<span class="keyword">typedef</span> Vector3D&lt;float&gt; Vector3Df;</div>
188<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160;</div>
189<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt; Vector3D&lt;T&gt; <a class="code" href="namespaceflair_1_1core.html#ab372a1107820a30d6fcbef13c8989caa">operator+</a>(<span class="keyword">const</span> Vector3D&lt;T&gt; &amp;vectorA, <span class="keyword">const</span> Vector3D&lt;T&gt; &amp;vectorB);</div>
190<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160;</div>
191<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt; Vector3D&lt;T&gt; <a class="code" href="namespaceflair_1_1core.html#ac696d4111ec3b0241bc094add5666245">operator-</a>(<span class="keyword">const</span> Vector3D&lt;T&gt; &amp;vectorA, <span class="keyword">const</span> Vector3D&lt;T&gt; &amp;vectorB);</div>
192<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>&#160;</div>
193<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt; Vector3D&lt;T&gt; <a class="code" href="namespaceflair_1_1core.html#ac696d4111ec3b0241bc094add5666245">operator-</a>(<span class="keyword">const</span> Vector3D&lt;T&gt; &amp;vector);</div>
194<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160;</div>
195<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt; Vector3D&lt;T&gt; <a class="code" href="namespaceflair_1_1core.html#afed3cf9fa6c2e0afb37994f55222d019">operator/</a>(<span class="keyword">const</span> Vector3D&lt;T&gt; &amp;vector, <span class="keywordtype">float</span> coeff);</div>
196<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160;</div>
197<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt; Vector3D&lt;T&gt; <a class="code" href="namespaceflair_1_1core.html#a7a25a222fe16e05be703de31123a6d11">operator*</a>(<span class="keyword">const</span> Vector3D&lt;T&gt; &amp;vectorA, <span class="keyword">const</span> Vector3D&lt;T&gt; &amp;vectorB);</div>
198<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>&#160;</div>
199<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt; Vector3D&lt;T&gt; <a class="code" href="namespaceflair_1_1core.html#a7a25a222fe16e05be703de31123a6d11">operator*</a>(<span class="keyword">const</span> Vector3D&lt;T&gt; &amp;vector, <span class="keywordtype">float</span> coeff);</div>
200<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>&#160;</div>
201<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt; Vector3D&lt;T&gt; <a class="code" href="namespaceflair_1_1core.html#a7a25a222fe16e05be703de31123a6d11">operator*</a>(<span class="keywordtype">float</span> coeff, <span class="keyword">const</span> Vector3D&lt;T&gt; &amp;vector);</div>
202<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160;</div>
203<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt; Vector3D&lt;T&gt; <a class="code" href="namespaceflair_1_1core.html#a619733e606845eb59f7e779f2f119019">CrossProduct</a>(<span class="keyword">const</span> Vector3D&lt;T&gt; &amp;vectorA, <span class="keyword">const</span> Vector3D&lt;T&gt; &amp;vectorB);</div>
204<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>&#160;</div>
205<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt; <span class="keywordtype">float</span> <a class="code" href="namespaceflair_1_1core.html#a792d54dcdbd816e6c7bc5ac04b5d9b22">DotProduct</a>(<span class="keyword">const</span> Vector3D&lt;T&gt; &amp;vectorA, <span class="keyword">const</span> Vector3D&lt;T&gt; &amp;vectorB);</div>
206<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160;</div>
207<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>&#160;} <span class="comment">// end namespace core</span></div>
208<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>&#160;} <span class="comment">// end namespace flair</span></div>
209<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>&#160;</div>
210<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>&#160;<span class="preprocessor">#endif // VECTOR3D_H</span></div>
211<div class="ttc" id="classflair_1_1core_1_1_vector3_d_html_a8230b1bbc50b49afac2758e44bcbb02c"><div class="ttname"><a href="classflair_1_1core_1_1_vector3_d.html#a8230b1bbc50b49afac2758e44bcbb02c">flair::core::Vector3D::Normalize</a></div><div class="ttdeci">void Normalize(void)</div><div class="ttdoc">Normalize. </div></div>
212<div class="ttc" id="classflair_1_1core_1_1_vector3_d_html_a57a22e954ffffa6f9c8d828788ac1eac"><div class="ttname"><a href="classflair_1_1core_1_1_vector3_d.html#a57a22e954ffffa6f9c8d828788ac1eac">flair::core::Vector3D::RotateYDeg</a></div><div class="ttdeci">void RotateYDeg(float value)</div><div class="ttdoc">y axis rotation </div></div>
213<div class="ttc" id="namespaceflair_html"><div class="ttname"><a href="namespaceflair.html">flair</a></div><div class="ttdoc">namespace of the flair Framework </div><div class="ttdef"><b>Definition:</b> Ahrs.h:19</div></div>
214<div class="ttc" id="classflair_1_1core_1_1_vector3_d_html_aaa82d7a6693e70ff7b242aceb977e9c0"><div class="ttname"><a href="classflair_1_1core_1_1_vector3_d.html#aaa82d7a6693e70ff7b242aceb977e9c0">flair::core::Vector3D::RotateZ</a></div><div class="ttdeci">void RotateZ(float value)</div><div class="ttdoc">z axis rotation </div></div>
215<div class="ttc" id="classflair_1_1core_1_1_vector3_d_html"><div class="ttname"><a href="classflair_1_1core_1_1_vector3_d.html">flair::core::Vector3D</a></div><div class="ttdoc">Class defining a 3D vector. </div><div class="ttdef"><b>Definition:</b> Vector3D.h:29</div></div>
216<div class="ttc" id="classflair_1_1core_1_1_vector2_d_html"><div class="ttname"><a href="classflair_1_1core_1_1_vector2_d.html">flair::core::Vector2D</a></div><div class="ttdoc">Class defining a 2D vector. </div><div class="ttdef"><b>Definition:</b> Vector2D.h:24</div></div>
217<div class="ttc" id="classflair_1_1core_1_1_rotation_matrix_html"><div class="ttname"><a href="classflair_1_1core_1_1_rotation_matrix.html">flair::core::RotationMatrix</a></div><div class="ttdoc">Class defining a rotation matrix. </div><div class="ttdef"><b>Definition:</b> RotationMatrix.h:26</div></div>
218<div class="ttc" id="classflair_1_1core_1_1_vector3_d_html_ae09b7edbe9f6be35b9f171eefd401b99"><div class="ttname"><a href="classflair_1_1core_1_1_vector3_d.html#ae09b7edbe9f6be35b9f171eefd401b99">flair::core::Vector3D::~Vector3D</a></div><div class="ttdeci">~Vector3D()</div><div class="ttdoc">Destructor. </div></div>
219<div class="ttc" id="classflair_1_1core_1_1_vector3_d_html_a3cd28096c5b268d44fae64ff3de97c60"><div class="ttname"><a href="classflair_1_1core_1_1_vector3_d.html#a3cd28096c5b268d44fae64ff3de97c60">flair::core::Vector3D::RotateZDeg</a></div><div class="ttdeci">void RotateZDeg(float value)</div><div class="ttdoc">z axis rotation </div></div>
220<div class="ttc" id="_vector2_d_8h_html"><div class="ttname"><a href="_vector2_d_8h.html">Vector2D.h</a></div><div class="ttdoc">Class defining a 2D vector. </div></div>
221<div class="ttc" id="classflair_1_1core_1_1_vector3_d_html_a82a85beea28856be5b64f1d773ecebec"><div class="ttname"><a href="classflair_1_1core_1_1_vector3_d.html#a82a85beea28856be5b64f1d773ecebec">flair::core::Vector3D::Saturate</a></div><div class="ttdeci">void Saturate(const Vector3D&lt; T &gt; &amp;min, const Vector3D&lt; T &gt; &amp;max)</div><div class="ttdoc">Saturate. </div></div>
222<div class="ttc" id="classflair_1_1core_1_1_vector3_d_html_a62a7b867d542c4aee7634f8a58b25256"><div class="ttname"><a href="classflair_1_1core_1_1_vector3_d.html#a62a7b867d542c4aee7634f8a58b25256">flair::core::Vector3D::y</a></div><div class="ttdeci">T y</div><div class="ttdoc">y </div><div class="ttdef"><b>Definition:</b> Vector3D.h:56</div></div>
223<div class="ttc" id="classflair_1_1core_1_1_vector3_d_html_af7bca23dab226f26818cddcac3771b0e"><div class="ttname"><a href="classflair_1_1core_1_1_vector3_d.html#af7bca23dab226f26818cddcac3771b0e">flair::core::Vector3D::To2Dxy</a></div><div class="ttdeci">Vector2D&lt; T &gt; To2Dxy(void) const </div><div class="ttdoc">Convert to a Vector2D. </div></div>
224<div class="ttc" id="classflair_1_1core_1_1_vector3_d_html_a47b3902a89379a918cd9f5441aa7c748"><div class="ttname"><a href="classflair_1_1core_1_1_vector3_d.html#a47b3902a89379a918cd9f5441aa7c748">flair::core::Vector3D::RotateY</a></div><div class="ttdeci">void RotateY(float value)</div><div class="ttdoc">y axis rotation </div></div>
225<div class="ttc" id="classflair_1_1core_1_1_vector3_d_html_a5b55225f9547b97a21758c1e2b65dea3"><div class="ttname"><a href="classflair_1_1core_1_1_vector3_d.html#a5b55225f9547b97a21758c1e2b65dea3">flair::core::Vector3D::Rotate</a></div><div class="ttdeci">void Rotate(const RotationMatrix &amp;matrix)</div><div class="ttdoc">rotation </div></div>
226<div class="ttc" id="namespaceflair_1_1core_html_afed3cf9fa6c2e0afb37994f55222d019"><div class="ttname"><a href="namespaceflair_1_1core.html#afed3cf9fa6c2e0afb37994f55222d019">flair::core::operator/</a></div><div class="ttdeci">Vector2D&lt; T &gt; operator/(const Vector2D&lt; T &gt; &amp;vector, float coeff)</div><div class="ttdoc">Divid. </div></div>
227<div class="ttc" id="classflair_1_1core_1_1_vector3_d_html_a70eb14b1c286020f1e5a092a6188b361"><div class="ttname"><a href="classflair_1_1core_1_1_vector3_d.html#a70eb14b1c286020f1e5a092a6188b361">flair::core::Vector3D::RotateXDeg</a></div><div class="ttdeci">void RotateXDeg(float value)</div><div class="ttdoc">x axis rotation </div></div>
228<div class="ttc" id="classflair_1_1core_1_1_vector3_d_html_ab0c47253b9de56abf0fbe9661f9e1812"><div class="ttname"><a href="classflair_1_1core_1_1_vector3_d.html#ab0c47253b9de56abf0fbe9661f9e1812">flair::core::Vector3D::z</a></div><div class="ttdeci">T z</div><div class="ttdoc">z </div><div class="ttdef"><b>Definition:</b> Vector3D.h:61</div></div>
229<div class="ttc" id="namespaceflair_1_1core_html_a7a25a222fe16e05be703de31123a6d11"><div class="ttname"><a href="namespaceflair_1_1core.html#a7a25a222fe16e05be703de31123a6d11">flair::core::operator*</a></div><div class="ttdeci">Quaternion operator*(Quaternion const &amp;quaternionA, Quaternion const &amp;quaterniontB)</div><div class="ttdoc">Multiply. </div></div>
230<div class="ttc" id="namespaceflair_1_1core_html_ac696d4111ec3b0241bc094add5666245"><div class="ttname"><a href="namespaceflair_1_1core.html#ac696d4111ec3b0241bc094add5666245">flair::core::operator-</a></div><div class="ttdeci">Quaternion operator-(Quaternion const &amp;quaternionA, Quaternion const &amp;quaterniontB)</div><div class="ttdoc">Substract. </div></div>
231<div class="ttc" id="namespaceflair_1_1core_html_a792d54dcdbd816e6c7bc5ac04b5d9b22"><div class="ttname"><a href="namespaceflair_1_1core.html#a792d54dcdbd816e6c7bc5ac04b5d9b22">flair::core::DotProduct</a></div><div class="ttdeci">float DotProduct(const Vector3D&lt; T &gt; &amp;vectorA, const Vector3D&lt; T &gt; &amp;vectorB)</div><div class="ttdoc">Dot product. </div></div>
232<div class="ttc" id="classflair_1_1core_1_1_vector3_d_html_abb356ca2add4d7cd62c3e1772ce84a4f"><div class="ttname"><a href="classflair_1_1core_1_1_vector3_d.html#abb356ca2add4d7cd62c3e1772ce84a4f">flair::core::Vector3D::x</a></div><div class="ttdeci">T x</div><div class="ttdoc">x </div><div class="ttdef"><b>Definition:</b> Vector3D.h:51</div></div>
233<div class="ttc" id="namespaceflair_1_1core_html_a619733e606845eb59f7e779f2f119019"><div class="ttname"><a href="namespaceflair_1_1core.html#a619733e606845eb59f7e779f2f119019">flair::core::CrossProduct</a></div><div class="ttdeci">Vector3D&lt; T &gt; CrossProduct(const Vector3D&lt; T &gt; &amp;vectorA, const Vector3D&lt; T &gt; &amp;vectorB)</div><div class="ttdoc">Cross product. </div></div>
234<div class="ttc" id="classflair_1_1core_1_1_vector3_d_html_a4249aef85a1848a2952dfafbe6caad12"><div class="ttname"><a href="classflair_1_1core_1_1_vector3_d.html#a4249aef85a1848a2952dfafbe6caad12">flair::core::Vector3D::GetNorm</a></div><div class="ttdeci">float GetNorm(void) const </div><div class="ttdoc">Norm. </div></div>
235<div class="ttc" id="classflair_1_1core_1_1_vector3_d_html_a4434fbd95b0f760a7f374d8068238c87"><div class="ttname"><a href="classflair_1_1core_1_1_vector3_d.html#a4434fbd95b0f760a7f374d8068238c87">flair::core::Vector3D::Vector3D</a></div><div class="ttdeci">Vector3D(T x=0, T y=0, T z=0)</div><div class="ttdoc">Constructor. </div></div>
236<div class="ttc" id="classflair_1_1core_1_1_vector3_d_html_a195e8601b80e5e85a4d361c5a9b746a0"><div class="ttname"><a href="classflair_1_1core_1_1_vector3_d.html#a195e8601b80e5e85a4d361c5a9b746a0">flair::core::Vector3D::RotateX</a></div><div class="ttdeci">void RotateX(float value)</div><div class="ttdoc">x axis rotation </div></div>
237<div class="ttc" id="namespaceflair_1_1core_html_ab372a1107820a30d6fcbef13c8989caa"><div class="ttname"><a href="namespaceflair_1_1core.html#ab372a1107820a30d6fcbef13c8989caa">flair::core::operator+</a></div><div class="ttdeci">Quaternion operator+(Quaternion const &amp;quaterniontA, Quaternion const &amp;quaterniontB)</div><div class="ttdoc">Add. </div></div>
238<div class="ttc" id="classflair_1_1core_1_1_quaternion_html"><div class="ttname"><a href="classflair_1_1core_1_1_quaternion.html">flair::core::Quaternion</a></div><div class="ttdoc">Class defining a quaternion. </div><div class="ttdef"><b>Definition:</b> Quaternion.h:26</div></div>
239</div><!-- fragment --></div><!-- contents -->
240</div><!-- doc-content -->
241<!-- start footer part -->
242<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
243 <ul>
244 <li class="navelem"><a class="el" href="dir_33c2ee9b1665499374b4225c427cf176.html">igep</a></li><li class="navelem"><a class="el" href="dir_f1fe274389177bd7e17de7949c4ffada.html">flair-src</a></li><li class="navelem"><a class="el" href="dir_3ef62148cf94871b4b6ee5d6e3a989c1.html">lib</a></li><li class="navelem"><a class="el" href="dir_97265977dbbd48c696782ccac102bad5.html">FlairCore</a></li><li class="navelem"><a class="el" href="dir_6c198461db290ac9abcdd44184573216.html">src</a></li><li class="navelem"><a class="el" href="_vector3_d_8h.html">Vector3D.h</a></li>
245 <li class="footer">Generated on Thu Jan 31 2019 12:34:23 for Flair by
246 <a href="http://www.doxygen.org/index.html">
247 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
248 </ul>
249</div>
250</body>
251</html>
Note: See TracBrowser for help on using the repository browser.