diff options
Diffstat (limited to 'libraries/irrlicht-1.8/doc/html/rect_8h_source.html')
-rw-r--r-- | libraries/irrlicht-1.8/doc/html/rect_8h_source.html | 356 |
1 files changed, 0 insertions, 356 deletions
diff --git a/libraries/irrlicht-1.8/doc/html/rect_8h_source.html b/libraries/irrlicht-1.8/doc/html/rect_8h_source.html deleted file mode 100644 index db5f85c..0000000 --- a/libraries/irrlicht-1.8/doc/html/rect_8h_source.html +++ /dev/null | |||
@@ -1,356 +0,0 @@ | |||
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 | <title>Irrlicht 3D Engine: rect.h Source File</title> | ||
6 | |||
7 | <link href="tabs.css" rel="stylesheet" type="text/css"/> | ||
8 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> | ||
9 | <link href="navtree.css" rel="stylesheet" type="text/css"/> | ||
10 | <script type="text/javascript" src="jquery.js"></script> | ||
11 | <script type="text/javascript" src="resize.js"></script> | ||
12 | <script type="text/javascript" src="navtree.js"></script> | ||
13 | <script type="text/javascript"> | ||
14 | $(document).ready(initResizable); | ||
15 | </script> | ||
16 | <link href="search/search.css" rel="stylesheet" type="text/css"/> | ||
17 | <script type="text/javascript" src="search/search.js"></script> | ||
18 | <script type="text/javascript"> | ||
19 | $(document).ready(function() { searchBox.OnSelectItem(0); }); | ||
20 | </script> | ||
21 | |||
22 | </head> | ||
23 | <body> | ||
24 | <div id="top"><!-- do not remove this div! --> | ||
25 | |||
26 | |||
27 | <div id="titlearea"> | ||
28 | <table cellspacing="0" cellpadding="0"> | ||
29 | <tbody> | ||
30 | <tr style="height: 56px;"> | ||
31 | |||
32 | <td id="projectlogo"><img alt="Logo" src="irrlichtlogo.png"/></td> | ||
33 | |||
34 | |||
35 | <td style="padding-left: 0.5em;"> | ||
36 | <div id="projectname">Irrlicht 3D Engine | ||
37 | |||
38 | </div> | ||
39 | |||
40 | </td> | ||
41 | |||
42 | |||
43 | |||
44 | |||
45 | <td> <div id="MSearchBox" class="MSearchBoxInactive"> | ||
46 | <span class="left"> | ||
47 | <img id="MSearchSelect" src="search/mag_sel.png" | ||
48 | onmouseover="return searchBox.OnSearchSelectShow()" | ||
49 | onmouseout="return searchBox.OnSearchSelectHide()" | ||
50 | alt=""/> | ||
51 | <input type="text" id="MSearchField" value="Search" accesskey="S" | ||
52 | onfocus="searchBox.OnSearchFieldFocus(true)" | ||
53 | onblur="searchBox.OnSearchFieldFocus(false)" | ||
54 | onkeyup="searchBox.OnSearchFieldChange(event)"/> | ||
55 | </span><span class="right"> | ||
56 | <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> | ||
57 | </span> | ||
58 | </div> | ||
59 | </td> | ||
60 | |||
61 | |||
62 | </tr> | ||
63 | </tbody> | ||
64 | </table> | ||
65 | </div> | ||
66 | |||
67 | <!-- Generated by Doxygen 1.7.5.1 --> | ||
68 | <script type="text/javascript"> | ||
69 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); | ||
70 | </script> | ||
71 | <script type="text/javascript" src="dynsections.js"></script> | ||
72 | </div> | ||
73 | <div id="side-nav" class="ui-resizable side-nav-resizable"> | ||
74 | <div id="nav-tree"> | ||
75 | <div id="nav-tree-contents"> | ||
76 | </div> | ||
77 | </div> | ||
78 | <div id="splitbar" style="-moz-user-select:none;" | ||
79 | class="ui-resizable-handle"> | ||
80 | </div> | ||
81 | </div> | ||
82 | <script type="text/javascript"> | ||
83 | initNavTree('rect_8h.html',''); | ||
84 | </script> | ||
85 | <div id="doc-content"> | ||
86 | <div class="header"> | ||
87 | <div class="headertitle"> | ||
88 | <div class="title">rect.h</div> </div> | ||
89 | </div> | ||
90 | <div class="contents"> | ||
91 | <a href="rect_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Copyright (C) 2002-2012 Nikolaus Gebhardt</span> | ||
92 | <a name="l00002"></a>00002 <span class="comment">// This file is part of the "Irrlicht Engine".</span> | ||
93 | <a name="l00003"></a>00003 <span class="comment">// For conditions of distribution and use, see copyright notice in irrlicht.h</span> | ||
94 | <a name="l00004"></a>00004 | ||
95 | <a name="l00005"></a>00005 <span class="preprocessor">#ifndef __IRR_RECT_H_INCLUDED__</span> | ||
96 | <a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define __IRR_RECT_H_INCLUDED__</span> | ||
97 | <a name="l00007"></a>00007 <span class="preprocessor"></span> | ||
98 | <a name="l00008"></a>00008 <span class="preprocessor">#include "<a class="code" href="irr_types_8h.html">irrTypes.h</a>"</span> | ||
99 | <a name="l00009"></a>00009 <span class="preprocessor">#include "<a class="code" href="dimension2d_8h.html">dimension2d.h</a>"</span> | ||
100 | <a name="l00010"></a>00010 <span class="preprocessor">#include "<a class="code" href="position2d_8h.html">position2d.h</a>"</span> | ||
101 | <a name="l00011"></a>00011 | ||
102 | <a name="l00012"></a>00012 <span class="keyword">namespace </span>irr | ||
103 | <a name="l00013"></a>00013 { | ||
104 | <a name="l00014"></a>00014 <span class="keyword">namespace </span>core | ||
105 | <a name="l00015"></a>00015 { | ||
106 | <a name="l00016"></a>00016 | ||
107 | <a name="l00018"></a>00018 | ||
108 | <a name="l00025"></a>00025 <span class="keyword">template</span> <<span class="keyword">class</span> T> | ||
109 | <a name="l00026"></a><a class="code" href="classirr_1_1core_1_1rect.html">00026</a> <span class="keyword">class </span><a class="code" href="classirr_1_1core_1_1rect.html" title="Rectangle template.">rect</a> | ||
110 | <a name="l00027"></a>00027 { | ||
111 | <a name="l00028"></a>00028 <span class="keyword">public</span>: | ||
112 | <a name="l00029"></a>00029 | ||
113 | <a name="l00031"></a><a class="code" href="classirr_1_1core_1_1rect.html#a04c79e7af6ff14b62e569628c4f83e44">00031</a> <a class="code" href="classirr_1_1core_1_1rect.html#a04c79e7af6ff14b62e569628c4f83e44" title="Default constructor creating empty rectangle at (0,0)">rect</a>() : <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>(0,0), <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>(0,0) {} | ||
114 | <a name="l00032"></a>00032 | ||
115 | <a name="l00034"></a><a class="code" href="classirr_1_1core_1_1rect.html#af7d59f53cd24d5f9f587896160ece50a">00034</a> <a class="code" href="classirr_1_1core_1_1rect.html#a04c79e7af6ff14b62e569628c4f83e44" title="Default constructor creating empty rectangle at (0,0)">rect</a>(T x, T y, T x2, T y2) | ||
116 | <a name="l00035"></a>00035 : <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>(x,y), <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>(x2,y2) {} | ||
117 | <a name="l00036"></a>00036 | ||
118 | <a name="l00038"></a><a class="code" href="classirr_1_1core_1_1rect.html#a8f207109cebad893de44b01cc67e9e34">00038</a> <a class="code" href="classirr_1_1core_1_1rect.html#a04c79e7af6ff14b62e569628c4f83e44" title="Default constructor creating empty rectangle at (0,0)">rect</a>(<span class="keyword">const</span> position2d<T>& upperLeft, <span class="keyword">const</span> position2d<T>& lowerRight) | ||
119 | <a name="l00039"></a>00039 : <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>(upperLeft), <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>(lowerRight) {} | ||
120 | <a name="l00040"></a>00040 | ||
121 | <a name="l00042"></a>00042 <span class="keyword">template</span> <<span class="keyword">class</span> U> | ||
122 | <a name="l00043"></a><a class="code" href="classirr_1_1core_1_1rect.html#a54526b73a11cf90a4f4ff0c6d1556fcc">00043</a> <a class="code" href="classirr_1_1core_1_1rect.html#a04c79e7af6ff14b62e569628c4f83e44" title="Default constructor creating empty rectangle at (0,0)">rect</a>(<span class="keyword">const</span> position2d<T>& pos, <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1dimension2d.html" title="Specifies a 2 dimensional size.">dimension2d<U></a>& size) | ||
123 | <a name="l00044"></a>00044 : <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>(pos), <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>(pos.X + size.Width, pos.Y + size.Height) {} | ||
124 | <a name="l00045"></a>00045 | ||
125 | <a name="l00047"></a><a class="code" href="classirr_1_1core_1_1rect.html#a699b98aff4bf8b7d92cef6d3c940354f">00047</a> <a class="code" href="classirr_1_1core_1_1rect.html" title="Rectangle template.">rect<T></a> <a class="code" href="classirr_1_1core_1_1rect.html#a699b98aff4bf8b7d92cef6d3c940354f" title="move right by given numbers">operator+</a>(<span class="keyword">const</span> position2d<T>& pos)<span class="keyword"> const</span> | ||
126 | <a name="l00048"></a>00048 <span class="keyword"> </span>{ | ||
127 | <a name="l00049"></a>00049 <a class="code" href="classirr_1_1core_1_1rect.html" title="Rectangle template.">rect<T></a> ret(*<span class="keyword">this</span>); | ||
128 | <a name="l00050"></a>00050 <span class="keywordflow">return</span> ret+=pos; | ||
129 | <a name="l00051"></a>00051 } | ||
130 | <a name="l00052"></a>00052 | ||
131 | <a name="l00054"></a><a class="code" href="classirr_1_1core_1_1rect.html#a4f4f1c3c3321d1ca5e9f617ebf47421c">00054</a> <a class="code" href="classirr_1_1core_1_1rect.html" title="Rectangle template.">rect<T></a>& <a class="code" href="classirr_1_1core_1_1rect.html#a4f4f1c3c3321d1ca5e9f617ebf47421c" title="move right by given numbers">operator+=</a>(<span class="keyword">const</span> position2d<T>& pos) | ||
132 | <a name="l00055"></a>00055 { | ||
133 | <a name="l00056"></a>00056 <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a> += pos; | ||
134 | <a name="l00057"></a>00057 <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a> += pos; | ||
135 | <a name="l00058"></a>00058 <span class="keywordflow">return</span> *<span class="keyword">this</span>; | ||
136 | <a name="l00059"></a>00059 } | ||
137 | <a name="l00060"></a>00060 | ||
138 | <a name="l00062"></a><a class="code" href="classirr_1_1core_1_1rect.html#a031c021cf1ccbc4efe5b5242e85cdc6d">00062</a> <a class="code" href="classirr_1_1core_1_1rect.html" title="Rectangle template.">rect<T></a> <a class="code" href="classirr_1_1core_1_1rect.html#a031c021cf1ccbc4efe5b5242e85cdc6d" title="move left by given numbers">operator-</a>(<span class="keyword">const</span> position2d<T>& pos)<span class="keyword"> const</span> | ||
139 | <a name="l00063"></a>00063 <span class="keyword"> </span>{ | ||
140 | <a name="l00064"></a>00064 <a class="code" href="classirr_1_1core_1_1rect.html" title="Rectangle template.">rect<T></a> ret(*<span class="keyword">this</span>); | ||
141 | <a name="l00065"></a>00065 <span class="keywordflow">return</span> ret-=pos; | ||
142 | <a name="l00066"></a>00066 } | ||
143 | <a name="l00067"></a>00067 | ||
144 | <a name="l00069"></a><a class="code" href="classirr_1_1core_1_1rect.html#a3ef4f6f13ec79c3d5745df3a76f9e1e1">00069</a> <a class="code" href="classirr_1_1core_1_1rect.html" title="Rectangle template.">rect<T></a>& <a class="code" href="classirr_1_1core_1_1rect.html#a3ef4f6f13ec79c3d5745df3a76f9e1e1" title="move left by given numbers">operator-=</a>(<span class="keyword">const</span> position2d<T>& pos) | ||
145 | <a name="l00070"></a>00070 { | ||
146 | <a name="l00071"></a>00071 <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a> -= pos; | ||
147 | <a name="l00072"></a>00072 <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a> -= pos; | ||
148 | <a name="l00073"></a>00073 <span class="keywordflow">return</span> *<span class="keyword">this</span>; | ||
149 | <a name="l00074"></a>00074 } | ||
150 | <a name="l00075"></a>00075 | ||
151 | <a name="l00077"></a><a class="code" href="classirr_1_1core_1_1rect.html#ae788c2c726f187fc4681f9ca6eef2b19">00077</a> <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1core_1_1rect.html#ae788c2c726f187fc4681f9ca6eef2b19" title="equality operator">operator==</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1rect.html" title="Rectangle template.">rect<T></a>& other)<span class="keyword"> const</span> | ||
152 | <a name="l00078"></a>00078 <span class="keyword"> </span>{ | ||
153 | <a name="l00079"></a>00079 <span class="keywordflow">return</span> (<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a> == other.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a> && | ||
154 | <a name="l00080"></a>00080 <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a> == other.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>); | ||
155 | <a name="l00081"></a>00081 } | ||
156 | <a name="l00082"></a>00082 | ||
157 | <a name="l00084"></a><a class="code" href="classirr_1_1core_1_1rect.html#a68e23478fc9788779820988f106b9fd2">00084</a> <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1core_1_1rect.html#a68e23478fc9788779820988f106b9fd2" title="inequality operator">operator!=</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1rect.html" title="Rectangle template.">rect<T></a>& other)<span class="keyword"> const</span> | ||
158 | <a name="l00085"></a>00085 <span class="keyword"> </span>{ | ||
159 | <a name="l00086"></a>00086 <span class="keywordflow">return</span> (<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a> != other.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a> || | ||
160 | <a name="l00087"></a>00087 <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a> != other.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>); | ||
161 | <a name="l00088"></a>00088 } | ||
162 | <a name="l00089"></a>00089 | ||
163 | <a name="l00091"></a><a class="code" href="classirr_1_1core_1_1rect.html#abcba5b76777333253cd37ed041e7c3a7">00091</a> <span class="keywordtype">bool</span> operator<(const rect<T>& other) <span class="keyword">const</span> | ||
164 | <a name="l00092"></a>00092 { | ||
165 | <a name="l00093"></a>00093 <span class="keywordflow">return</span> <a class="code" href="classirr_1_1core_1_1rect.html#aec261cb39303c6051faf8202741f2b53" title="Returns size of rectangle.">getArea</a>() < other.getArea(); | ||
166 | <a name="l00094"></a>00094 } | ||
167 | <a name="l00095"></a>00095 | ||
168 | <a name="l00097"></a><a class="code" href="classirr_1_1core_1_1rect.html#aec261cb39303c6051faf8202741f2b53">00097</a> T <a class="code" href="classirr_1_1core_1_1rect.html#aec261cb39303c6051faf8202741f2b53" title="Returns size of rectangle.">getArea</a>()<span class="keyword"> const</span> | ||
169 | <a name="l00098"></a>00098 <span class="keyword"> </span>{ | ||
170 | <a name="l00099"></a>00099 <span class="keywordflow">return</span> <a class="code" href="classirr_1_1core_1_1rect.html#ae313a3674095733348d5e8bcb75c49b4" title="Get width of rectangle.">getWidth</a>() * <a class="code" href="classirr_1_1core_1_1rect.html#a61b4192aa7aee5b55c288b1eac29d76b" title="Get height of rectangle.">getHeight</a>(); | ||
171 | <a name="l00100"></a>00100 } | ||
172 | <a name="l00101"></a>00101 | ||
173 | <a name="l00103"></a>00103 | ||
174 | <a name="l00105"></a><a class="code" href="classirr_1_1core_1_1rect.html#a3276400775d230f377ff1e2755cbb4ef">00105</a> <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1core_1_1rect.html#a3276400775d230f377ff1e2755cbb4ef" title="Returns if a 2d point is within this rectangle.">isPointInside</a>(<span class="keyword">const</span> position2d<T>& pos)<span class="keyword"> const</span> | ||
175 | <a name="l00106"></a>00106 <span class="keyword"> </span>{ | ||
176 | <a name="l00107"></a>00107 <span class="keywordflow">return</span> (<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X <= pos.X && | ||
177 | <a name="l00108"></a>00108 <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y <= pos.Y && | ||
178 | <a name="l00109"></a>00109 <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X >= pos.X && | ||
179 | <a name="l00110"></a>00110 <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y >= pos.Y); | ||
180 | <a name="l00111"></a>00111 } | ||
181 | <a name="l00112"></a>00112 | ||
182 | <a name="l00114"></a>00114 | ||
183 | <a name="l00116"></a><a class="code" href="classirr_1_1core_1_1rect.html#abb2b27935e617dfad6445b2f25f7513d">00116</a> <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1core_1_1rect.html#abb2b27935e617dfad6445b2f25f7513d" title="Check if the rectangle collides with another rectangle.">isRectCollided</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1rect.html" title="Rectangle template.">rect<T></a>& other)<span class="keyword"> const</span> | ||
184 | <a name="l00117"></a>00117 <span class="keyword"> </span>{ | ||
185 | <a name="l00118"></a>00118 <span class="keywordflow">return</span> (<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y > other.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y && | ||
186 | <a name="l00119"></a>00119 <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y < other.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y && | ||
187 | <a name="l00120"></a>00120 <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X > other.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X && | ||
188 | <a name="l00121"></a>00121 <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X < other.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X); | ||
189 | <a name="l00122"></a>00122 } | ||
190 | <a name="l00123"></a>00123 | ||
191 | <a name="l00125"></a>00125 | ||
192 | <a name="l00126"></a><a class="code" href="classirr_1_1core_1_1rect.html#a86645d45a8bed1a3539bba9865e93de4">00126</a> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1core_1_1rect.html#a86645d45a8bed1a3539bba9865e93de4" title="Clips this rectangle with another one.">clipAgainst</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1rect.html" title="Rectangle template.">rect<T></a>& other) | ||
193 | <a name="l00127"></a>00127 { | ||
194 | <a name="l00128"></a>00128 <span class="keywordflow">if</span> (other.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X < <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X) | ||
195 | <a name="l00129"></a>00129 <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X = other.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X; | ||
196 | <a name="l00130"></a>00130 <span class="keywordflow">if</span> (other.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y < <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y) | ||
197 | <a name="l00131"></a>00131 <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y = other.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y; | ||
198 | <a name="l00132"></a>00132 | ||
199 | <a name="l00133"></a>00133 <span class="keywordflow">if</span> (other.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X > <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X) | ||
200 | <a name="l00134"></a>00134 <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X = other.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X; | ||
201 | <a name="l00135"></a>00135 <span class="keywordflow">if</span> (other.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y > <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y) | ||
202 | <a name="l00136"></a>00136 <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y = other.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y; | ||
203 | <a name="l00137"></a>00137 | ||
204 | <a name="l00138"></a>00138 <span class="comment">// correct possible invalid rect resulting from clipping</span> | ||
205 | <a name="l00139"></a>00139 <span class="keywordflow">if</span> (<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y > <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y) | ||
206 | <a name="l00140"></a>00140 <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y = <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y; | ||
207 | <a name="l00141"></a>00141 <span class="keywordflow">if</span> (<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X > <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X) | ||
208 | <a name="l00142"></a>00142 <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X = <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X; | ||
209 | <a name="l00143"></a>00143 } | ||
210 | <a name="l00144"></a>00144 | ||
211 | <a name="l00146"></a>00146 | ||
212 | <a name="l00147"></a><a class="code" href="classirr_1_1core_1_1rect.html#a4515d2a1349dc805775854a422465f63">00147</a> <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1core_1_1rect.html#a4515d2a1349dc805775854a422465f63" title="Moves this rectangle to fit inside another one.">constrainTo</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1rect.html" title="Rectangle template.">rect<T></a>& other) | ||
213 | <a name="l00148"></a>00148 { | ||
214 | <a name="l00149"></a>00149 <span class="keywordflow">if</span> (other.<a class="code" href="classirr_1_1core_1_1rect.html#ae313a3674095733348d5e8bcb75c49b4" title="Get width of rectangle.">getWidth</a>() < <a class="code" href="classirr_1_1core_1_1rect.html#ae313a3674095733348d5e8bcb75c49b4" title="Get width of rectangle.">getWidth</a>() || other.<a class="code" href="classirr_1_1core_1_1rect.html#a61b4192aa7aee5b55c288b1eac29d76b" title="Get height of rectangle.">getHeight</a>() < <a class="code" href="classirr_1_1core_1_1rect.html#a61b4192aa7aee5b55c288b1eac29d76b" title="Get height of rectangle.">getHeight</a>()) | ||
215 | <a name="l00150"></a>00150 <span class="keywordflow">return</span> <span class="keyword">false</span>; | ||
216 | <a name="l00151"></a>00151 | ||
217 | <a name="l00152"></a>00152 T diff = other.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X - <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X; | ||
218 | <a name="l00153"></a>00153 <span class="keywordflow">if</span> (diff < 0) | ||
219 | <a name="l00154"></a>00154 { | ||
220 | <a name="l00155"></a>00155 <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X += diff; | ||
221 | <a name="l00156"></a>00156 <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X += diff; | ||
222 | <a name="l00157"></a>00157 } | ||
223 | <a name="l00158"></a>00158 | ||
224 | <a name="l00159"></a>00159 diff = other.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y - <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y; | ||
225 | <a name="l00160"></a>00160 <span class="keywordflow">if</span> (diff < 0) | ||
226 | <a name="l00161"></a>00161 { | ||
227 | <a name="l00162"></a>00162 <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y += diff; | ||
228 | <a name="l00163"></a>00163 <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y += diff; | ||
229 | <a name="l00164"></a>00164 } | ||
230 | <a name="l00165"></a>00165 | ||
231 | <a name="l00166"></a>00166 diff = <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X - other.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X; | ||
232 | <a name="l00167"></a>00167 <span class="keywordflow">if</span> (diff < 0) | ||
233 | <a name="l00168"></a>00168 { | ||
234 | <a name="l00169"></a>00169 <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X -= diff; | ||
235 | <a name="l00170"></a>00170 <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X -= diff; | ||
236 | <a name="l00171"></a>00171 } | ||
237 | <a name="l00172"></a>00172 | ||
238 | <a name="l00173"></a>00173 diff = <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y - other.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y; | ||
239 | <a name="l00174"></a>00174 <span class="keywordflow">if</span> (diff < 0) | ||
240 | <a name="l00175"></a>00175 { | ||
241 | <a name="l00176"></a>00176 <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y -= diff; | ||
242 | <a name="l00177"></a>00177 <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y -= diff; | ||
243 | <a name="l00178"></a>00178 } | ||
244 | <a name="l00179"></a>00179 | ||
245 | <a name="l00180"></a>00180 <span class="keywordflow">return</span> <span class="keyword">true</span>; | ||
246 | <a name="l00181"></a>00181 } | ||
247 | <a name="l00182"></a>00182 | ||
248 | <a name="l00184"></a><a class="code" href="classirr_1_1core_1_1rect.html#ae313a3674095733348d5e8bcb75c49b4">00184</a> T <a class="code" href="classirr_1_1core_1_1rect.html#ae313a3674095733348d5e8bcb75c49b4" title="Get width of rectangle.">getWidth</a>()<span class="keyword"> const</span> | ||
249 | <a name="l00185"></a>00185 <span class="keyword"> </span>{ | ||
250 | <a name="l00186"></a>00186 <span class="keywordflow">return</span> <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X - <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X; | ||
251 | <a name="l00187"></a>00187 } | ||
252 | <a name="l00188"></a>00188 | ||
253 | <a name="l00190"></a><a class="code" href="classirr_1_1core_1_1rect.html#a61b4192aa7aee5b55c288b1eac29d76b">00190</a> T <a class="code" href="classirr_1_1core_1_1rect.html#a61b4192aa7aee5b55c288b1eac29d76b" title="Get height of rectangle.">getHeight</a>()<span class="keyword"> const</span> | ||
254 | <a name="l00191"></a>00191 <span class="keyword"> </span>{ | ||
255 | <a name="l00192"></a>00192 <span class="keywordflow">return</span> <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y - <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y; | ||
256 | <a name="l00193"></a>00193 } | ||
257 | <a name="l00194"></a>00194 | ||
258 | <a name="l00196"></a><a class="code" href="classirr_1_1core_1_1rect.html#a45c7665e74aed626bb5c01729f206775">00196</a> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1core_1_1rect.html#a45c7665e74aed626bb5c01729f206775" title="If the lower right corner of the rect is smaller then the upper left, the points are swapped...">repair</a>() | ||
259 | <a name="l00197"></a>00197 { | ||
260 | <a name="l00198"></a>00198 <span class="keywordflow">if</span> (<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X < <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X) | ||
261 | <a name="l00199"></a>00199 { | ||
262 | <a name="l00200"></a>00200 T t = <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X; | ||
263 | <a name="l00201"></a>00201 <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X = <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X; | ||
264 | <a name="l00202"></a>00202 <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X = t; | ||
265 | <a name="l00203"></a>00203 } | ||
266 | <a name="l00204"></a>00204 | ||
267 | <a name="l00205"></a>00205 <span class="keywordflow">if</span> (<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y < <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y) | ||
268 | <a name="l00206"></a>00206 { | ||
269 | <a name="l00207"></a>00207 T t = <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y; | ||
270 | <a name="l00208"></a>00208 <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y = <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y; | ||
271 | <a name="l00209"></a>00209 <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y = t; | ||
272 | <a name="l00210"></a>00210 } | ||
273 | <a name="l00211"></a>00211 } | ||
274 | <a name="l00212"></a>00212 | ||
275 | <a name="l00214"></a>00214 | ||
276 | <a name="l00216"></a><a class="code" href="classirr_1_1core_1_1rect.html#a1ab043c2f686a7d02fc72a1655162faf">00216</a> <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1core_1_1rect.html#a1ab043c2f686a7d02fc72a1655162faf" title="Returns if the rect is valid to draw.">isValid</a>()<span class="keyword"> const</span> | ||
277 | <a name="l00217"></a>00217 <span class="keyword"> </span>{ | ||
278 | <a name="l00218"></a>00218 <span class="keywordflow">return</span> ((<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X >= <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X) && | ||
279 | <a name="l00219"></a>00219 (<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y >= <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y)); | ||
280 | <a name="l00220"></a>00220 } | ||
281 | <a name="l00221"></a>00221 | ||
282 | <a name="l00223"></a><a class="code" href="classirr_1_1core_1_1rect.html#a44fa44c31767208d5bf2b6e6980a742c">00223</a> position2d<T> <a class="code" href="classirr_1_1core_1_1rect.html#a44fa44c31767208d5bf2b6e6980a742c" title="Get the center of the rectangle.">getCenter</a>()<span class="keyword"> const</span> | ||
283 | <a name="l00224"></a>00224 <span class="keyword"> </span>{ | ||
284 | <a name="l00225"></a>00225 <span class="keywordflow">return</span> position2d<T>( | ||
285 | <a name="l00226"></a>00226 (<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X + <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X) / 2, | ||
286 | <a name="l00227"></a>00227 (<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y + <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y) / 2); | ||
287 | <a name="l00228"></a>00228 } | ||
288 | <a name="l00229"></a>00229 | ||
289 | <a name="l00231"></a><a class="code" href="classirr_1_1core_1_1rect.html#adffacbb0f07d8268a32af2a32b3ac3ac">00231</a> <a class="code" href="classirr_1_1core_1_1dimension2d.html" title="Specifies a 2 dimensional size.">dimension2d<T></a> <a class="code" href="classirr_1_1core_1_1rect.html#adffacbb0f07d8268a32af2a32b3ac3ac" title="Get the dimensions of the rectangle.">getSize</a>()<span class="keyword"> const</span> | ||
290 | <a name="l00232"></a>00232 <span class="keyword"> </span>{ | ||
291 | <a name="l00233"></a>00233 <span class="keywordflow">return</span> <a class="code" href="classirr_1_1core_1_1dimension2d.html" title="Specifies a 2 dimensional size.">dimension2d<T></a>(<a class="code" href="classirr_1_1core_1_1rect.html#ae313a3674095733348d5e8bcb75c49b4" title="Get width of rectangle.">getWidth</a>(), <a class="code" href="classirr_1_1core_1_1rect.html#a61b4192aa7aee5b55c288b1eac29d76b" title="Get height of rectangle.">getHeight</a>()); | ||
292 | <a name="l00234"></a>00234 } | ||
293 | <a name="l00235"></a>00235 | ||
294 | <a name="l00236"></a>00236 | ||
295 | <a name="l00238"></a>00238 | ||
296 | <a name="l00241"></a><a class="code" href="classirr_1_1core_1_1rect.html#a0b7496319a32ceda640c730f5822f1ef">00241</a> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1core_1_1rect.html#a0b7496319a32ceda640c730f5822f1ef" title="Adds a point to the rectangle.">addInternalPoint</a>(<span class="keyword">const</span> position2d<T>& p) | ||
297 | <a name="l00242"></a>00242 { | ||
298 | <a name="l00243"></a>00243 <a class="code" href="classirr_1_1core_1_1rect.html#a0b7496319a32ceda640c730f5822f1ef" title="Adds a point to the rectangle.">addInternalPoint</a>(p.X, p.Y); | ||
299 | <a name="l00244"></a>00244 } | ||
300 | <a name="l00245"></a>00245 | ||
301 | <a name="l00247"></a>00247 | ||
302 | <a name="l00251"></a><a class="code" href="classirr_1_1core_1_1rect.html#a25b80222bc003a238fa8f5157bdb8b9d">00251</a> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1core_1_1rect.html#a0b7496319a32ceda640c730f5822f1ef" title="Adds a point to the rectangle.">addInternalPoint</a>(T x, T y) | ||
303 | <a name="l00252"></a>00252 { | ||
304 | <a name="l00253"></a>00253 <span class="keywordflow">if</span> (x><a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X) | ||
305 | <a name="l00254"></a>00254 <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X = x; | ||
306 | <a name="l00255"></a>00255 <span class="keywordflow">if</span> (y><a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y) | ||
307 | <a name="l00256"></a>00256 <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y = y; | ||
308 | <a name="l00257"></a>00257 | ||
309 | <a name="l00258"></a>00258 <span class="keywordflow">if</span> (x<<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X) | ||
310 | <a name="l00259"></a>00259 <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X = x; | ||
311 | <a name="l00260"></a>00260 <span class="keywordflow">if</span> (y<<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y) | ||
312 | <a name="l00261"></a>00261 <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y = y; | ||
313 | <a name="l00262"></a>00262 } | ||
314 | <a name="l00263"></a>00263 | ||
315 | <a name="l00265"></a><a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573">00265</a> position2d<T> <a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>; | ||
316 | <a name="l00267"></a><a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e">00267</a> position2d<T> <a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>; | ||
317 | <a name="l00268"></a>00268 }; | ||
318 | <a name="l00269"></a>00269 | ||
319 | <a name="l00271"></a><a class="code" href="namespaceirr_1_1core.html#ad76013a2b724e7a279f7488f399eb1c0">00271</a> <span class="keyword">typedef</span> <a class="code" href="classirr_1_1core_1_1rect.html">rect<f32></a> <a class="code" href="namespaceirr_1_1core.html#ad76013a2b724e7a279f7488f399eb1c0" title="Rectangle with float values.">rectf</a>; | ||
320 | <a name="l00273"></a><a class="code" href="namespaceirr_1_1core.html#a628365d56b9d3ca9c887cd7f651f7b45">00273</a> <span class="keyword">typedef</span> <a class="code" href="classirr_1_1core_1_1rect.html">rect<s32></a> <a class="code" href="namespaceirr_1_1core.html#a628365d56b9d3ca9c887cd7f651f7b45" title="Rectangle with int values.">recti</a>; | ||
321 | <a name="l00274"></a>00274 | ||
322 | <a name="l00275"></a>00275 } <span class="comment">// end namespace core</span> | ||
323 | <a name="l00276"></a>00276 } <span class="comment">// end namespace irr</span> | ||
324 | <a name="l00277"></a>00277 | ||
325 | <a name="l00278"></a>00278 <span class="preprocessor">#endif</span> | ||
326 | <a name="l00279"></a>00279 <span class="preprocessor"></span> | ||
327 | </pre></div></div> | ||
328 | </div> | ||
329 | <div id="nav-path" class="navpath"> | ||
330 | <ul> | ||
331 | <li class="navelem"><a class="el" href="rect_8h.html">rect.h</a> </li> | ||
332 | <!-- window showing the filter options --> | ||
333 | <div id="MSearchSelectWindow" | ||
334 | onmouseover="return searchBox.OnSearchSelectShow()" | ||
335 | onmouseout="return searchBox.OnSearchSelectHide()" | ||
336 | onkeydown="return searchBox.OnSearchSelectKey(event)"> | ||
337 | <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Defines</a></div> | ||
338 | |||
339 | <!-- iframe showing the search results (closed by default) --> | ||
340 | <div id="MSearchResultsWindow"> | ||
341 | <iframe src="javascript:void(0)" frameborder="0" | ||
342 | name="MSearchResults" id="MSearchResults"> | ||
343 | </iframe> | ||
344 | </div> | ||
345 | |||
346 | |||
347 | <li class="footer"> | ||
348 | <a href="http://irrlicht.sourceforge.net" target="_blank">Irrlicht | ||
349 | Engine</a> Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on Tue Nov 6 2012 11:06:00 for Irrlicht 3D Engine by | ||
350 | <a href="http://www.doxygen.org/index.html" target="_blank">Doxygen</a> 1.7.5.1 </li> | ||
351 | </ul> | ||
352 | </div> | ||
353 | |||
354 | |||
355 | </body> | ||
356 | </html> | ||