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">
|
---|
46 | var 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 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 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> <span class="comment">// %flair:license{</span></div>
|
---|
112 | <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <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> <span class="comment">// CECILL-C License, Version 1.0.</span></div>
|
---|
114 | <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">// %flair:license}</span></div>
|
---|
115 | <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> </div>
|
---|
116 | <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef VECTOR3D_H</span></div>
|
---|
117 | <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define VECTOR3D_H</span></div>
|
---|
118 | <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div>
|
---|
119 | <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <stddef.h></span></div>
|
---|
120 | <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <<a class="code" href="_vector2_d_8h.html">Vector2D.h</a>></span></div>
|
---|
121 | <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div>
|
---|
122 | <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <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> <span class="keyword">namespace </span>core {</div>
|
---|
124 | <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="keyword">class </span>RotationMatrix;</div>
|
---|
125 | <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="keyword">class </span>Quaternion;</div>
|
---|
126 | <div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div>
|
---|
127 | <div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></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> <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> <span class="keyword">public</span>:</div>
|
---|
130 | <div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <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> </div>
|
---|
132 | <div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <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> </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>  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> </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>  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> </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>  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> </div>
|
---|
140 | <div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <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> </div>
|
---|
142 | <div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <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> </div>
|
---|
144 | <div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <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> </div>
|
---|
146 | <div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <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> </div>
|
---|
148 | <div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <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> </div>
|
---|
150 | <div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <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> </div>
|
---|
152 | <div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <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> &matrix);</div>
|
---|
153 | <div class="line"><a name="l00111"></a><span class="lineno"> 111</span> </div>
|
---|
154 | <div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <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> &quaternion);</div>
|
---|
155 | <div class="line"><a name="l00121"></a><span class="lineno"> 121</span> </div>
|
---|
156 | <div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <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<T></a> &vector) <span class="keyword">const</span>;</div>
|
---|
157 | <div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div>
|
---|
158 | <div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <a class="code" href="classflair_1_1core_1_1_vector2_d.html">Vector2D<T></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> </div>
|
---|
160 | <div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <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> </div>
|
---|
162 | <div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <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> </div>
|
---|
164 | <div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <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<T></a> &min, <span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html">Vector3D<T></a> &max);</div>
|
---|
165 | <div class="line"><a name="l00161"></a><span class="lineno"> 161</span> </div>
|
---|
166 | <div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <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> </div>
|
---|
168 | <div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <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<T></a> &value);</div>
|
---|
169 | <div class="line"><a name="l00180"></a><span class="lineno"> 180</span> </div>
|
---|
170 | <div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <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> </div>
|
---|
172 | <div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  T &operator[](<span class="keywordtype">size_t</span> idx);</div>
|
---|
173 | <div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="keyword">const</span> T &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>  <span class="comment">//Vector3D<T> &operator=(const Vector3D<T> &vector);</span></div>
|
---|
175 | <div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <span class="keyword">template</span><<span class="keyword">typename</span> S> <a class="code" href="classflair_1_1core_1_1_vector3_d.html">Vector3D<T></a> &operator=(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html">Vector3D<S></a> &vector) {</div>
|
---|
176 | <div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  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>  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>  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>  <span class="keywordflow">return</span> (*<span class="keyword">this</span>);</div>
|
---|
180 | <div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  }</div>
|
---|
181 | <div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <a class="code" href="classflair_1_1core_1_1_vector3_d.html">Vector3D<T></a> &operator+=(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html">Vector3D<T></a> &vector);</div>
|
---|
182 | <div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <a class="code" href="classflair_1_1core_1_1_vector3_d.html">Vector3D<T></a> &operator-=(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html">Vector3D<T></a> &vector);</div>
|
---|
183 | <div class="line"><a name="l00202"></a><span class="lineno"> 202</span> </div>
|
---|
184 | <div class="line"><a name="l00203"></a><span class="lineno"> 203</span> <span class="keyword">private</span>:</div>
|
---|
185 | <div class="line"><a name="l00204"></a><span class="lineno"> 204</span> };</div>
|
---|
186 | <div class="line"><a name="l00205"></a><span class="lineno"> 205</span> </div>
|
---|
187 | <div class="line"><a name="l00206"></a><span class="lineno"> 206</span> <span class="keyword">typedef</span> Vector3D<float> Vector3Df;</div>
|
---|
188 | <div class="line"><a name="l00207"></a><span class="lineno"> 207</span> </div>
|
---|
189 | <div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <span class="keyword">template</span><<span class="keyword">typename</span> T> Vector3D<T> <a class="code" href="namespaceflair_1_1core.html#ab372a1107820a30d6fcbef13c8989caa">operator+</a>(<span class="keyword">const</span> Vector3D<T> &vectorA, <span class="keyword">const</span> Vector3D<T> &vectorB);</div>
|
---|
190 | <div class="line"><a name="l00218"></a><span class="lineno"> 218</span> </div>
|
---|
191 | <div class="line"><a name="l00228"></a><span class="lineno"> 228</span> <span class="keyword">template</span><<span class="keyword">typename</span> T> Vector3D<T> <a class="code" href="namespaceflair_1_1core.html#ac696d4111ec3b0241bc094add5666245">operator-</a>(<span class="keyword">const</span> Vector3D<T> &vectorA, <span class="keyword">const</span> Vector3D<T> &vectorB);</div>
|
---|
192 | <div class="line"><a name="l00229"></a><span class="lineno"> 229</span> </div>
|
---|
193 | <div class="line"><a name="l00238"></a><span class="lineno"> 238</span> <span class="keyword">template</span><<span class="keyword">typename</span> T> Vector3D<T> <a class="code" href="namespaceflair_1_1core.html#ac696d4111ec3b0241bc094add5666245">operator-</a>(<span class="keyword">const</span> Vector3D<T> &vector);</div>
|
---|
194 | <div class="line"><a name="l00239"></a><span class="lineno"> 239</span> </div>
|
---|
195 | <div class="line"><a name="l00249"></a><span class="lineno"> 249</span> <span class="keyword">template</span><<span class="keyword">typename</span> T> Vector3D<T> <a class="code" href="namespaceflair_1_1core.html#afed3cf9fa6c2e0afb37994f55222d019">operator/</a>(<span class="keyword">const</span> Vector3D<T> &vector, <span class="keywordtype">float</span> coeff);</div>
|
---|
196 | <div class="line"><a name="l00250"></a><span class="lineno"> 250</span> </div>
|
---|
197 | <div class="line"><a name="l00260"></a><span class="lineno"> 260</span> <span class="keyword">template</span><<span class="keyword">typename</span> T> Vector3D<T> <a class="code" href="namespaceflair_1_1core.html#a7a25a222fe16e05be703de31123a6d11">operator*</a>(<span class="keyword">const</span> Vector3D<T> &vectorA, <span class="keyword">const</span> Vector3D<T> &vectorB);</div>
|
---|
198 | <div class="line"><a name="l00261"></a><span class="lineno"> 261</span> </div>
|
---|
199 | <div class="line"><a name="l00271"></a><span class="lineno"> 271</span> <span class="keyword">template</span><<span class="keyword">typename</span> T> Vector3D<T> <a class="code" href="namespaceflair_1_1core.html#a7a25a222fe16e05be703de31123a6d11">operator*</a>(<span class="keyword">const</span> Vector3D<T> &vector, <span class="keywordtype">float</span> coeff);</div>
|
---|
200 | <div class="line"><a name="l00272"></a><span class="lineno"> 272</span> </div>
|
---|
201 | <div class="line"><a name="l00282"></a><span class="lineno"> 282</span> <span class="keyword">template</span><<span class="keyword">typename</span> T> Vector3D<T> <a class="code" href="namespaceflair_1_1core.html#a7a25a222fe16e05be703de31123a6d11">operator*</a>(<span class="keywordtype">float</span> coeff, <span class="keyword">const</span> Vector3D<T> &vector);</div>
|
---|
202 | <div class="line"><a name="l00283"></a><span class="lineno"> 283</span> </div>
|
---|
203 | <div class="line"><a name="l00293"></a><span class="lineno"> 293</span> <span class="keyword">template</span><<span class="keyword">typename</span> T> Vector3D<T> <a class="code" href="namespaceflair_1_1core.html#a619733e606845eb59f7e779f2f119019">CrossProduct</a>(<span class="keyword">const</span> Vector3D<T> &vectorA, <span class="keyword">const</span> Vector3D<T> &vectorB);</div>
|
---|
204 | <div class="line"><a name="l00294"></a><span class="lineno"> 294</span> </div>
|
---|
205 | <div class="line"><a name="l00304"></a><span class="lineno"> 304</span> <span class="keyword">template</span><<span class="keyword">typename</span> T> <span class="keywordtype">float</span> <a class="code" href="namespaceflair_1_1core.html#a792d54dcdbd816e6c7bc5ac04b5d9b22">DotProduct</a>(<span class="keyword">const</span> Vector3D<T> &vectorA, <span class="keyword">const</span> Vector3D<T> &vectorB);</div>
|
---|
206 | <div class="line"><a name="l00305"></a><span class="lineno"> 305</span> </div>
|
---|
207 | <div class="line"><a name="l00306"></a><span class="lineno"> 306</span> } <span class="comment">// end namespace core</span></div>
|
---|
208 | <div class="line"><a name="l00307"></a><span class="lineno"> 307</span> } <span class="comment">// end namespace flair</span></div>
|
---|
209 | <div class="line"><a name="l00308"></a><span class="lineno"> 308</span> </div>
|
---|
210 | <div class="line"><a name="l00309"></a><span class="lineno"> 309</span> <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< T > &min, const Vector3D< T > &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< T > 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 &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< T > operator/(const Vector2D< T > &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 &quaternionA, Quaternion const &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 &quaternionA, Quaternion const &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< T > &vectorA, const Vector3D< T > &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< T > CrossProduct(const Vector3D< T > &vectorA, const Vector3D< T > &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 &quaterniontA, Quaternion const &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>
|
---|