source: flair-dev/trunk/doc/Flair/classflair_1_1core_1_1_vector2_d.html@ 62

Last change on this file since 62 was 62, checked in by Sanahuja Guillaume, 5 years ago

m

File size: 25.1 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: flair::core::Vector2D&lt; T &gt; Class Template Reference</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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
53 <li><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="annotated.html"><span>Class&#160;List</span></a></li>
75 <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
76 <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
77 <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
78 </ul>
79 </div>
80</div><!-- top -->
81<div id="side-nav" class="ui-resizable side-nav-resizable">
82 <div id="nav-tree">
83 <div id="nav-tree-contents">
84 <div id="nav-sync" class="sync"></div>
85 </div>
86 </div>
87 <div id="splitbar" style="-moz-user-select:none;"
88 class="ui-resizable-handle">
89 </div>
90</div>
91<script type="text/javascript">
92$(document).ready(function(){initNavTree('classflair_1_1core_1_1_vector2_d.html','');});
93</script>
94<div id="doc-content">
95<!-- window showing the filter options -->
96<div id="MSearchSelectWindow"
97 onmouseover="return searchBox.OnSearchSelectShow()"
98 onmouseout="return searchBox.OnSearchSelectHide()"
99 onkeydown="return searchBox.OnSearchSelectKey(event)">
100</div>
101
102<!-- iframe showing the search results (closed by default) -->
103<div id="MSearchResultsWindow">
104<iframe src="javascript:void(0)" frameborder="0"
105 name="MSearchResults" id="MSearchResults">
106</iframe>
107</div>
108
109<div class="header">
110 <div class="summary">
111<a href="#pub-methods">Public Member Functions</a> &#124;
112<a href="#pub-attribs">Public Attributes</a> &#124;
113<a href="classflair_1_1core_1_1_vector2_d-members.html">List of all members</a> </div>
114 <div class="headertitle">
115<div class="title">flair::core::Vector2D&lt; T &gt; Class Template Reference</div> </div>
116</div><!--header-->
117<div class="contents">
118
119<p>Class defining a 2D vector.
120 <a href="classflair_1_1core_1_1_vector2_d.html#details">More...</a></p>
121
122<p><code>#include &lt;<a class="el" href="_vector2_d_8h_source.html">Vector2D.h</a>&gt;</code></p>
123<table class="memberdecls">
124<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
125Public Member Functions</h2></td></tr>
126<tr class="memitem:a4b3ae561882bcb95db97ee23e07eae9e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_vector2_d.html#a4b3ae561882bcb95db97ee23e07eae9e">Vector2D</a> (T <a class="el" href="classflair_1_1core_1_1_vector2_d.html#adc92c6671b0a23292eff87f782791d7b">x</a>=0, T <a class="el" href="classflair_1_1core_1_1_vector2_d.html#a7f971d69af939edaf3f3b99339f9e389">y</a>=0)</td></tr>
127<tr class="memdesc:a4b3ae561882bcb95db97ee23e07eae9e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <a href="#a4b3ae561882bcb95db97ee23e07eae9e">More...</a><br /></td></tr>
128<tr class="separator:a4b3ae561882bcb95db97ee23e07eae9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
129<tr class="memitem:a7b26acd44a32983e8e901fa761c368df"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_vector2_d.html#a7b26acd44a32983e8e901fa761c368df">~Vector2D</a> ()</td></tr>
130<tr class="memdesc:a7b26acd44a32983e8e901fa761c368df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <a href="#a7b26acd44a32983e8e901fa761c368df">More...</a><br /></td></tr>
131<tr class="separator:a7b26acd44a32983e8e901fa761c368df"><td class="memSeparator" colspan="2">&#160;</td></tr>
132<tr class="memitem:a21daa593189491de24363448b1ad73af"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_vector2_d.html#a21daa593189491de24363448b1ad73af">Rotate</a> (float value)</td></tr>
133<tr class="memdesc:a21daa593189491de24363448b1ad73af"><td class="mdescLeft">&#160;</td><td class="mdescRight">Rotation. <a href="#a21daa593189491de24363448b1ad73af">More...</a><br /></td></tr>
134<tr class="separator:a21daa593189491de24363448b1ad73af"><td class="memSeparator" colspan="2">&#160;</td></tr>
135<tr class="memitem:a572147dfa3c10871a9e01904a1f9a751"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_vector2_d.html#a572147dfa3c10871a9e01904a1f9a751">RotateDeg</a> (float value)</td></tr>
136<tr class="memdesc:a572147dfa3c10871a9e01904a1f9a751"><td class="mdescLeft">&#160;</td><td class="mdescRight">Rotation. <a href="#a572147dfa3c10871a9e01904a1f9a751">More...</a><br /></td></tr>
137<tr class="separator:a572147dfa3c10871a9e01904a1f9a751"><td class="memSeparator" colspan="2">&#160;</td></tr>
138<tr class="memitem:a81926d1dc61bb56706b99f5bfb4d1ca3"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_vector2_d.html#a81926d1dc61bb56706b99f5bfb4d1ca3">GetNorm</a> (void) const </td></tr>
139<tr class="memdesc:a81926d1dc61bb56706b99f5bfb4d1ca3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Norm. <a href="#a81926d1dc61bb56706b99f5bfb4d1ca3">More...</a><br /></td></tr>
140<tr class="separator:a81926d1dc61bb56706b99f5bfb4d1ca3"><td class="memSeparator" colspan="2">&#160;</td></tr>
141<tr class="memitem:a9ee928de991ca4872f2e877e87393f03"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_vector2_d.html#a9ee928de991ca4872f2e877e87393f03">Normalize</a> (void)</td></tr>
142<tr class="memdesc:a9ee928de991ca4872f2e877e87393f03"><td class="mdescLeft">&#160;</td><td class="mdescRight">Normalize. <a href="#a9ee928de991ca4872f2e877e87393f03">More...</a><br /></td></tr>
143<tr class="separator:a9ee928de991ca4872f2e877e87393f03"><td class="memSeparator" colspan="2">&#160;</td></tr>
144<tr class="memitem:ab7c4e044ae4a49d8bfc344023540ceeb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_vector2_d.html#ab7c4e044ae4a49d8bfc344023540ceeb">Saturate</a> (<a class="el" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a>&lt; T &gt; min, <a class="el" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a>&lt; T &gt; max)</td></tr>
145<tr class="memdesc:ab7c4e044ae4a49d8bfc344023540ceeb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Saturate. <a href="#ab7c4e044ae4a49d8bfc344023540ceeb">More...</a><br /></td></tr>
146<tr class="separator:ab7c4e044ae4a49d8bfc344023540ceeb"><td class="memSeparator" colspan="2">&#160;</td></tr>
147<tr class="memitem:ae273561ec3dda8b2976aa8c26a3c3d6f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_vector2_d.html#ae273561ec3dda8b2976aa8c26a3c3d6f">Saturate</a> (float min, float max)</td></tr>
148<tr class="memdesc:ae273561ec3dda8b2976aa8c26a3c3d6f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Saturate. <a href="#ae273561ec3dda8b2976aa8c26a3c3d6f">More...</a><br /></td></tr>
149<tr class="separator:ae273561ec3dda8b2976aa8c26a3c3d6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
150<tr class="memitem:a7551a14a121ef7637f18b5dabc0d6f19"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_vector2_d.html#a7551a14a121ef7637f18b5dabc0d6f19">Saturate</a> (const <a class="el" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a>&lt; T &gt; &amp;value)</td></tr>
151<tr class="memdesc:a7551a14a121ef7637f18b5dabc0d6f19"><td class="mdescLeft">&#160;</td><td class="mdescRight">Saturate. <a href="#a7551a14a121ef7637f18b5dabc0d6f19">More...</a><br /></td></tr>
152<tr class="separator:a7551a14a121ef7637f18b5dabc0d6f19"><td class="memSeparator" colspan="2">&#160;</td></tr>
153<tr class="memitem:ab5685f2986c3f1b6f0c7caa596120ee1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_vector2_d.html#ab5685f2986c3f1b6f0c7caa596120ee1">Saturate</a> (float value)</td></tr>
154<tr class="memdesc:ab5685f2986c3f1b6f0c7caa596120ee1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Saturate. <a href="#ab5685f2986c3f1b6f0c7caa596120ee1">More...</a><br /></td></tr>
155<tr class="separator:ab5685f2986c3f1b6f0c7caa596120ee1"><td class="memSeparator" colspan="2">&#160;</td></tr>
156<tr class="memitem:a806eaaf09726b63320b68911bef05911"><td class="memTemplParams" colspan="2"><a class="anchor" id="a806eaaf09726b63320b68911bef05911"></a>
157template&lt;typename S &gt; </td></tr>
158<tr class="memitem:a806eaaf09726b63320b68911bef05911"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a>&lt; T &gt; &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a>&lt; S &gt; &amp;vector)</td></tr>
159<tr class="separator:a806eaaf09726b63320b68911bef05911"><td class="memSeparator" colspan="2">&#160;</td></tr>
160<tr class="memitem:ac7963973a8e2c965c4fef7ef65042f43"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac7963973a8e2c965c4fef7ef65042f43"></a>
161<a class="el" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a>&lt; T &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator+=</b> (const <a class="el" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a>&lt; T &gt; &amp;vector)</td></tr>
162<tr class="separator:ac7963973a8e2c965c4fef7ef65042f43"><td class="memSeparator" colspan="2">&#160;</td></tr>
163<tr class="memitem:a8217462c874479f7bad85b653a1b6e22"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8217462c874479f7bad85b653a1b6e22"></a>
164<a class="el" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a>&lt; T &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator-=</b> (const <a class="el" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a>&lt; T &gt; &amp;vector)</td></tr>
165<tr class="separator:a8217462c874479f7bad85b653a1b6e22"><td class="memSeparator" colspan="2">&#160;</td></tr>
166</table><table class="memberdecls">
167<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
168Public Attributes</h2></td></tr>
169<tr class="memitem:adc92c6671b0a23292eff87f782791d7b"><td class="memItemLeft" align="right" valign="top">T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_vector2_d.html#adc92c6671b0a23292eff87f782791d7b">x</a></td></tr>
170<tr class="memdesc:adc92c6671b0a23292eff87f782791d7b"><td class="mdescLeft">&#160;</td><td class="mdescRight">x <a href="#adc92c6671b0a23292eff87f782791d7b">More...</a><br /></td></tr>
171<tr class="separator:adc92c6671b0a23292eff87f782791d7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
172<tr class="memitem:a7f971d69af939edaf3f3b99339f9e389"><td class="memItemLeft" align="right" valign="top">T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_vector2_d.html#a7f971d69af939edaf3f3b99339f9e389">y</a></td></tr>
173<tr class="memdesc:a7f971d69af939edaf3f3b99339f9e389"><td class="mdescLeft">&#160;</td><td class="mdescRight">y <a href="#a7f971d69af939edaf3f3b99339f9e389">More...</a><br /></td></tr>
174<tr class="separator:a7f971d69af939edaf3f3b99339f9e389"><td class="memSeparator" colspan="2">&#160;</td></tr>
175</table>
176<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
177<div class="textblock"><h3>template&lt;typename T&gt;<br />
178class flair::core::Vector2D&lt; T &gt;</h3>
179
180<p>Class defining a 2D vector. </p>
181</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
182<a class="anchor" id="a4b3ae561882bcb95db97ee23e07eae9e"></a>
183<div class="memitem">
184<div class="memproto">
185<div class="memtemplate">
186template&lt;typename T&gt; </div>
187 <table class="memname">
188 <tr>
189 <td class="memname"><a class="el" href="classflair_1_1core_1_1_vector2_d.html">flair::core::Vector2D</a>&lt; T &gt;::<a class="el" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a> </td>
190 <td>(</td>
191 <td class="paramtype">T&#160;</td>
192 <td class="paramname"><em>x</em> = <code>0</code>, </td>
193 </tr>
194 <tr>
195 <td class="paramkey"></td>
196 <td></td>
197 <td class="paramtype">T&#160;</td>
198 <td class="paramname"><em>y</em> = <code>0</code>&#160;</td>
199 </tr>
200 <tr>
201 <td></td>
202 <td>)</td>
203 <td></td><td></td>
204 </tr>
205 </table>
206</div><div class="memdoc">
207
208<p>Constructor. </p>
209<p>Construct a <a class="el" href="classflair_1_1core_1_1_vector2_d.html" title="Class defining a 2D vector. ">Vector2D</a> using specified values.</p>
210<dl class="params"><dt>Parameters</dt><dd>
211 <table class="params">
212 <tr><td class="paramname">x</td><td></td></tr>
213 <tr><td class="paramname">y</td><td></td></tr>
214 </table>
215 </dd>
216</dl>
217
218</div>
219</div>
220<a class="anchor" id="a7b26acd44a32983e8e901fa761c368df"></a>
221<div class="memitem">
222<div class="memproto">
223<div class="memtemplate">
224template&lt;typename T&gt; </div>
225 <table class="memname">
226 <tr>
227 <td class="memname"><a class="el" href="classflair_1_1core_1_1_vector2_d.html">flair::core::Vector2D</a>&lt; T &gt;::~<a class="el" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a> </td>
228 <td>(</td>
229 <td class="paramname"></td><td>)</td>
230 <td></td>
231 </tr>
232 </table>
233</div><div class="memdoc">
234
235<p>Destructor. </p>
236
237</div>
238</div>
239<h2 class="groupheader">Member Function Documentation</h2>
240<a class="anchor" id="a21daa593189491de24363448b1ad73af"></a>
241<div class="memitem">
242<div class="memproto">
243<div class="memtemplate">
244template&lt;typename T&gt; </div>
245 <table class="memname">
246 <tr>
247 <td class="memname">void <a class="el" href="classflair_1_1core_1_1_vector2_d.html">flair::core::Vector2D</a>&lt; T &gt;::Rotate </td>
248 <td>(</td>
249 <td class="paramtype">float&#160;</td>
250 <td class="paramname"><em>value</em></td><td>)</td>
251 <td></td>
252 </tr>
253 </table>
254</div><div class="memdoc">
255
256<p>Rotation. </p>
257<dl class="params"><dt>Parameters</dt><dd>
258 <table class="params">
259 <tr><td class="paramname">value</td><td>rotation value in radians </td></tr>
260 </table>
261 </dd>
262</dl>
263
264</div>
265</div>
266<a class="anchor" id="a572147dfa3c10871a9e01904a1f9a751"></a>
267<div class="memitem">
268<div class="memproto">
269<div class="memtemplate">
270template&lt;typename T&gt; </div>
271 <table class="memname">
272 <tr>
273 <td class="memname">void <a class="el" href="classflair_1_1core_1_1_vector2_d.html">flair::core::Vector2D</a>&lt; T &gt;::RotateDeg </td>
274 <td>(</td>
275 <td class="paramtype">float&#160;</td>
276 <td class="paramname"><em>value</em></td><td>)</td>
277 <td></td>
278 </tr>
279 </table>
280</div><div class="memdoc">
281
282<p>Rotation. </p>
283<dl class="params"><dt>Parameters</dt><dd>
284 <table class="params">
285 <tr><td class="paramname">value</td><td>rotation value in degrees </td></tr>
286 </table>
287 </dd>
288</dl>
289
290</div>
291</div>
292<a class="anchor" id="a81926d1dc61bb56706b99f5bfb4d1ca3"></a>
293<div class="memitem">
294<div class="memproto">
295<div class="memtemplate">
296template&lt;typename T&gt; </div>
297 <table class="memname">
298 <tr>
299 <td class="memname">float <a class="el" href="classflair_1_1core_1_1_vector2_d.html">flair::core::Vector2D</a>&lt; T &gt;::GetNorm </td>
300 <td>(</td>
301 <td class="paramtype">void&#160;</td>
302 <td class="paramname"></td><td>)</td>
303 <td> const</td>
304 </tr>
305 </table>
306</div><div class="memdoc">
307
308<p>Norm. </p>
309<dl class="section return"><dt>Returns</dt><dd>value </dd></dl>
310
311</div>
312</div>
313<a class="anchor" id="a9ee928de991ca4872f2e877e87393f03"></a>
314<div class="memitem">
315<div class="memproto">
316<div class="memtemplate">
317template&lt;typename T&gt; </div>
318 <table class="memname">
319 <tr>
320 <td class="memname">void <a class="el" href="classflair_1_1core_1_1_vector2_d.html">flair::core::Vector2D</a>&lt; T &gt;::Normalize </td>
321 <td>(</td>
322 <td class="paramtype">void&#160;</td>
323 <td class="paramname"></td><td>)</td>
324 <td></td>
325 </tr>
326 </table>
327</div><div class="memdoc">
328
329<p>Normalize. </p>
330
331</div>
332</div>
333<a class="anchor" id="ab7c4e044ae4a49d8bfc344023540ceeb"></a>
334<div class="memitem">
335<div class="memproto">
336<div class="memtemplate">
337template&lt;typename T&gt; </div>
338 <table class="memname">
339 <tr>
340 <td class="memname">void <a class="el" href="classflair_1_1core_1_1_vector2_d.html">flair::core::Vector2D</a>&lt; T &gt;::Saturate </td>
341 <td>(</td>
342 <td class="paramtype"><a class="el" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a>&lt; T &gt;&#160;</td>
343 <td class="paramname"><em>min</em>, </td>
344 </tr>
345 <tr>
346 <td class="paramkey"></td>
347 <td></td>
348 <td class="paramtype"><a class="el" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a>&lt; T &gt;&#160;</td>
349 <td class="paramname"><em>max</em>&#160;</td>
350 </tr>
351 <tr>
352 <td></td>
353 <td>)</td>
354 <td></td><td></td>
355 </tr>
356 </table>
357</div><div class="memdoc">
358
359<p>Saturate. </p>
360<p>Saturate between min and max</p>
361<dl class="params"><dt>Parameters</dt><dd>
362 <table class="params">
363 <tr><td class="paramname">min</td><td>minimum <a class="el" href="classflair_1_1core_1_1_vector2_d.html" title="Class defining a 2D vector. ">Vector2D</a> value </td></tr>
364 <tr><td class="paramname">max</td><td>maximum <a class="el" href="classflair_1_1core_1_1_vector2_d.html" title="Class defining a 2D vector. ">Vector2D</a> value </td></tr>
365 </table>
366 </dd>
367</dl>
368
369</div>
370</div>
371<a class="anchor" id="ae273561ec3dda8b2976aa8c26a3c3d6f"></a>
372<div class="memitem">
373<div class="memproto">
374<div class="memtemplate">
375template&lt;typename T&gt; </div>
376 <table class="memname">
377 <tr>
378 <td class="memname">void <a class="el" href="classflair_1_1core_1_1_vector2_d.html">flair::core::Vector2D</a>&lt; T &gt;::Saturate </td>
379 <td>(</td>
380 <td class="paramtype">float&#160;</td>
381 <td class="paramname"><em>min</em>, </td>
382 </tr>
383 <tr>
384 <td class="paramkey"></td>
385 <td></td>
386 <td class="paramtype">float&#160;</td>
387 <td class="paramname"><em>max</em>&#160;</td>
388 </tr>
389 <tr>
390 <td></td>
391 <td>)</td>
392 <td></td><td></td>
393 </tr>
394 </table>
395</div><div class="memdoc">
396
397<p>Saturate. </p>
398<p>Saturate between min and max</p>
399<dl class="params"><dt>Parameters</dt><dd>
400 <table class="params">
401 <tr><td class="paramname">min</td><td>minimum Vector2D(min,min) value </td></tr>
402 <tr><td class="paramname">max</td><td>maximum Vector2D(max,max) value </td></tr>
403 </table>
404 </dd>
405</dl>
406
407</div>
408</div>
409<a class="anchor" id="a7551a14a121ef7637f18b5dabc0d6f19"></a>
410<div class="memitem">
411<div class="memproto">
412<div class="memtemplate">
413template&lt;typename T&gt; </div>
414 <table class="memname">
415 <tr>
416 <td class="memname">void <a class="el" href="classflair_1_1core_1_1_vector2_d.html">flair::core::Vector2D</a>&lt; T &gt;::Saturate </td>
417 <td>(</td>
418 <td class="paramtype">const <a class="el" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a>&lt; T &gt; &amp;&#160;</td>
419 <td class="paramname"><em>value</em></td><td>)</td>
420 <td></td>
421 </tr>
422 </table>
423</div><div class="memdoc">
424
425<p>Saturate. </p>
426<p>Saturate between -abs(value) and abs(value)</p>
427<dl class="params"><dt>Parameters</dt><dd>
428 <table class="params">
429 <tr><td class="paramname">value</td><td>saturation <a class="el" href="classflair_1_1core_1_1_vector2_d.html" title="Class defining a 2D vector. ">Vector2D</a> value </td></tr>
430 </table>
431 </dd>
432</dl>
433
434</div>
435</div>
436<a class="anchor" id="ab5685f2986c3f1b6f0c7caa596120ee1"></a>
437<div class="memitem">
438<div class="memproto">
439<div class="memtemplate">
440template&lt;typename T&gt; </div>
441 <table class="memname">
442 <tr>
443 <td class="memname">void <a class="el" href="classflair_1_1core_1_1_vector2_d.html">flair::core::Vector2D</a>&lt; T &gt;::Saturate </td>
444 <td>(</td>
445 <td class="paramtype">float&#160;</td>
446 <td class="paramname"><em>value</em></td><td>)</td>
447 <td></td>
448 </tr>
449 </table>
450</div><div class="memdoc">
451
452<p>Saturate. </p>
453<p>Saturate between -abs(Vector2D(value,value)) and abs(Vector2D(value,value))</p>
454<dl class="params"><dt>Parameters</dt><dd>
455 <table class="params">
456 <tr><td class="paramname">value</td><td>saturation Vector2D(value,value) </td></tr>
457 </table>
458 </dd>
459</dl>
460
461</div>
462</div>
463<h2 class="groupheader">Member Data Documentation</h2>
464<a class="anchor" id="adc92c6671b0a23292eff87f782791d7b"></a>
465<div class="memitem">
466<div class="memproto">
467<div class="memtemplate">
468template&lt;typename T&gt; </div>
469 <table class="memname">
470 <tr>
471 <td class="memname">T <a class="el" href="classflair_1_1core_1_1_vector2_d.html">flair::core::Vector2D</a>&lt; T &gt;::x</td>
472 </tr>
473 </table>
474</div><div class="memdoc">
475
476<p>x </p>
477
478</div>
479</div>
480<a class="anchor" id="a7f971d69af939edaf3f3b99339f9e389"></a>
481<div class="memitem">
482<div class="memproto">
483<div class="memtemplate">
484template&lt;typename T&gt; </div>
485 <table class="memname">
486 <tr>
487 <td class="memname">T <a class="el" href="classflair_1_1core_1_1_vector2_d.html">flair::core::Vector2D</a>&lt; T &gt;::y</td>
488 </tr>
489 </table>
490</div><div class="memdoc">
491
492<p>y </p>
493
494</div>
495</div>
496</div><!-- contents -->
497</div><!-- doc-content -->
498<!-- start footer part -->
499<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
500 <ul>
501 <li class="navelem"><a class="el" href="namespaceflair.html">flair</a></li><li class="navelem"><a class="el" href="namespaceflair_1_1core.html">core</a></li><li class="navelem"><a class="el" href="classflair_1_1core_1_1_vector2_d.html">Vector2D</a></li>
502 <li class="footer">Generated on Mon Dec 4 2017 11:13:44 for Flair by
503 <a href="http://www.doxygen.org/index.html">
504 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
505 </ul>
506</div>
507</body>
508</html>
Note: See TracBrowser for help on using the repository browser.