Changeset 50 in flair-dev for trunk/doc/Flair/_quaternion_8h_source.html
- Timestamp:
- May 31, 2017, 3:54:26 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/Flair/_quaternion_8h_source.html
r47 r50 116 116 <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#define QUATERNION_H</span></div> 117 117 <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div> 118 <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="keyword">namespace </span><a class="code" href="namespaceflair.html">flair</a> {</div> 119 <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="keyword">namespace </span>core {</div> 120 <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="keyword">class </span>Euler;</div> 121 <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="keyword">class </span>Vector3D;</div> 122 <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="keyword">class </span>RotationMatrix;</div> 123 <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div> 124 <div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="classflair_1_1core_1_1_quaternion.html"> 25</a></span> <span class="keyword">class </span><a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> {</div> 125 <div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">public</span>:</div> 126 <div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <a class="code" href="classflair_1_1core_1_1_quaternion.html#a35151d7d2158d0a4714a66d2d426cf9c">Quaternion</a>(<span class="keywordtype">float</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#a5394aa98e53d17253efd3c5eaca11fb2">q0</a> = 1, <span class="keywordtype">float</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#aaaea36fb6b8a1ae444f879e509cb4db5">q1</a> = 0, <span class="keywordtype">float</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#a47c497424771521c976143ef07bc7da1">q2</a> = 0, <span class="keywordtype">float</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#aabf0e55b55e7c66716494c5d7f343e70">q3</a> = 0);</div> 127 <div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div> 128 <div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <a class="code" href="classflair_1_1core_1_1_quaternion.html#a7aa88aa352e17590e0f9b454357fdbfc">~Quaternion</a>();</div> 129 <div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div> 130 <div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordtype">float</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#a6931ec913f61c9708ef5970e63f8b0b5">GetNorm</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;</div> 131 <div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div> 132 <div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#aa540ffe227bbacd124c77f95d8c720b3">Normalize</a>(<span class="keywordtype">void</span>);</div> 133 <div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div> 134 <div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#a6a9b3279a79620aea9a3f9ab67eec245">GetLogarithm</a>(<a class="code" href="classflair_1_1core_1_1_vector3_d.html">Vector3D</a> &logarithm);</div> 135 <div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div> 136 <div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <a class="code" href="classflair_1_1core_1_1_vector3_d.html">Vector3D</a> <a class="code" href="classflair_1_1core_1_1_quaternion.html#a6a9b3279a79620aea9a3f9ab67eec245">GetLogarithm</a>(<span class="keywordtype">void</span>);</div> 137 <div class="line"><a name="l00074"></a><span class="lineno"> 74</span> </div> 138 <div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#ae3cf1c1892b4d1c70ca055e42709f9df">Conjugate</a>(<span class="keywordtype">void</span>);</div> 139 <div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div> 140 <div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <a class="code" href="classflair_1_1core_1_1_quaternion.html#ab7b4f5b1f7419f6179f4fccc49e4e173">GetConjugate</a>(<span class="keywordtype">void</span>);</div> 141 <div class="line"><a name="l00086"></a><span class="lineno"> 86</span> </div> 142 <div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <a class="code" href="classflair_1_1core_1_1_quaternion.html#ac13bf2f238a45ec6d20f1c1d137f1d39">GetDerivative</a>(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html">Vector3D</a> &angularSpeed) <span class="keyword">const</span>;</div> 143 <div class="line"><a name="l00095"></a><span class="lineno"> 95</span> </div> 144 <div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#a6daa4315e90e3567ab3cc82346deae86">Derivate</a>(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html">Vector3D</a> &angularSpeed);</div> 145 <div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div> 146 <div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#ad98cdabf355956519d718aac330174ef">ToEuler</a>(<a class="code" href="classflair_1_1core_1_1_euler.html">Euler</a> &euler) <span class="keyword">const</span>;</div> 147 <div class="line"><a name="l00109"></a><span class="lineno"> 109</span> </div> 148 <div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <a class="code" href="classflair_1_1core_1_1_euler.html">Euler</a> <a class="code" href="classflair_1_1core_1_1_quaternion.html#ad98cdabf355956519d718aac330174ef">ToEuler</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;</div> 149 <div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div> 150 <div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#a29d40f4afe4fa2f79a08a09619a4fc1a">ToRotationMatrix</a>(<a class="code" href="classflair_1_1core_1_1_rotation_matrix.html">RotationMatrix</a> &matrix) <span class="keyword">const</span>;</div> 151 <div class="line"><a name="l00123"></a><span class="lineno"> 123</span> </div> 152 <div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="classflair_1_1core_1_1_quaternion.html#a5394aa98e53d17253efd3c5eaca11fb2"> 127</a></span>  <span class="keywordtype">float</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#a5394aa98e53d17253efd3c5eaca11fb2">q0</a>;</div> 153 <div class="line"><a name="l00128"></a><span class="lineno"> 128</span> </div> 154 <div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="classflair_1_1core_1_1_quaternion.html#aaaea36fb6b8a1ae444f879e509cb4db5"> 132</a></span>  <span class="keywordtype">float</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#aaaea36fb6b8a1ae444f879e509cb4db5">q1</a>;</div> 155 <div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div> 156 <div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="classflair_1_1core_1_1_quaternion.html#a47c497424771521c976143ef07bc7da1"> 137</a></span>  <span class="keywordtype">float</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#a47c497424771521c976143ef07bc7da1">q2</a>;</div> 157 <div class="line"><a name="l00138"></a><span class="lineno"> 138</span> </div> 158 <div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="classflair_1_1core_1_1_quaternion.html#aabf0e55b55e7c66716494c5d7f343e70"> 142</a></span>  <span class="keywordtype">float</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#aabf0e55b55e7c66716494c5d7f343e70">q3</a>;</div> 159 <div class="line"><a name="l00143"></a><span class="lineno"> 143</span> </div> 160 <div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> &operator+=(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> &quaternion);</div> 161 <div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> &operator-=(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> &quaternion);</div> 162 <div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> &operator=(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> &quaternion);</div> 163 <div class="line"><a name="l00147"></a><span class="lineno"> 147</span> };</div> 164 <div class="line"><a name="l00148"></a><span class="lineno"> 148</span> </div> 165 <div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <a class="code" href="namespaceflair_1_1core.html#ab372a1107820a30d6fcbef13c8989caa">operator+</a>(<a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <span class="keyword">const</span> &quaterniontA,</div> 166 <div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <span class="keyword">const</span> &quaterniontB);</div> 167 <div class="line"><a name="l00160"></a><span class="lineno"> 160</span> </div> 168 <div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <a class="code" href="namespaceflair_1_1core.html#ac696d4111ec3b0241bc094add5666245">operator-</a>(<a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <span class="keyword">const</span> &quaternionA,</div> 169 <div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <span class="keyword">const</span> &quaterniontB);</div> 170 <div class="line"><a name="l00172"></a><span class="lineno"> 172</span> </div> 171 <div class="line"><a name="l00181"></a><span class="lineno"> 181</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <a class="code" href="namespaceflair_1_1core.html#ac696d4111ec3b0241bc094add5666245">operator-</a>(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> &quaternion);</div> 172 <div class="line"><a name="l00182"></a><span class="lineno"> 182</span> </div> 173 <div class="line"><a name="l00192"></a><span class="lineno"> 192</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <a class="code" href="namespaceflair_1_1core.html#a7a25a222fe16e05be703de31123a6d11">operator*</a>(<a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <span class="keyword">const</span> &quaternionA,</div> 174 <div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <span class="keyword">const</span> &quaterniontB);</div> 175 <div class="line"><a name="l00194"></a><span class="lineno"> 194</span> </div> 176 <div class="line"><a name="l00204"></a><span class="lineno"> 204</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <a class="code" href="namespaceflair_1_1core.html#a7a25a222fe16e05be703de31123a6d11">operator*</a>(<span class="keywordtype">float</span> coeff, <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <span class="keyword">const</span> &quaternion);</div> 177 <div class="line"><a name="l00205"></a><span class="lineno"> 205</span> </div> 178 <div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <a class="code" href="namespaceflair_1_1core.html#a7a25a222fe16e05be703de31123a6d11">operator*</a>(<a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <span class="keyword">const</span> &quaternion, <span class="keywordtype">float</span> coeff);</div> 179 <div class="line"><a name="l00216"></a><span class="lineno"> 216</span> </div> 180 <div class="line"><a name="l00217"></a><span class="lineno"> 217</span> } <span class="comment">// end namespace core</span></div> 181 <div class="line"><a name="l00218"></a><span class="lineno"> 218</span> } <span class="comment">// end namespace flair</span></div> 182 <div class="line"><a name="l00219"></a><span class="lineno"> 219</span> </div> 183 <div class="line"><a name="l00220"></a><span class="lineno"> 220</span> <span class="preprocessor">#endif // QUATERNION_H</span></div> 118 <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include <<a class="code" href="_vector3_d_8h.html">Vector3D.h</a>></span></div> 119 <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div> 120 <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="keyword">namespace </span><a class="code" href="namespaceflair.html">flair</a> {</div> 121 <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="keyword">namespace </span>core {</div> 122 <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="keyword">class </span>Euler;</div> 123 <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="keyword">class </span>RotationMatrix;</div> 124 <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div> 125 <div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="classflair_1_1core_1_1_quaternion.html"> 26</a></span> <span class="keyword">class </span><a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> {</div> 126 <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">public</span>:</div> 127 <div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <a class="code" href="classflair_1_1core_1_1_quaternion.html#a35151d7d2158d0a4714a66d2d426cf9c">Quaternion</a>(<span class="keywordtype">float</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#a5394aa98e53d17253efd3c5eaca11fb2">q0</a> = 1, <span class="keywordtype">float</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#aaaea36fb6b8a1ae444f879e509cb4db5">q1</a> = 0, <span class="keywordtype">float</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#a47c497424771521c976143ef07bc7da1">q2</a> = 0, <span class="keywordtype">float</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#aabf0e55b55e7c66716494c5d7f343e70">q3</a> = 0);</div> 128 <div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div> 129 <div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <a class="code" href="classflair_1_1core_1_1_quaternion.html#a7aa88aa352e17590e0f9b454357fdbfc">~Quaternion</a>();</div> 130 <div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div> 131 <div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordtype">float</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#a6931ec913f61c9708ef5970e63f8b0b5">GetNorm</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;</div> 132 <div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div> 133 <div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#aa540ffe227bbacd124c77f95d8c720b3">Normalize</a>(<span class="keywordtype">void</span>);</div> 134 <div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div> 135 <div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#abbda897244c722294de3812bfe7a595b">GetLogarithm</a>(<a class="code" href="classflair_1_1core_1_1_vector3_d.html">Vector3Df</a> &logarithm);</div> 136 <div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div> 137 <div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <a class="code" href="classflair_1_1core_1_1_vector3_d.html">Vector3Df</a> <a class="code" href="classflair_1_1core_1_1_quaternion.html#abbda897244c722294de3812bfe7a595b">GetLogarithm</a>(<span class="keywordtype">void</span>);</div> 138 <div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div> 139 <div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#ae3cf1c1892b4d1c70ca055e42709f9df">Conjugate</a>(<span class="keywordtype">void</span>);</div> 140 <div class="line"><a name="l00080"></a><span class="lineno"> 80</span> </div> 141 <div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <a class="code" href="classflair_1_1core_1_1_quaternion.html#ab7b4f5b1f7419f6179f4fccc49e4e173">GetConjugate</a>(<span class="keywordtype">void</span>);</div> 142 <div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div> 143 <div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <a class="code" href="classflair_1_1core_1_1_quaternion.html#a08b196fb32f87dd62e6a3906e5ecaf2c">GetDerivative</a>(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html">Vector3Df</a> &angularSpeed) <span class="keyword">const</span>;</div> 144 <div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div> 145 <div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#a9be083f02e545535ba9dde0dd2ecbcb7">Derivate</a>(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_vector3_d.html">Vector3Df</a> &angularSpeed);</div> 146 <div class="line"><a name="l00103"></a><span class="lineno"> 103</span> </div> 147 <div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#ad98cdabf355956519d718aac330174ef">ToEuler</a>(<a class="code" href="classflair_1_1core_1_1_euler.html">Euler</a> &euler) <span class="keyword">const</span>;</div> 148 <div class="line"><a name="l00110"></a><span class="lineno"> 110</span> </div> 149 <div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <a class="code" href="classflair_1_1core_1_1_euler.html">Euler</a> <a class="code" href="classflair_1_1core_1_1_quaternion.html#ad98cdabf355956519d718aac330174ef">ToEuler</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;</div> 150 <div class="line"><a name="l00117"></a><span class="lineno"> 117</span> </div> 151 <div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#a29d40f4afe4fa2f79a08a09619a4fc1a">ToRotationMatrix</a>(<a class="code" href="classflair_1_1core_1_1_rotation_matrix.html">RotationMatrix</a> &matrix) <span class="keyword">const</span>;</div> 152 <div class="line"><a name="l00124"></a><span class="lineno"> 124</span> </div> 153 <div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="classflair_1_1core_1_1_quaternion.html#a5394aa98e53d17253efd3c5eaca11fb2"> 128</a></span>  <span class="keywordtype">float</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#a5394aa98e53d17253efd3c5eaca11fb2">q0</a>;</div> 154 <div class="line"><a name="l00129"></a><span class="lineno"> 129</span> </div> 155 <div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="classflair_1_1core_1_1_quaternion.html#aaaea36fb6b8a1ae444f879e509cb4db5"> 133</a></span>  <span class="keywordtype">float</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#aaaea36fb6b8a1ae444f879e509cb4db5">q1</a>;</div> 156 <div class="line"><a name="l00134"></a><span class="lineno"> 134</span> </div> 157 <div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="classflair_1_1core_1_1_quaternion.html#a47c497424771521c976143ef07bc7da1"> 138</a></span>  <span class="keywordtype">float</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#a47c497424771521c976143ef07bc7da1">q2</a>;</div> 158 <div class="line"><a name="l00139"></a><span class="lineno"> 139</span> </div> 159 <div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="classflair_1_1core_1_1_quaternion.html#aabf0e55b55e7c66716494c5d7f343e70"> 143</a></span>  <span class="keywordtype">float</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html#aabf0e55b55e7c66716494c5d7f343e70">q3</a>;</div> 160 <div class="line"><a name="l00144"></a><span class="lineno"> 144</span> </div> 161 <div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> &operator+=(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> &quaternion);</div> 162 <div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> &operator-=(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> &quaternion);</div> 163 <div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> &operator=(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> &quaternion);</div> 164 <div class="line"><a name="l00148"></a><span class="lineno"> 148</span> };</div> 165 <div class="line"><a name="l00149"></a><span class="lineno"> 149</span> </div> 166 <div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <a class="code" href="namespaceflair_1_1core.html#ab372a1107820a30d6fcbef13c8989caa">operator+</a>(<a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <span class="keyword">const</span> &quaterniontA,</div> 167 <div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <span class="keyword">const</span> &quaterniontB);</div> 168 <div class="line"><a name="l00161"></a><span class="lineno"> 161</span> </div> 169 <div class="line"><a name="l00171"></a><span class="lineno"> 171</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <a class="code" href="namespaceflair_1_1core.html#ac696d4111ec3b0241bc094add5666245">operator-</a>(<a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <span class="keyword">const</span> &quaternionA,</div> 170 <div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <span class="keyword">const</span> &quaterniontB);</div> 171 <div class="line"><a name="l00173"></a><span class="lineno"> 173</span> </div> 172 <div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <a class="code" href="namespaceflair_1_1core.html#ac696d4111ec3b0241bc094add5666245">operator-</a>(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> &quaternion);</div> 173 <div class="line"><a name="l00183"></a><span class="lineno"> 183</span> </div> 174 <div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <a class="code" href="namespaceflair_1_1core.html#a7a25a222fe16e05be703de31123a6d11">operator*</a>(<a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <span class="keyword">const</span> &quaternionA,</div> 175 <div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <span class="keyword">const</span> &quaterniontB);</div> 176 <div class="line"><a name="l00195"></a><span class="lineno"> 195</span> </div> 177 <div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <a class="code" href="namespaceflair_1_1core.html#a7a25a222fe16e05be703de31123a6d11">operator*</a>(<span class="keywordtype">float</span> coeff, <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <span class="keyword">const</span> &quaternion);</div> 178 <div class="line"><a name="l00206"></a><span class="lineno"> 206</span> </div> 179 <div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <a class="code" href="namespaceflair_1_1core.html#a7a25a222fe16e05be703de31123a6d11">operator*</a>(<a class="code" href="classflair_1_1core_1_1_quaternion.html">Quaternion</a> <span class="keyword">const</span> &quaternion, <span class="keywordtype">float</span> coeff);</div> 180 <div class="line"><a name="l00217"></a><span class="lineno"> 217</span> </div> 181 <div class="line"><a name="l00218"></a><span class="lineno"> 218</span> } <span class="comment">// end namespace core</span></div> 182 <div class="line"><a name="l00219"></a><span class="lineno"> 219</span> } <span class="comment">// end namespace flair</span></div> 183 <div class="line"><a name="l00220"></a><span class="lineno"> 220</span> </div> 184 <div class="line"><a name="l00221"></a><span class="lineno"> 221</span> <span class="preprocessor">#endif // QUATERNION_H</span></div> 184 185 <div class="ttc" id="classflair_1_1core_1_1_quaternion_html_a6931ec913f61c9708ef5970e63f8b0b5"><div class="ttname"><a href="classflair_1_1core_1_1_quaternion.html#a6931ec913f61c9708ef5970e63f8b0b5">flair::core::Quaternion::GetNorm</a></div><div class="ttdeci">float GetNorm(void) const </div><div class="ttdoc">Norm. </div></div> 185 186 <div class="ttc" id="classflair_1_1core_1_1_quaternion_html_a35151d7d2158d0a4714a66d2d426cf9c"><div class="ttname"><a href="classflair_1_1core_1_1_quaternion.html#a35151d7d2158d0a4714a66d2d426cf9c">flair::core::Quaternion::Quaternion</a></div><div class="ttdeci">Quaternion(float q0=1, float q1=0, float q2=0, float q3=0)</div><div class="ttdoc">Constructor. </div></div> … … 187 188 <div class="ttc" id="classflair_1_1core_1_1_quaternion_html_aa540ffe227bbacd124c77f95d8c720b3"><div class="ttname"><a href="classflair_1_1core_1_1_quaternion.html#aa540ffe227bbacd124c77f95d8c720b3">flair::core::Quaternion::Normalize</a></div><div class="ttdeci">void Normalize(void)</div><div class="ttdoc">Normalize. </div></div> 188 189 <div class="ttc" id="classflair_1_1core_1_1_quaternion_html_ae3cf1c1892b4d1c70ca055e42709f9df"><div class="ttname"><a href="classflair_1_1core_1_1_quaternion.html#ae3cf1c1892b4d1c70ca055e42709f9df">flair::core::Quaternion::Conjugate</a></div><div class="ttdeci">void Conjugate(void)</div><div class="ttdoc">Conjugate. </div></div> 189 <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:28</div></div>190 <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< float ></a></div></div> 190 191 <div class="ttc" id="classflair_1_1core_1_1_euler_html"><div class="ttname"><a href="classflair_1_1core_1_1_euler.html">flair::core::Euler</a></div><div class="ttdoc">Class defining euler angles. </div><div class="ttdef"><b>Definition:</b> Euler.h:27</div></div> 191 <div class="ttc" id="classflair_1_1core_1_1_quaternion_html_aaaea36fb6b8a1ae444f879e509cb4db5"><div class="ttname"><a href="classflair_1_1core_1_1_quaternion.html#aaaea36fb6b8a1ae444f879e509cb4db5">flair::core::Quaternion::q1</a></div><div class="ttdeci">float q1</div><div class="ttdoc">q1 </div><div class="ttdef"><b>Definition:</b> Quaternion.h:132</div></div> 192 <div class="ttc" id="classflair_1_1core_1_1_quaternion_html_a6daa4315e90e3567ab3cc82346deae86"><div class="ttname"><a href="classflair_1_1core_1_1_quaternion.html#a6daa4315e90e3567ab3cc82346deae86">flair::core::Quaternion::Derivate</a></div><div class="ttdeci">void Derivate(const Vector3D &angularSpeed)</div><div class="ttdoc">Derivate. </div></div> 192 <div class="ttc" id="classflair_1_1core_1_1_quaternion_html_aaaea36fb6b8a1ae444f879e509cb4db5"><div class="ttname"><a href="classflair_1_1core_1_1_quaternion.html#aaaea36fb6b8a1ae444f879e509cb4db5">flair::core::Quaternion::q1</a></div><div class="ttdeci">float q1</div><div class="ttdoc">q1 </div><div class="ttdef"><b>Definition:</b> Quaternion.h:133</div></div> 193 193 <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> 194 <div class="ttc" id="classflair_1_1core_1_1_quaternion_html_a6a9b3279a79620aea9a3f9ab67eec245"><div class="ttname"><a href="classflair_1_1core_1_1_quaternion.html#a6a9b3279a79620aea9a3f9ab67eec245">flair::core::Quaternion::GetLogarithm</a></div><div class="ttdeci">Vector3D GetLogarithm(void)</div><div class="ttdoc">Logarithm. </div></div> 194 <div class="ttc" id="_vector3_d_8h_html"><div class="ttname"><a href="_vector3_d_8h.html">Vector3D.h</a></div><div class="ttdoc">Class defining a 3D vector. </div></div> 195 <div class="ttc" id="classflair_1_1core_1_1_quaternion_html_a08b196fb32f87dd62e6a3906e5ecaf2c"><div class="ttname"><a href="classflair_1_1core_1_1_quaternion.html#a08b196fb32f87dd62e6a3906e5ecaf2c">flair::core::Quaternion::GetDerivative</a></div><div class="ttdeci">Quaternion GetDerivative(const Vector3Df &angularSpeed) const </div><div class="ttdoc">Derivative. </div></div> 196 <div class="ttc" id="classflair_1_1core_1_1_quaternion_html_a9be083f02e545535ba9dde0dd2ecbcb7"><div class="ttname"><a href="classflair_1_1core_1_1_quaternion.html#a9be083f02e545535ba9dde0dd2ecbcb7">flair::core::Quaternion::Derivate</a></div><div class="ttdeci">void Derivate(const Vector3Df &angularSpeed)</div><div class="ttdoc">Derivate. </div></div> 195 197 <div class="ttc" id="classflair_1_1core_1_1_quaternion_html_a29d40f4afe4fa2f79a08a09619a4fc1a"><div class="ttname"><a href="classflair_1_1core_1_1_quaternion.html#a29d40f4afe4fa2f79a08a09619a4fc1a">flair::core::Quaternion::ToRotationMatrix</a></div><div class="ttdeci">void ToRotationMatrix(RotationMatrix &matrix) const </div><div class="ttdoc">Convert to rotation matrix. </div></div> 196 <div class="ttc" id="classflair_1_1core_1_1_quaternion_html_ac13bf2f238a45ec6d20f1c1d137f1d39"><div class="ttname"><a href="classflair_1_1core_1_1_quaternion.html#ac13bf2f238a45ec6d20f1c1d137f1d39">flair::core::Quaternion::GetDerivative</a></div><div class="ttdeci">Quaternion GetDerivative(const Vector3D &angularSpeed) const </div><div class="ttdoc">Derivative. </div></div>197 198 <div class="ttc" id="classflair_1_1core_1_1_quaternion_html_ab7b4f5b1f7419f6179f4fccc49e4e173"><div class="ttname"><a href="classflair_1_1core_1_1_quaternion.html#ab7b4f5b1f7419f6179f4fccc49e4e173">flair::core::Quaternion::GetConjugate</a></div><div class="ttdeci">Quaternion GetConjugate(void)</div><div class="ttdoc">Conjugate. </div></div> 198 <div class="ttc" id="classflair_1_1core_1_1_quaternion_html_a47c497424771521c976143ef07bc7da1"><div class="ttname"><a href="classflair_1_1core_1_1_quaternion.html#a47c497424771521c976143ef07bc7da1">flair::core::Quaternion::q2</a></div><div class="ttdeci">float q2</div><div class="ttdoc">q2 </div><div class="ttdef"><b>Definition:</b> Quaternion.h:13 7</div></div>199 <div class="ttc" id="classflair_1_1core_1_1_quaternion_html_a47c497424771521c976143ef07bc7da1"><div class="ttname"><a href="classflair_1_1core_1_1_quaternion.html#a47c497424771521c976143ef07bc7da1">flair::core::Quaternion::q2</a></div><div class="ttdeci">float q2</div><div class="ttdoc">q2 </div><div class="ttdef"><b>Definition:</b> Quaternion.h:138</div></div> 199 200 <div class="ttc" id="classflair_1_1core_1_1_quaternion_html_a7aa88aa352e17590e0f9b454357fdbfc"><div class="ttname"><a href="classflair_1_1core_1_1_quaternion.html#a7aa88aa352e17590e0f9b454357fdbfc">flair::core::Quaternion::~Quaternion</a></div><div class="ttdeci">~Quaternion()</div><div class="ttdoc">Destructor. </div></div> 200 201 <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> 201 <div class="ttc" id="classflair_1_1core_1_1_quaternion_html_a5394aa98e53d17253efd3c5eaca11fb2"><div class="ttname"><a href="classflair_1_1core_1_1_quaternion.html#a5394aa98e53d17253efd3c5eaca11fb2">flair::core::Quaternion::q0</a></div><div class="ttdeci">float q0</div><div class="ttdoc">q0 </div><div class="ttdef"><b>Definition:</b> Quaternion.h:12 7</div></div>202 <div class="ttc" id="classflair_1_1core_1_1_quaternion_html_a5394aa98e53d17253efd3c5eaca11fb2"><div class="ttname"><a href="classflair_1_1core_1_1_quaternion.html#a5394aa98e53d17253efd3c5eaca11fb2">flair::core::Quaternion::q0</a></div><div class="ttdeci">float q0</div><div class="ttdoc">q0 </div><div class="ttdef"><b>Definition:</b> Quaternion.h:128</div></div> 202 203 <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> 203 <div class="ttc" id="classflair_1_1core_1_1_quaternion_html_aabf0e55b55e7c66716494c5d7f343e70"><div class="ttname"><a href="classflair_1_1core_1_1_quaternion.html#aabf0e55b55e7c66716494c5d7f343e70">flair::core::Quaternion::q3</a></div><div class="ttdeci">float q3</div><div class="ttdoc">q3 </div><div class="ttdef"><b>Definition:</b> Quaternion.h:142</div></div> 204 <div class="ttc" id="classflair_1_1core_1_1_quaternion_html_aabf0e55b55e7c66716494c5d7f343e70"><div class="ttname"><a href="classflair_1_1core_1_1_quaternion.html#aabf0e55b55e7c66716494c5d7f343e70">flair::core::Quaternion::q3</a></div><div class="ttdeci">float q3</div><div class="ttdoc">q3 </div><div class="ttdef"><b>Definition:</b> Quaternion.h:143</div></div> 205 <div class="ttc" id="classflair_1_1core_1_1_quaternion_html_abbda897244c722294de3812bfe7a595b"><div class="ttname"><a href="classflair_1_1core_1_1_quaternion.html#abbda897244c722294de3812bfe7a595b">flair::core::Quaternion::GetLogarithm</a></div><div class="ttdeci">Vector3Df GetLogarithm(void)</div><div class="ttdoc">Logarithm. </div></div> 204 206 <div class="ttc" id="classflair_1_1core_1_1_quaternion_html_ad98cdabf355956519d718aac330174ef"><div class="ttname"><a href="classflair_1_1core_1_1_quaternion.html#ad98cdabf355956519d718aac330174ef">flair::core::Quaternion::ToEuler</a></div><div class="ttdeci">Euler ToEuler(void) const </div><div class="ttdoc">Convert to euler angles. </div></div> 205 207 <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> 206 <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:2 5</div></div>208 <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> 207 209 </div><!-- fragment --></div><!-- contents --> 208 210 </div><!-- doc-content --> … … 211 213 <ul> 212 214 <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="_quaternion_8h.html">Quaternion.h</a></li> 213 <li class="footer">Generated on Tue Jan 17 2017 09:52:30for Flair by215 <li class="footer">Generated on Wed May 31 2017 13:50:37 for Flair by 214 216 <a href="http://www.doxygen.org/index.html"> 215 217 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
Note:
See TracChangeset
for help on using the changeset viewer.