source: flair-dev/trunk/doc/Flair/_vector2_d_8h_source.html @ 44

Last change on this file since 44 was 44, checked in by Sanahuja Guillaume, 4 years ago

m

File size: 20.0 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: Vector2D.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('_vector2_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">Vector2D.h</div>  </div>
109</div><!--header-->
110<div class="contents">
111<a href="_vector2_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="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"></span><span class="preprocessor">#ifndef VECTOR2D_H</span></div>
116<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#define VECTOR2D_H</span></div>
117<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div>
118<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceflair.html">flair</a> {</div>
119<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="keyword">namespace </span>core {</div>
120<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div>
121<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classflair_1_1core_1_1_vector2_d.html">   23</a></span>&#160;<span class="keyword">class </span><a class="code" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a> {</div>
122<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">public</span>:</div>
123<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;  <a class="code" href="classflair_1_1core_1_1_vector2_d.html#a6d04dae020f8f71b144a9585f10c72c8">Vector2D</a>(<span class="keywordtype">float</span> <a class="code" href="classflair_1_1core_1_1_vector2_d.html#a4c496c0f75c9e7ea1eb6fe24756c841b">x</a> = 0, <span class="keywordtype">float</span> <a class="code" href="classflair_1_1core_1_1_vector2_d.html#ade6bd3b2086bd23384ad48d6d342b275">y</a> = 0);</div>
124<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div>
125<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;  <a class="code" href="classflair_1_1core_1_1_vector2_d.html#a78515224e96adcca8c23b0f4bf092fed">~Vector2D</a>();</div>
126<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div>
127<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_vector2_d.html#a246911712ac7ad79a533a5e226e8a6bd">Rotate</a>(<span class="keywordtype">float</span> value);</div>
128<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
129<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_vector2_d.html#a80ed74448580adf222bbdcfa5d35d26d">RotateDeg</a>(<span class="keywordtype">float</span> value);</div>
130<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div>
131<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;  <span class="keywordtype">float</span> <a class="code" href="classflair_1_1core_1_1_vector2_d.html#a889d84730619570fe59de98ffe589722">GetNorm</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;</div>
132<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
133<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_vector2_d.html#afe22b1f414ccc721a65b014a57cb0fdf">Normalize</a>(<span class="keywordtype">void</span>);</div>
134<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
135<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_vector2_d.html#a90c2504d93b1feb260613955f98e9a1d">Saturate</a>(<a class="code" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a> min, <a class="code" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a> max);</div>
136<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div>
137<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_vector2_d.html#a90c2504d93b1feb260613955f98e9a1d">Saturate</a>(<span class="keywordtype">float</span> min, <span class="keywordtype">float</span> max);</div>
138<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div>
139<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classflair_1_1core_1_1_vector2_d.html#a90c2504d93b1feb260613955f98e9a1d">Saturate</a>(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a> &amp;value);</div>
140<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div>
141<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_vector2_d.html#a90c2504d93b1feb260613955f98e9a1d">Saturate</a>(<span class="keywordtype">float</span> value);</div>
142<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div>
143<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classflair_1_1core_1_1_vector2_d.html#a4c496c0f75c9e7ea1eb6fe24756c841b">  108</a></span>&#160;  <span class="keywordtype">float</span> <a class="code" href="classflair_1_1core_1_1_vector2_d.html#a4c496c0f75c9e7ea1eb6fe24756c841b">x</a>;</div>
144<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div>
145<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="classflair_1_1core_1_1_vector2_d.html#ade6bd3b2086bd23384ad48d6d342b275">  113</a></span>&#160;  <span class="keywordtype">float</span> <a class="code" href="classflair_1_1core_1_1_vector2_d.html#ade6bd3b2086bd23384ad48d6d342b275">y</a>;</div>
146<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div>
147<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;  <a class="code" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a> &amp;operator=(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a> &amp;vector);</div>
148<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;};</div>
149<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div>
150<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<a class="code" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a> <a class="code" href="namespaceflair_1_1core.html#ab372a1107820a30d6fcbef13c8989caa">operator+</a>(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a> &amp;vectorA, <span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a> &amp;vectorB);</div>
151<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div>
152<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<a class="code" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</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_vector2_d.html">Vector2D</a> &amp;vectorA, <span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a> &amp;vectorB);</div>
153<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div>
154<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<a class="code" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a> <a class="code" href="namespaceflair_1_1core.html#a36ec6f59d72394edcd8de9ab2cb50fa7">operator/</a>(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a> &amp;vector, <span class="keywordtype">float</span> coeff);</div>
155<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;</div>
156<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<a class="code" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a> <a class="code" href="namespaceflair_1_1core.html#a7a25a222fe16e05be703de31123a6d11">operator*</a>(<span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a> &amp;vector, <span class="keywordtype">float</span> coeff);</div>
157<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;</div>
158<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;<a class="code" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a> <a class="code" href="namespaceflair_1_1core.html#a7a25a222fe16e05be703de31123a6d11">operator*</a>(<span class="keywordtype">float</span> coeff, <span class="keyword">const</span> <a class="code" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a> &amp;vector);</div>
159<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;</div>
160<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;} <span class="comment">// end namespace core</span></div>
161<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;} <span class="comment">// end namespace flair</span></div>
162<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;</div>
163<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;<span class="preprocessor">#endif // VECTOR2D_H</span></div>
164<div class="ttc" id="classflair_1_1core_1_1_vector2_d_html_a80ed74448580adf222bbdcfa5d35d26d"><div class="ttname"><a href="classflair_1_1core_1_1_vector2_d.html#a80ed74448580adf222bbdcfa5d35d26d">flair::core::Vector2D::RotateDeg</a></div><div class="ttdeci">void RotateDeg(float value)</div><div class="ttdoc">Rotation. </div></div>
165<div class="ttc" id="classflair_1_1core_1_1_vector2_d_html_a6d04dae020f8f71b144a9585f10c72c8"><div class="ttname"><a href="classflair_1_1core_1_1_vector2_d.html#a6d04dae020f8f71b144a9585f10c72c8">flair::core::Vector2D::Vector2D</a></div><div class="ttdeci">Vector2D(float x=0, float y=0)</div><div class="ttdoc">Constructor. </div></div>
166<div class="ttc" id="classflair_1_1core_1_1_vector2_d_html_ade6bd3b2086bd23384ad48d6d342b275"><div class="ttname"><a href="classflair_1_1core_1_1_vector2_d.html#ade6bd3b2086bd23384ad48d6d342b275">flair::core::Vector2D::y</a></div><div class="ttdeci">float y</div><div class="ttdoc">y </div><div class="ttdef"><b>Definition:</b> Vector2D.h:113</div></div>
167<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>
168<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:23</div></div>
169<div class="ttc" id="namespaceflair_1_1core_html_a36ec6f59d72394edcd8de9ab2cb50fa7"><div class="ttname"><a href="namespaceflair_1_1core.html#a36ec6f59d72394edcd8de9ab2cb50fa7">flair::core::operator/</a></div><div class="ttdeci">Vector2D operator/(const Vector2D &amp;vector, float coeff)</div><div class="ttdoc">Divid. </div></div>
170<div class="ttc" id="classflair_1_1core_1_1_vector2_d_html_a246911712ac7ad79a533a5e226e8a6bd"><div class="ttname"><a href="classflair_1_1core_1_1_vector2_d.html#a246911712ac7ad79a533a5e226e8a6bd">flair::core::Vector2D::Rotate</a></div><div class="ttdeci">void Rotate(float value)</div><div class="ttdoc">Rotation. </div></div>
171<div class="ttc" id="classflair_1_1core_1_1_vector2_d_html_a889d84730619570fe59de98ffe589722"><div class="ttname"><a href="classflair_1_1core_1_1_vector2_d.html#a889d84730619570fe59de98ffe589722">flair::core::Vector2D::GetNorm</a></div><div class="ttdeci">float GetNorm(void) const </div><div class="ttdoc">Norm. </div></div>
172<div class="ttc" id="classflair_1_1core_1_1_vector2_d_html_a90c2504d93b1feb260613955f98e9a1d"><div class="ttname"><a href="classflair_1_1core_1_1_vector2_d.html#a90c2504d93b1feb260613955f98e9a1d">flair::core::Vector2D::Saturate</a></div><div class="ttdeci">void Saturate(Vector2D min, Vector2D max)</div><div class="ttdoc">Saturate. </div></div>
173<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>
174<div class="ttc" id="classflair_1_1core_1_1_vector2_d_html_afe22b1f414ccc721a65b014a57cb0fdf"><div class="ttname"><a href="classflair_1_1core_1_1_vector2_d.html#afe22b1f414ccc721a65b014a57cb0fdf">flair::core::Vector2D::Normalize</a></div><div class="ttdeci">void Normalize(void)</div><div class="ttdoc">Normalize. </div></div>
175<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>
176<div class="ttc" id="classflair_1_1core_1_1_vector2_d_html_a4c496c0f75c9e7ea1eb6fe24756c841b"><div class="ttname"><a href="classflair_1_1core_1_1_vector2_d.html#a4c496c0f75c9e7ea1eb6fe24756c841b">flair::core::Vector2D::x</a></div><div class="ttdeci">float x</div><div class="ttdoc">x </div><div class="ttdef"><b>Definition:</b> Vector2D.h:108</div></div>
177<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>
178<div class="ttc" id="classflair_1_1core_1_1_vector2_d_html_a78515224e96adcca8c23b0f4bf092fed"><div class="ttname"><a href="classflair_1_1core_1_1_vector2_d.html#a78515224e96adcca8c23b0f4bf092fed">flair::core::Vector2D::~Vector2D</a></div><div class="ttdeci">~Vector2D()</div><div class="ttdoc">Destructor. </div></div>
179</div><!-- fragment --></div><!-- contents -->
180</div><!-- doc-content -->
181<!-- start footer part -->
182<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
183  <ul>
184    <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="_vector2_d_8h.html">Vector2D.h</a></li>
185    <li class="footer">Generated on Thu Jan 5 2017 11:01:22 for Flair by
186    <a href="http://www.doxygen.org/index.html">
187    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
188  </ul>
189</div>
190</body>
191</html>
Note: See TracBrowser for help on using the repository browser.