diff options
Diffstat (limited to 'libraries/irrlicht-1.8/doc/html/classirr_1_1core_1_1rect.html')
-rw-r--r-- | libraries/irrlicht-1.8/doc/html/classirr_1_1core_1_1rect.html | 874 |
1 files changed, 874 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8/doc/html/classirr_1_1core_1_1rect.html b/libraries/irrlicht-1.8/doc/html/classirr_1_1core_1_1rect.html new file mode 100644 index 0000000..4a757e1 --- /dev/null +++ b/libraries/irrlicht-1.8/doc/html/classirr_1_1core_1_1rect.html | |||
@@ -0,0 +1,874 @@ | |||
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: irr::core::rect< T > Class Template Reference</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('classirr_1_1core_1_1rect.html',''); | ||
84 | </script> | ||
85 | <div id="doc-content"> | ||
86 | <div class="header"> | ||
87 | <div class="summary"> | ||
88 | <a href="#pub-methods">Public Member Functions</a> | | ||
89 | <a href="#pub-attribs">Public Attributes</a> </div> | ||
90 | <div class="headertitle"> | ||
91 | <div class="title">irr::core::rect< T > Class Template Reference</div> </div> | ||
92 | </div> | ||
93 | <div class="contents"> | ||
94 | <!-- doxytag: class="irr::core::rect" --> | ||
95 | <p>Rectangle template. | ||
96 | <a href="classirr_1_1core_1_1rect.html#details">More...</a></p> | ||
97 | |||
98 | <p><code>#include <<a class="el" href="rect_8h_source.html">rect.h</a>></code></p> | ||
99 | |||
100 | <p><a href="classirr_1_1core_1_1rect-members.html">List of all members.</a></p> | ||
101 | <h2><a name="pub-methods"></a> | ||
102 | Public Member Functions</h2> | ||
103 | <ul> | ||
104 | <li><a class="el" href="classirr_1_1core_1_1rect.html#a04c79e7af6ff14b62e569628c4f83e44">rect</a> () | ||
105 | <dl class="el"><dd class="mdescRight">Default constructor creating empty rectangle at (0,0) <a href="#a04c79e7af6ff14b62e569628c4f83e44"></a><br/></dl><li><a class="el" href="classirr_1_1core_1_1rect.html#af7d59f53cd24d5f9f587896160ece50a">rect</a> (T x, T y, T x2, T y2) | ||
106 | <dl class="el"><dd class="mdescRight">Constructor with two corners. <a href="#af7d59f53cd24d5f9f587896160ece50a"></a><br/></dl><li><a class="el" href="classirr_1_1core_1_1rect.html#a8f207109cebad893de44b01cc67e9e34">rect</a> (const position2d< T > &upperLeft, const position2d< T > &lowerRight) | ||
107 | <dl class="el"><dd class="mdescRight">Constructor with two corners. <a href="#a8f207109cebad893de44b01cc67e9e34"></a><br/></dl><li>template<class U > <a class="el" href="classirr_1_1core_1_1rect.html#a54526b73a11cf90a4f4ff0c6d1556fcc">rect</a> (const position2d< T > &pos, const <a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< U > &size) | ||
108 | <dl class="el"><dd class="mdescRight">Constructor with upper left corner and dimension. <a href="#a54526b73a11cf90a4f4ff0c6d1556fcc"></a><br/></dl><li>void <a class="el" href="classirr_1_1core_1_1rect.html#a0b7496319a32ceda640c730f5822f1ef">addInternalPoint</a> (const position2d< T > &p) | ||
109 | <dl class="el"><dd class="mdescRight">Adds a point to the rectangle. <a href="#a0b7496319a32ceda640c730f5822f1ef"></a><br/></dl><li>void <a class="el" href="classirr_1_1core_1_1rect.html#a25b80222bc003a238fa8f5157bdb8b9d">addInternalPoint</a> (T x, T y) | ||
110 | <dl class="el"><dd class="mdescRight">Adds a point to the bounding rectangle. <a href="#a25b80222bc003a238fa8f5157bdb8b9d"></a><br/></dl><li>void <a class="el" href="classirr_1_1core_1_1rect.html#a86645d45a8bed1a3539bba9865e93de4">clipAgainst</a> (const <a class="el" href="classirr_1_1core_1_1rect.html">rect</a>< T > &other) | ||
111 | <dl class="el"><dd class="mdescRight">Clips this rectangle with another one. <a href="#a86645d45a8bed1a3539bba9865e93de4"></a><br/></dl><li>bool <a class="el" href="classirr_1_1core_1_1rect.html#a4515d2a1349dc805775854a422465f63">constrainTo</a> (const <a class="el" href="classirr_1_1core_1_1rect.html">rect</a>< T > &other) | ||
112 | <dl class="el"><dd class="mdescRight">Moves this rectangle to fit inside another one. <a href="#a4515d2a1349dc805775854a422465f63"></a><br/></dl><li>T <a class="el" href="classirr_1_1core_1_1rect.html#aec261cb39303c6051faf8202741f2b53">getArea</a> () const | ||
113 | <dl class="el"><dd class="mdescRight">Returns size of rectangle. <a href="#aec261cb39303c6051faf8202741f2b53"></a><br/></dl><li>position2d< T > <a class="el" href="classirr_1_1core_1_1rect.html#a44fa44c31767208d5bf2b6e6980a742c">getCenter</a> () const | ||
114 | <dl class="el"><dd class="mdescRight">Get the center of the rectangle. <a href="#a44fa44c31767208d5bf2b6e6980a742c"></a><br/></dl><li>T <a class="el" href="classirr_1_1core_1_1rect.html#a61b4192aa7aee5b55c288b1eac29d76b">getHeight</a> () const | ||
115 | <dl class="el"><dd class="mdescRight">Get height of rectangle. <a href="#a61b4192aa7aee5b55c288b1eac29d76b"></a><br/></dl><li><a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< T > <a class="el" href="classirr_1_1core_1_1rect.html#adffacbb0f07d8268a32af2a32b3ac3ac">getSize</a> () const | ||
116 | <dl class="el"><dd class="mdescRight">Get the dimensions of the rectangle. <a href="#adffacbb0f07d8268a32af2a32b3ac3ac"></a><br/></dl><li>T <a class="el" href="classirr_1_1core_1_1rect.html#ae313a3674095733348d5e8bcb75c49b4">getWidth</a> () const | ||
117 | <dl class="el"><dd class="mdescRight">Get width of rectangle. <a href="#ae313a3674095733348d5e8bcb75c49b4"></a><br/></dl><li>bool <a class="el" href="classirr_1_1core_1_1rect.html#a3276400775d230f377ff1e2755cbb4ef">isPointInside</a> (const position2d< T > &pos) const | ||
118 | <dl class="el"><dd class="mdescRight">Returns if a 2d point is within this rectangle. <a href="#a3276400775d230f377ff1e2755cbb4ef"></a><br/></dl><li>bool <a class="el" href="classirr_1_1core_1_1rect.html#abb2b27935e617dfad6445b2f25f7513d">isRectCollided</a> (const <a class="el" href="classirr_1_1core_1_1rect.html">rect</a>< T > &other) const | ||
119 | <dl class="el"><dd class="mdescRight">Check if the rectangle collides with another rectangle. <a href="#abb2b27935e617dfad6445b2f25f7513d"></a><br/></dl><li>bool <a class="el" href="classirr_1_1core_1_1rect.html#a1ab043c2f686a7d02fc72a1655162faf">isValid</a> () const | ||
120 | <dl class="el"><dd class="mdescRight">Returns if the rect is valid to draw. <a href="#a1ab043c2f686a7d02fc72a1655162faf"></a><br/></dl><li>bool <a class="el" href="classirr_1_1core_1_1rect.html#a68e23478fc9788779820988f106b9fd2">operator!=</a> (const <a class="el" href="classirr_1_1core_1_1rect.html">rect</a>< T > &other) const | ||
121 | <dl class="el"><dd class="mdescRight">inequality operator <a href="#a68e23478fc9788779820988f106b9fd2"></a><br/></dl><li><a class="el" href="classirr_1_1core_1_1rect.html">rect</a>< T > <a class="el" href="classirr_1_1core_1_1rect.html#a699b98aff4bf8b7d92cef6d3c940354f">operator+</a> (const position2d< T > &pos) const | ||
122 | <dl class="el"><dd class="mdescRight">move right by given numbers <a href="#a699b98aff4bf8b7d92cef6d3c940354f"></a><br/></dl><li><a class="el" href="classirr_1_1core_1_1rect.html">rect</a>< T > & <a class="el" href="classirr_1_1core_1_1rect.html#a4f4f1c3c3321d1ca5e9f617ebf47421c">operator+=</a> (const position2d< T > &pos) | ||
123 | <dl class="el"><dd class="mdescRight">move right by given numbers <a href="#a4f4f1c3c3321d1ca5e9f617ebf47421c"></a><br/></dl><li><a class="el" href="classirr_1_1core_1_1rect.html">rect</a>< T > <a class="el" href="classirr_1_1core_1_1rect.html#a031c021cf1ccbc4efe5b5242e85cdc6d">operator-</a> (const position2d< T > &pos) const | ||
124 | <dl class="el"><dd class="mdescRight">move left by given numbers <a href="#a031c021cf1ccbc4efe5b5242e85cdc6d"></a><br/></dl><li><a class="el" href="classirr_1_1core_1_1rect.html">rect</a>< T > & <a class="el" href="classirr_1_1core_1_1rect.html#a3ef4f6f13ec79c3d5745df3a76f9e1e1">operator-=</a> (const position2d< T > &pos) | ||
125 | <dl class="el"><dd class="mdescRight">move left by given numbers <a href="#a3ef4f6f13ec79c3d5745df3a76f9e1e1"></a><br/></dl><li>bool <a class="el" href="classirr_1_1core_1_1rect.html#abcba5b76777333253cd37ed041e7c3a7">operator<</a> (const <a class="el" href="classirr_1_1core_1_1rect.html">rect</a>< T > &other) const | ||
126 | <dl class="el"><dd class="mdescRight">compares size of rectangles <a href="#abcba5b76777333253cd37ed041e7c3a7"></a><br/></dl><li>bool <a class="el" href="classirr_1_1core_1_1rect.html#ae788c2c726f187fc4681f9ca6eef2b19">operator==</a> (const <a class="el" href="classirr_1_1core_1_1rect.html">rect</a>< T > &other) const | ||
127 | <dl class="el"><dd class="mdescRight">equality operator <a href="#ae788c2c726f187fc4681f9ca6eef2b19"></a><br/></dl><li>void <a class="el" href="classirr_1_1core_1_1rect.html#a45c7665e74aed626bb5c01729f206775">repair</a> () | ||
128 | <dl class="el"><dd class="mdescRight">If the lower right corner of the rect is smaller then the upper left, the points are swapped. <a href="#a45c7665e74aed626bb5c01729f206775"></a><br/></dl></ul> | ||
129 | <h2><a name="pub-attribs"></a> | ||
130 | Public Attributes</h2> | ||
131 | <ul> | ||
132 | <li>position2d< T > <a class="el" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e">LowerRightCorner</a> | ||
133 | <dl class="el"><dd class="mdescRight">Lower right corner. <a href="#aa7c7e38bbff5f32992f69b36fc8cec1e"></a><br/></dl><li>position2d< T > <a class="el" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573">UpperLeftCorner</a> | ||
134 | <dl class="el"><dd class="mdescRight">Upper left corner. <a href="#abd47b3a4967b2153e58984d964af6573"></a><br/></dl></ul> | ||
135 | <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> | ||
136 | <div class="textblock"><h3>template<class T><br/> | ||
137 | class irr::core::rect< T ></h3> | ||
138 | |||
139 | <p>Rectangle template. </p> | ||
140 | <p>Mostly used by 2D GUI elements and for 2D drawing methods. It has 2 positions instead of position and dimension and a fast method for collision detection with other rectangles and points.</p> | ||
141 | <p>Coordinates are (0,0) for top-left corner, and increasing to the right and to the bottom. </p> | ||
142 | |||
143 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00026">26</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
144 | </div><hr/><h2>Constructor & Destructor Documentation</h2> | ||
145 | <a class="anchor" id="a04c79e7af6ff14b62e569628c4f83e44"></a><!-- doxytag: member="irr::core::rect::rect" ref="a04c79e7af6ff14b62e569628c4f83e44" args="()" --> | ||
146 | <div class="memitem"> | ||
147 | <div class="memproto"> | ||
148 | <div class="memtemplate"> | ||
149 | template<class T> </div> | ||
150 | <table class="memname"> | ||
151 | <tr> | ||
152 | <td class="memname"><a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>< T >::<a class="el" href="classirr_1_1core_1_1rect.html">rect</a> </td> | ||
153 | <td>(</td> | ||
154 | <td class="paramname"></td><td>)</td> | ||
155 | <td><code> [inline]</code></td> | ||
156 | </tr> | ||
157 | </table> | ||
158 | </div> | ||
159 | <div class="memdoc"> | ||
160 | |||
161 | <p>Default constructor creating empty rectangle at (0,0) </p> | ||
162 | |||
163 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00031">31</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
164 | |||
165 | </div> | ||
166 | </div> | ||
167 | <a class="anchor" id="af7d59f53cd24d5f9f587896160ece50a"></a><!-- doxytag: member="irr::core::rect::rect" ref="af7d59f53cd24d5f9f587896160ece50a" args="(T x, T y, T x2, T y2)" --> | ||
168 | <div class="memitem"> | ||
169 | <div class="memproto"> | ||
170 | <div class="memtemplate"> | ||
171 | template<class T> </div> | ||
172 | <table class="memname"> | ||
173 | <tr> | ||
174 | <td class="memname"><a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>< T >::<a class="el" href="classirr_1_1core_1_1rect.html">rect</a> </td> | ||
175 | <td>(</td> | ||
176 | <td class="paramtype">T </td> | ||
177 | <td class="paramname"><em>x</em>, </td> | ||
178 | </tr> | ||
179 | <tr> | ||
180 | <td class="paramkey"></td> | ||
181 | <td></td> | ||
182 | <td class="paramtype">T </td> | ||
183 | <td class="paramname"><em>y</em>, </td> | ||
184 | </tr> | ||
185 | <tr> | ||
186 | <td class="paramkey"></td> | ||
187 | <td></td> | ||
188 | <td class="paramtype">T </td> | ||
189 | <td class="paramname"><em>x2</em>, </td> | ||
190 | </tr> | ||
191 | <tr> | ||
192 | <td class="paramkey"></td> | ||
193 | <td></td> | ||
194 | <td class="paramtype">T </td> | ||
195 | <td class="paramname"><em>y2</em> </td> | ||
196 | </tr> | ||
197 | <tr> | ||
198 | <td></td> | ||
199 | <td>)</td> | ||
200 | <td></td><td><code> [inline]</code></td> | ||
201 | </tr> | ||
202 | </table> | ||
203 | </div> | ||
204 | <div class="memdoc"> | ||
205 | |||
206 | <p>Constructor with two corners. </p> | ||
207 | |||
208 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00034">34</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
209 | |||
210 | </div> | ||
211 | </div> | ||
212 | <a class="anchor" id="a8f207109cebad893de44b01cc67e9e34"></a><!-- doxytag: member="irr::core::rect::rect" ref="a8f207109cebad893de44b01cc67e9e34" args="(const position2d< T > &upperLeft, const position2d< T > &lowerRight)" --> | ||
213 | <div class="memitem"> | ||
214 | <div class="memproto"> | ||
215 | <div class="memtemplate"> | ||
216 | template<class T> </div> | ||
217 | <table class="memname"> | ||
218 | <tr> | ||
219 | <td class="memname"><a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>< T >::<a class="el" href="classirr_1_1core_1_1rect.html">rect</a> </td> | ||
220 | <td>(</td> | ||
221 | <td class="paramtype">const position2d< T > & </td> | ||
222 | <td class="paramname"><em>upperLeft</em>, </td> | ||
223 | </tr> | ||
224 | <tr> | ||
225 | <td class="paramkey"></td> | ||
226 | <td></td> | ||
227 | <td class="paramtype">const position2d< T > & </td> | ||
228 | <td class="paramname"><em>lowerRight</em> </td> | ||
229 | </tr> | ||
230 | <tr> | ||
231 | <td></td> | ||
232 | <td>)</td> | ||
233 | <td></td><td><code> [inline]</code></td> | ||
234 | </tr> | ||
235 | </table> | ||
236 | </div> | ||
237 | <div class="memdoc"> | ||
238 | |||
239 | <p>Constructor with two corners. </p> | ||
240 | |||
241 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00038">38</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
242 | |||
243 | </div> | ||
244 | </div> | ||
245 | <a class="anchor" id="a54526b73a11cf90a4f4ff0c6d1556fcc"></a><!-- doxytag: member="irr::core::rect::rect" ref="a54526b73a11cf90a4f4ff0c6d1556fcc" args="(const position2d< T > &pos, const dimension2d< U > &size)" --> | ||
246 | <div class="memitem"> | ||
247 | <div class="memproto"> | ||
248 | <div class="memtemplate"> | ||
249 | template<class T> </div> | ||
250 | <div class="memtemplate"> | ||
251 | template<class U > </div> | ||
252 | <table class="memname"> | ||
253 | <tr> | ||
254 | <td class="memname"><a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>< T >::<a class="el" href="classirr_1_1core_1_1rect.html">rect</a> </td> | ||
255 | <td>(</td> | ||
256 | <td class="paramtype">const position2d< T > & </td> | ||
257 | <td class="paramname"><em>pos</em>, </td> | ||
258 | </tr> | ||
259 | <tr> | ||
260 | <td class="paramkey"></td> | ||
261 | <td></td> | ||
262 | <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< U > & </td> | ||
263 | <td class="paramname"><em>size</em> </td> | ||
264 | </tr> | ||
265 | <tr> | ||
266 | <td></td> | ||
267 | <td>)</td> | ||
268 | <td></td><td><code> [inline]</code></td> | ||
269 | </tr> | ||
270 | </table> | ||
271 | </div> | ||
272 | <div class="memdoc"> | ||
273 | |||
274 | <p>Constructor with upper left corner and dimension. </p> | ||
275 | |||
276 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00043">43</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
277 | |||
278 | </div> | ||
279 | </div> | ||
280 | <hr/><h2>Member Function Documentation</h2> | ||
281 | <a class="anchor" id="a0b7496319a32ceda640c730f5822f1ef"></a><!-- doxytag: member="irr::core::rect::addInternalPoint" ref="a0b7496319a32ceda640c730f5822f1ef" args="(const position2d< T > &p)" --> | ||
282 | <div class="memitem"> | ||
283 | <div class="memproto"> | ||
284 | <div class="memtemplate"> | ||
285 | template<class T> </div> | ||
286 | <table class="memname"> | ||
287 | <tr> | ||
288 | <td class="memname">void <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>< T >::addInternalPoint </td> | ||
289 | <td>(</td> | ||
290 | <td class="paramtype">const position2d< T > & </td> | ||
291 | <td class="paramname"><em>p</em></td><td>)</td> | ||
292 | <td><code> [inline]</code></td> | ||
293 | </tr> | ||
294 | </table> | ||
295 | </div> | ||
296 | <div class="memdoc"> | ||
297 | |||
298 | <p>Adds a point to the rectangle. </p> | ||
299 | <p>Causes the rectangle to grow bigger if point is outside of the box </p> | ||
300 | <dl><dt><b>Parameters:</b></dt><dd> | ||
301 | <table class="params"> | ||
302 | <tr><td class="paramname">p</td><td>Point to add to the box. </td></tr> | ||
303 | </table> | ||
304 | </dd> | ||
305 | </dl> | ||
306 | |||
307 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00241">241</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
308 | |||
309 | <p>Referenced by <a class="el" href="rect_8h_source.html#l00241">irr::core::rect< f32 >::addInternalPoint()</a>.</p> | ||
310 | |||
311 | </div> | ||
312 | </div> | ||
313 | <a class="anchor" id="a25b80222bc003a238fa8f5157bdb8b9d"></a><!-- doxytag: member="irr::core::rect::addInternalPoint" ref="a25b80222bc003a238fa8f5157bdb8b9d" args="(T x, T y)" --> | ||
314 | <div class="memitem"> | ||
315 | <div class="memproto"> | ||
316 | <div class="memtemplate"> | ||
317 | template<class T> </div> | ||
318 | <table class="memname"> | ||
319 | <tr> | ||
320 | <td class="memname">void <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>< T >::addInternalPoint </td> | ||
321 | <td>(</td> | ||
322 | <td class="paramtype">T </td> | ||
323 | <td class="paramname"><em>x</em>, </td> | ||
324 | </tr> | ||
325 | <tr> | ||
326 | <td class="paramkey"></td> | ||
327 | <td></td> | ||
328 | <td class="paramtype">T </td> | ||
329 | <td class="paramname"><em>y</em> </td> | ||
330 | </tr> | ||
331 | <tr> | ||
332 | <td></td> | ||
333 | <td>)</td> | ||
334 | <td></td><td><code> [inline]</code></td> | ||
335 | </tr> | ||
336 | </table> | ||
337 | </div> | ||
338 | <div class="memdoc"> | ||
339 | |||
340 | <p>Adds a point to the bounding rectangle. </p> | ||
341 | <p>Causes the rectangle to grow bigger if point is outside of the box </p> | ||
342 | <dl><dt><b>Parameters:</b></dt><dd> | ||
343 | <table class="params"> | ||
344 | <tr><td class="paramname">x</td><td>X-Coordinate of the point to add to this box. </td></tr> | ||
345 | <tr><td class="paramname">y</td><td>Y-Coordinate of the point to add to this box. </td></tr> | ||
346 | </table> | ||
347 | </dd> | ||
348 | </dl> | ||
349 | |||
350 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00251">251</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
351 | |||
352 | </div> | ||
353 | </div> | ||
354 | <a class="anchor" id="a86645d45a8bed1a3539bba9865e93de4"></a><!-- doxytag: member="irr::core::rect::clipAgainst" ref="a86645d45a8bed1a3539bba9865e93de4" args="(const rect< T > &other)" --> | ||
355 | <div class="memitem"> | ||
356 | <div class="memproto"> | ||
357 | <div class="memtemplate"> | ||
358 | template<class T> </div> | ||
359 | <table class="memname"> | ||
360 | <tr> | ||
361 | <td class="memname">void <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>< T >::clipAgainst </td> | ||
362 | <td>(</td> | ||
363 | <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1rect.html">rect</a>< T > & </td> | ||
364 | <td class="paramname"><em>other</em></td><td>)</td> | ||
365 | <td><code> [inline]</code></td> | ||
366 | </tr> | ||
367 | </table> | ||
368 | </div> | ||
369 | <div class="memdoc"> | ||
370 | |||
371 | <p>Clips this rectangle with another one. </p> | ||
372 | <dl><dt><b>Parameters:</b></dt><dd> | ||
373 | <table class="params"> | ||
374 | <tr><td class="paramname">other</td><td>Rectangle to clip with </td></tr> | ||
375 | </table> | ||
376 | </dd> | ||
377 | </dl> | ||
378 | |||
379 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00126">126</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
380 | |||
381 | <p>Referenced by <a class="el" href="_i_g_u_i_element_8h_source.html#l00831">irr::gui::IGUIElement::recalculateAbsolutePosition()</a>.</p> | ||
382 | |||
383 | </div> | ||
384 | </div> | ||
385 | <a class="anchor" id="a4515d2a1349dc805775854a422465f63"></a><!-- doxytag: member="irr::core::rect::constrainTo" ref="a4515d2a1349dc805775854a422465f63" args="(const rect< T > &other)" --> | ||
386 | <div class="memitem"> | ||
387 | <div class="memproto"> | ||
388 | <div class="memtemplate"> | ||
389 | template<class T> </div> | ||
390 | <table class="memname"> | ||
391 | <tr> | ||
392 | <td class="memname">bool <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>< T >::constrainTo </td> | ||
393 | <td>(</td> | ||
394 | <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1rect.html">rect</a>< T > & </td> | ||
395 | <td class="paramname"><em>other</em></td><td>)</td> | ||
396 | <td><code> [inline]</code></td> | ||
397 | </tr> | ||
398 | </table> | ||
399 | </div> | ||
400 | <div class="memdoc"> | ||
401 | |||
402 | <p>Moves this rectangle to fit inside another one. </p> | ||
403 | <dl class="return"><dt><b>Returns:</b></dt><dd>True on success, false if not possible </dd></dl> | ||
404 | |||
405 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00147">147</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
406 | |||
407 | </div> | ||
408 | </div> | ||
409 | <a class="anchor" id="aec261cb39303c6051faf8202741f2b53"></a><!-- doxytag: member="irr::core::rect::getArea" ref="aec261cb39303c6051faf8202741f2b53" args="() const " --> | ||
410 | <div class="memitem"> | ||
411 | <div class="memproto"> | ||
412 | <div class="memtemplate"> | ||
413 | template<class T> </div> | ||
414 | <table class="memname"> | ||
415 | <tr> | ||
416 | <td class="memname">T <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>< T >::getArea </td> | ||
417 | <td>(</td> | ||
418 | <td class="paramname"></td><td>)</td> | ||
419 | <td> const<code> [inline]</code></td> | ||
420 | </tr> | ||
421 | </table> | ||
422 | </div> | ||
423 | <div class="memdoc"> | ||
424 | |||
425 | <p>Returns size of rectangle. </p> | ||
426 | |||
427 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00097">97</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
428 | |||
429 | <p>Referenced by <a class="el" href="rect_8h_source.html#l00091">irr::core::rect< f32 >::operator<()</a>.</p> | ||
430 | |||
431 | </div> | ||
432 | </div> | ||
433 | <a class="anchor" id="a44fa44c31767208d5bf2b6e6980a742c"></a><!-- doxytag: member="irr::core::rect::getCenter" ref="a44fa44c31767208d5bf2b6e6980a742c" args="() const " --> | ||
434 | <div class="memitem"> | ||
435 | <div class="memproto"> | ||
436 | <div class="memtemplate"> | ||
437 | template<class T> </div> | ||
438 | <table class="memname"> | ||
439 | <tr> | ||
440 | <td class="memname">position2d<T> <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>< T >::getCenter </td> | ||
441 | <td>(</td> | ||
442 | <td class="paramname"></td><td>)</td> | ||
443 | <td> const<code> [inline]</code></td> | ||
444 | </tr> | ||
445 | </table> | ||
446 | </div> | ||
447 | <div class="memdoc"> | ||
448 | |||
449 | <p>Get the center of the rectangle. </p> | ||
450 | |||
451 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00223">223</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
452 | |||
453 | </div> | ||
454 | </div> | ||
455 | <a class="anchor" id="a61b4192aa7aee5b55c288b1eac29d76b"></a><!-- doxytag: member="irr::core::rect::getHeight" ref="a61b4192aa7aee5b55c288b1eac29d76b" args="() const " --> | ||
456 | <div class="memitem"> | ||
457 | <div class="memproto"> | ||
458 | <div class="memtemplate"> | ||
459 | template<class T> </div> | ||
460 | <table class="memname"> | ||
461 | <tr> | ||
462 | <td class="memname">T <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>< T >::getHeight </td> | ||
463 | <td>(</td> | ||
464 | <td class="paramname"></td><td>)</td> | ||
465 | <td> const<code> [inline]</code></td> | ||
466 | </tr> | ||
467 | </table> | ||
468 | </div> | ||
469 | <div class="memdoc"> | ||
470 | |||
471 | <p>Get height of rectangle. </p> | ||
472 | |||
473 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00190">190</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
474 | |||
475 | <p>Referenced by <a class="el" href="matrix4_8h_source.html#l01913">irr::core::CMatrix4< T >::buildNDCToDCMatrix()</a>, <a class="el" href="rect_8h_source.html#l00147">irr::core::rect< f32 >::constrainTo()</a>, <a class="el" href="rect_8h_source.html#l00097">irr::core::rect< f32 >::getArea()</a>, <a class="el" href="rect_8h_source.html#l00231">irr::core::rect< f32 >::getSize()</a>, and <a class="el" href="_i_g_u_i_element_8h_source.html#l00831">irr::gui::IGUIElement::recalculateAbsolutePosition()</a>.</p> | ||
476 | |||
477 | </div> | ||
478 | </div> | ||
479 | <a class="anchor" id="adffacbb0f07d8268a32af2a32b3ac3ac"></a><!-- doxytag: member="irr::core::rect::getSize" ref="adffacbb0f07d8268a32af2a32b3ac3ac" args="() const " --> | ||
480 | <div class="memitem"> | ||
481 | <div class="memproto"> | ||
482 | <div class="memtemplate"> | ||
483 | template<class T> </div> | ||
484 | <table class="memname"> | ||
485 | <tr> | ||
486 | <td class="memname"><a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a><T> <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>< T >::getSize </td> | ||
487 | <td>(</td> | ||
488 | <td class="paramname"></td><td>)</td> | ||
489 | <td> const<code> [inline]</code></td> | ||
490 | </tr> | ||
491 | </table> | ||
492 | </div> | ||
493 | <div class="memdoc"> | ||
494 | |||
495 | <p>Get the dimensions of the rectangle. </p> | ||
496 | |||
497 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00231">231</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
498 | |||
499 | <p>Referenced by <a class="el" href="_i_g_u_i_element_8h_source.html#l00081">irr::gui::IGUIElement::setRelativePosition()</a>, and <a class="el" href="_i_g_u_i_element_8h_source.html#l00119">irr::gui::IGUIElement::setRelativePositionProportional()</a>.</p> | ||
500 | |||
501 | </div> | ||
502 | </div> | ||
503 | <a class="anchor" id="ae313a3674095733348d5e8bcb75c49b4"></a><!-- doxytag: member="irr::core::rect::getWidth" ref="ae313a3674095733348d5e8bcb75c49b4" args="() const " --> | ||
504 | <div class="memitem"> | ||
505 | <div class="memproto"> | ||
506 | <div class="memtemplate"> | ||
507 | template<class T> </div> | ||
508 | <table class="memname"> | ||
509 | <tr> | ||
510 | <td class="memname">T <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>< T >::getWidth </td> | ||
511 | <td>(</td> | ||
512 | <td class="paramname"></td><td>)</td> | ||
513 | <td> const<code> [inline]</code></td> | ||
514 | </tr> | ||
515 | </table> | ||
516 | </div> | ||
517 | <div class="memdoc"> | ||
518 | |||
519 | <p>Get width of rectangle. </p> | ||
520 | |||
521 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00184">184</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
522 | |||
523 | <p>Referenced by <a class="el" href="matrix4_8h_source.html#l01913">irr::core::CMatrix4< T >::buildNDCToDCMatrix()</a>, <a class="el" href="rect_8h_source.html#l00147">irr::core::rect< f32 >::constrainTo()</a>, <a class="el" href="rect_8h_source.html#l00097">irr::core::rect< f32 >::getArea()</a>, <a class="el" href="rect_8h_source.html#l00231">irr::core::rect< f32 >::getSize()</a>, and <a class="el" href="_i_g_u_i_element_8h_source.html#l00831">irr::gui::IGUIElement::recalculateAbsolutePosition()</a>.</p> | ||
524 | |||
525 | </div> | ||
526 | </div> | ||
527 | <a class="anchor" id="a3276400775d230f377ff1e2755cbb4ef"></a><!-- doxytag: member="irr::core::rect::isPointInside" ref="a3276400775d230f377ff1e2755cbb4ef" args="(const position2d< T > &pos) const " --> | ||
528 | <div class="memitem"> | ||
529 | <div class="memproto"> | ||
530 | <div class="memtemplate"> | ||
531 | template<class T> </div> | ||
532 | <table class="memname"> | ||
533 | <tr> | ||
534 | <td class="memname">bool <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>< T >::isPointInside </td> | ||
535 | <td>(</td> | ||
536 | <td class="paramtype">const position2d< T > & </td> | ||
537 | <td class="paramname"><em>pos</em></td><td>)</td> | ||
538 | <td> const<code> [inline]</code></td> | ||
539 | </tr> | ||
540 | </table> | ||
541 | </div> | ||
542 | <div class="memdoc"> | ||
543 | |||
544 | <p>Returns if a 2d point is within this rectangle. </p> | ||
545 | <dl><dt><b>Parameters:</b></dt><dd> | ||
546 | <table class="params"> | ||
547 | <tr><td class="paramname">pos</td><td>Position to test if it lies within this rectangle. </td></tr> | ||
548 | </table> | ||
549 | </dd> | ||
550 | </dl> | ||
551 | <dl class="return"><dt><b>Returns:</b></dt><dd>True if the position is within the rectangle, false if not. </dd></dl> | ||
552 | |||
553 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00105">105</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
554 | |||
555 | <p>Referenced by <a class="el" href="_i_g_u_i_element_8h_source.html#l00272">irr::gui::IGUIElement::isPointInside()</a>.</p> | ||
556 | |||
557 | </div> | ||
558 | </div> | ||
559 | <a class="anchor" id="abb2b27935e617dfad6445b2f25f7513d"></a><!-- doxytag: member="irr::core::rect::isRectCollided" ref="abb2b27935e617dfad6445b2f25f7513d" args="(const rect< T > &other) const " --> | ||
560 | <div class="memitem"> | ||
561 | <div class="memproto"> | ||
562 | <div class="memtemplate"> | ||
563 | template<class T> </div> | ||
564 | <table class="memname"> | ||
565 | <tr> | ||
566 | <td class="memname">bool <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>< T >::isRectCollided </td> | ||
567 | <td>(</td> | ||
568 | <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1rect.html">rect</a>< T > & </td> | ||
569 | <td class="paramname"><em>other</em></td><td>)</td> | ||
570 | <td> const<code> [inline]</code></td> | ||
571 | </tr> | ||
572 | </table> | ||
573 | </div> | ||
574 | <div class="memdoc"> | ||
575 | |||
576 | <p>Check if the rectangle collides with another rectangle. </p> | ||
577 | <dl><dt><b>Parameters:</b></dt><dd> | ||
578 | <table class="params"> | ||
579 | <tr><td class="paramname">other</td><td>Rectangle to test collision with </td></tr> | ||
580 | </table> | ||
581 | </dd> | ||
582 | </dl> | ||
583 | <dl class="return"><dt><b>Returns:</b></dt><dd>True if the rectangles collide. </dd></dl> | ||
584 | |||
585 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00116">116</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
586 | |||
587 | </div> | ||
588 | </div> | ||
589 | <a class="anchor" id="a1ab043c2f686a7d02fc72a1655162faf"></a><!-- doxytag: member="irr::core::rect::isValid" ref="a1ab043c2f686a7d02fc72a1655162faf" args="() const " --> | ||
590 | <div class="memitem"> | ||
591 | <div class="memproto"> | ||
592 | <div class="memtemplate"> | ||
593 | template<class T> </div> | ||
594 | <table class="memname"> | ||
595 | <tr> | ||
596 | <td class="memname">bool <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>< T >::isValid </td> | ||
597 | <td>(</td> | ||
598 | <td class="paramname"></td><td>)</td> | ||
599 | <td> const<code> [inline]</code></td> | ||
600 | </tr> | ||
601 | </table> | ||
602 | </div> | ||
603 | <div class="memdoc"> | ||
604 | |||
605 | <p>Returns if the rect is valid to draw. </p> | ||
606 | <p>It would be invalid if the UpperLeftCorner is lower or more right than the LowerRightCorner. </p> | ||
607 | |||
608 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00216">216</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
609 | |||
610 | </div> | ||
611 | </div> | ||
612 | <a class="anchor" id="a68e23478fc9788779820988f106b9fd2"></a><!-- doxytag: member="irr::core::rect::operator!=" ref="a68e23478fc9788779820988f106b9fd2" args="(const rect< T > &other) const " --> | ||
613 | <div class="memitem"> | ||
614 | <div class="memproto"> | ||
615 | <div class="memtemplate"> | ||
616 | template<class T> </div> | ||
617 | <table class="memname"> | ||
618 | <tr> | ||
619 | <td class="memname">bool <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>< T >::operator!= </td> | ||
620 | <td>(</td> | ||
621 | <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1rect.html">rect</a>< T > & </td> | ||
622 | <td class="paramname"><em>other</em></td><td>)</td> | ||
623 | <td> const<code> [inline]</code></td> | ||
624 | </tr> | ||
625 | </table> | ||
626 | </div> | ||
627 | <div class="memdoc"> | ||
628 | |||
629 | <p>inequality operator </p> | ||
630 | |||
631 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00084">84</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
632 | |||
633 | </div> | ||
634 | </div> | ||
635 | <a class="anchor" id="a699b98aff4bf8b7d92cef6d3c940354f"></a><!-- doxytag: member="irr::core::rect::operator+" ref="a699b98aff4bf8b7d92cef6d3c940354f" args="(const position2d< T > &pos) const " --> | ||
636 | <div class="memitem"> | ||
637 | <div class="memproto"> | ||
638 | <div class="memtemplate"> | ||
639 | template<class T> </div> | ||
640 | <table class="memname"> | ||
641 | <tr> | ||
642 | <td class="memname"><a class="el" href="classirr_1_1core_1_1rect.html">rect</a><T> <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>< T >::operator+ </td> | ||
643 | <td>(</td> | ||
644 | <td class="paramtype">const position2d< T > & </td> | ||
645 | <td class="paramname"><em>pos</em></td><td>)</td> | ||
646 | <td> const<code> [inline]</code></td> | ||
647 | </tr> | ||
648 | </table> | ||
649 | </div> | ||
650 | <div class="memdoc"> | ||
651 | |||
652 | <p>move right by given numbers </p> | ||
653 | |||
654 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00047">47</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
655 | |||
656 | </div> | ||
657 | </div> | ||
658 | <a class="anchor" id="a4f4f1c3c3321d1ca5e9f617ebf47421c"></a><!-- doxytag: member="irr::core::rect::operator+=" ref="a4f4f1c3c3321d1ca5e9f617ebf47421c" args="(const position2d< T > &pos)" --> | ||
659 | <div class="memitem"> | ||
660 | <div class="memproto"> | ||
661 | <div class="memtemplate"> | ||
662 | template<class T> </div> | ||
663 | <table class="memname"> | ||
664 | <tr> | ||
665 | <td class="memname"><a class="el" href="classirr_1_1core_1_1rect.html">rect</a><T>& <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>< T >::operator+= </td> | ||
666 | <td>(</td> | ||
667 | <td class="paramtype">const position2d< T > & </td> | ||
668 | <td class="paramname"><em>pos</em></td><td>)</td> | ||
669 | <td><code> [inline]</code></td> | ||
670 | </tr> | ||
671 | </table> | ||
672 | </div> | ||
673 | <div class="memdoc"> | ||
674 | |||
675 | <p>move right by given numbers </p> | ||
676 | |||
677 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00054">54</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
678 | |||
679 | </div> | ||
680 | </div> | ||
681 | <a class="anchor" id="a031c021cf1ccbc4efe5b5242e85cdc6d"></a><!-- doxytag: member="irr::core::rect::operator-" ref="a031c021cf1ccbc4efe5b5242e85cdc6d" args="(const position2d< T > &pos) const " --> | ||
682 | <div class="memitem"> | ||
683 | <div class="memproto"> | ||
684 | <div class="memtemplate"> | ||
685 | template<class T> </div> | ||
686 | <table class="memname"> | ||
687 | <tr> | ||
688 | <td class="memname"><a class="el" href="classirr_1_1core_1_1rect.html">rect</a><T> <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>< T >::operator- </td> | ||
689 | <td>(</td> | ||
690 | <td class="paramtype">const position2d< T > & </td> | ||
691 | <td class="paramname"><em>pos</em></td><td>)</td> | ||
692 | <td> const<code> [inline]</code></td> | ||
693 | </tr> | ||
694 | </table> | ||
695 | </div> | ||
696 | <div class="memdoc"> | ||
697 | |||
698 | <p>move left by given numbers </p> | ||
699 | |||
700 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00062">62</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
701 | |||
702 | </div> | ||
703 | </div> | ||
704 | <a class="anchor" id="a3ef4f6f13ec79c3d5745df3a76f9e1e1"></a><!-- doxytag: member="irr::core::rect::operator-=" ref="a3ef4f6f13ec79c3d5745df3a76f9e1e1" args="(const position2d< T > &pos)" --> | ||
705 | <div class="memitem"> | ||
706 | <div class="memproto"> | ||
707 | <div class="memtemplate"> | ||
708 | template<class T> </div> | ||
709 | <table class="memname"> | ||
710 | <tr> | ||
711 | <td class="memname"><a class="el" href="classirr_1_1core_1_1rect.html">rect</a><T>& <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>< T >::operator-= </td> | ||
712 | <td>(</td> | ||
713 | <td class="paramtype">const position2d< T > & </td> | ||
714 | <td class="paramname"><em>pos</em></td><td>)</td> | ||
715 | <td><code> [inline]</code></td> | ||
716 | </tr> | ||
717 | </table> | ||
718 | </div> | ||
719 | <div class="memdoc"> | ||
720 | |||
721 | <p>move left by given numbers </p> | ||
722 | |||
723 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00069">69</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
724 | |||
725 | </div> | ||
726 | </div> | ||
727 | <a class="anchor" id="abcba5b76777333253cd37ed041e7c3a7"></a><!-- doxytag: member="irr::core::rect::operator<" ref="abcba5b76777333253cd37ed041e7c3a7" args="(const rect< T > &other) const " --> | ||
728 | <div class="memitem"> | ||
729 | <div class="memproto"> | ||
730 | <div class="memtemplate"> | ||
731 | template<class T> </div> | ||
732 | <table class="memname"> | ||
733 | <tr> | ||
734 | <td class="memname">bool <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>< T >::operator< </td> | ||
735 | <td>(</td> | ||
736 | <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1rect.html">rect</a>< T > & </td> | ||
737 | <td class="paramname"><em>other</em></td><td>)</td> | ||
738 | <td> const<code> [inline]</code></td> | ||
739 | </tr> | ||
740 | </table> | ||
741 | </div> | ||
742 | <div class="memdoc"> | ||
743 | |||
744 | <p>compares size of rectangles </p> | ||
745 | |||
746 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00091">91</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
747 | |||
748 | </div> | ||
749 | </div> | ||
750 | <a class="anchor" id="ae788c2c726f187fc4681f9ca6eef2b19"></a><!-- doxytag: member="irr::core::rect::operator==" ref="ae788c2c726f187fc4681f9ca6eef2b19" args="(const rect< T > &other) const " --> | ||
751 | <div class="memitem"> | ||
752 | <div class="memproto"> | ||
753 | <div class="memtemplate"> | ||
754 | template<class T> </div> | ||
755 | <table class="memname"> | ||
756 | <tr> | ||
757 | <td class="memname">bool <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>< T >::operator== </td> | ||
758 | <td>(</td> | ||
759 | <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1rect.html">rect</a>< T > & </td> | ||
760 | <td class="paramname"><em>other</em></td><td>)</td> | ||
761 | <td> const<code> [inline]</code></td> | ||
762 | </tr> | ||
763 | </table> | ||
764 | </div> | ||
765 | <div class="memdoc"> | ||
766 | |||
767 | <p>equality operator </p> | ||
768 | |||
769 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00077">77</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
770 | |||
771 | </div> | ||
772 | </div> | ||
773 | <a class="anchor" id="a45c7665e74aed626bb5c01729f206775"></a><!-- doxytag: member="irr::core::rect::repair" ref="a45c7665e74aed626bb5c01729f206775" args="()" --> | ||
774 | <div class="memitem"> | ||
775 | <div class="memproto"> | ||
776 | <div class="memtemplate"> | ||
777 | template<class T> </div> | ||
778 | <table class="memname"> | ||
779 | <tr> | ||
780 | <td class="memname">void <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>< T >::repair </td> | ||
781 | <td>(</td> | ||
782 | <td class="paramname"></td><td>)</td> | ||
783 | <td><code> [inline]</code></td> | ||
784 | </tr> | ||
785 | </table> | ||
786 | </div> | ||
787 | <div class="memdoc"> | ||
788 | |||
789 | <p>If the lower right corner of the rect is smaller then the upper left, the points are swapped. </p> | ||
790 | |||
791 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00196">196</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
792 | |||
793 | <p>Referenced by <a class="el" href="_i_g_u_i_element_8h_source.html#l00831">irr::gui::IGUIElement::recalculateAbsolutePosition()</a>.</p> | ||
794 | |||
795 | </div> | ||
796 | </div> | ||
797 | <hr/><h2>Member Data Documentation</h2> | ||
798 | <a class="anchor" id="aa7c7e38bbff5f32992f69b36fc8cec1e"></a><!-- doxytag: member="irr::core::rect::LowerRightCorner" ref="aa7c7e38bbff5f32992f69b36fc8cec1e" args="" --> | ||
799 | <div class="memitem"> | ||
800 | <div class="memproto"> | ||
801 | <div class="memtemplate"> | ||
802 | template<class T> </div> | ||
803 | <table class="memname"> | ||
804 | <tr> | ||
805 | <td class="memname">position2d<T> <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>< T >::<a class="el" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e">LowerRightCorner</a></td> | ||
806 | </tr> | ||
807 | </table> | ||
808 | </div> | ||
809 | <div class="memdoc"> | ||
810 | |||
811 | <p>Lower right corner. </p> | ||
812 | |||
813 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00267">267</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
814 | |||
815 | <p>Referenced by <a class="el" href="rect_8h_source.html#l00251">irr::core::rect< f32 >::addInternalPoint()</a>, <a class="el" href="matrix4_8h_source.html#l01913">irr::core::CMatrix4< T >::buildNDCToDCMatrix()</a>, <a class="el" href="rect_8h_source.html#l00126">irr::core::rect< f32 >::clipAgainst()</a>, <a class="el" href="rect_8h_source.html#l00147">irr::core::rect< f32 >::constrainTo()</a>, <a class="el" href="rect_8h_source.html#l00223">irr::core::rect< f32 >::getCenter()</a>, <a class="el" href="rect_8h_source.html#l00190">irr::core::rect< f32 >::getHeight()</a>, <a class="el" href="rect_8h_source.html#l00184">irr::core::rect< f32 >::getWidth()</a>, <a class="el" href="rect_8h_source.html#l00105">irr::core::rect< f32 >::isPointInside()</a>, <a class="el" href="rect_8h_source.html#l00116">irr::core::rect< f32 >::isRectCollided()</a>, <a class="el" href="rect_8h_source.html#l00216">irr::core::rect< f32 >::isValid()</a>, <a class="el" href="rect_8h_source.html#l00084">irr::core::rect< f32 >::operator!=()</a>, <a class="el" href="rect_8h_source.html#l00054">irr::core::rect< f32 >::operator+=()</a>, <a class="el" href="rect_8h_source.html#l00069">irr::core::rect< f32 >::operator-=()</a>, <a class="el" href="rect_8h_source.html#l00077">irr::core::rect< f32 >::operator==()</a>, <a class="el" href="_i_g_u_i_element_8h_source.html#l00831">irr::gui::IGUIElement::recalculateAbsolutePosition()</a>, <a class="el" href="rect_8h_source.html#l00196">irr::core::rect< f32 >::repair()</a>, <a class="el" href="_i_g_u_i_element_8h_source.html#l00191">irr::gui::IGUIElement::setAlignment()</a>, <a class="el" href="_i_g_u_i_element_8h_source.html#l00081">irr::gui::IGUIElement::setRelativePosition()</a>, and <a class="el" href="_i_g_u_i_element_8h_source.html#l00119">irr::gui::IGUIElement::setRelativePositionProportional()</a>.</p> | ||
816 | |||
817 | </div> | ||
818 | </div> | ||
819 | <a class="anchor" id="abd47b3a4967b2153e58984d964af6573"></a><!-- doxytag: member="irr::core::rect::UpperLeftCorner" ref="abd47b3a4967b2153e58984d964af6573" args="" --> | ||
820 | <div class="memitem"> | ||
821 | <div class="memproto"> | ||
822 | <div class="memtemplate"> | ||
823 | template<class T> </div> | ||
824 | <table class="memname"> | ||
825 | <tr> | ||
826 | <td class="memname">position2d<T> <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>< T >::<a class="el" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573">UpperLeftCorner</a></td> | ||
827 | </tr> | ||
828 | </table> | ||
829 | </div> | ||
830 | <div class="memdoc"> | ||
831 | |||
832 | <p>Upper left corner. </p> | ||
833 | |||
834 | <p>Definition at line <a class="el" href="rect_8h_source.html#l00265">265</a> of file <a class="el" href="rect_8h_source.html">rect.h</a>.</p> | ||
835 | |||
836 | <p>Referenced by <a class="el" href="rect_8h_source.html#l00251">irr::core::rect< f32 >::addInternalPoint()</a>, <a class="el" href="matrix4_8h_source.html#l01913">irr::core::CMatrix4< T >::buildNDCToDCMatrix()</a>, <a class="el" href="rect_8h_source.html#l00126">irr::core::rect< f32 >::clipAgainst()</a>, <a class="el" href="rect_8h_source.html#l00147">irr::core::rect< f32 >::constrainTo()</a>, <a class="el" href="rect_8h_source.html#l00223">irr::core::rect< f32 >::getCenter()</a>, <a class="el" href="rect_8h_source.html#l00190">irr::core::rect< f32 >::getHeight()</a>, <a class="el" href="rect_8h_source.html#l00184">irr::core::rect< f32 >::getWidth()</a>, <a class="el" href="rect_8h_source.html#l00105">irr::core::rect< f32 >::isPointInside()</a>, <a class="el" href="rect_8h_source.html#l00116">irr::core::rect< f32 >::isRectCollided()</a>, <a class="el" href="rect_8h_source.html#l00216">irr::core::rect< f32 >::isValid()</a>, <a class="el" href="rect_8h_source.html#l00084">irr::core::rect< f32 >::operator!=()</a>, <a class="el" href="rect_8h_source.html#l00054">irr::core::rect< f32 >::operator+=()</a>, <a class="el" href="rect_8h_source.html#l00069">irr::core::rect< f32 >::operator-=()</a>, <a class="el" href="rect_8h_source.html#l00077">irr::core::rect< f32 >::operator==()</a>, <a class="el" href="_i_g_u_i_element_8h_source.html#l00831">irr::gui::IGUIElement::recalculateAbsolutePosition()</a>, <a class="el" href="rect_8h_source.html#l00196">irr::core::rect< f32 >::repair()</a>, <a class="el" href="_i_g_u_i_element_8h_source.html#l00191">irr::gui::IGUIElement::setAlignment()</a>, <a class="el" href="_i_g_u_i_element_8h_source.html#l00081">irr::gui::IGUIElement::setRelativePosition()</a>, and <a class="el" href="_i_g_u_i_element_8h_source.html#l00119">irr::gui::IGUIElement::setRelativePositionProportional()</a>.</p> | ||
837 | |||
838 | </div> | ||
839 | </div> | ||
840 | <hr/>The documentation for this class was generated from the following file:<ul> | ||
841 | <li><a class="el" href="rect_8h_source.html">rect.h</a></li> | ||
842 | </ul> | ||
843 | </div> | ||
844 | </div> | ||
845 | <div id="nav-path" class="navpath"> | ||
846 | <ul> | ||
847 | <li class="navelem"><a class="el" href="namespaceirr.html">irr</a> </li> | ||
848 | <li class="navelem"><a class="el" href="namespaceirr_1_1core.html">core</a> </li> | ||
849 | <li class="navelem"><a class="el" href="classirr_1_1core_1_1rect.html">rect</a> </li> | ||
850 | <!-- window showing the filter options --> | ||
851 | <div id="MSearchSelectWindow" | ||
852 | onmouseover="return searchBox.OnSearchSelectShow()" | ||
853 | onmouseout="return searchBox.OnSearchSelectHide()" | ||
854 | onkeydown="return searchBox.OnSearchSelectKey(event)"> | ||
855 | <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> | ||
856 | |||
857 | <!-- iframe showing the search results (closed by default) --> | ||
858 | <div id="MSearchResultsWindow"> | ||
859 | <iframe src="javascript:void(0)" frameborder="0" | ||
860 | name="MSearchResults" id="MSearchResults"> | ||
861 | </iframe> | ||
862 | </div> | ||
863 | |||
864 | |||
865 | <li class="footer"> | ||
866 | <a href="http://irrlicht.sourceforge.net" target="_blank">Irrlicht | ||
867 | Engine</a> Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on Tue Nov 6 2012 11:06:03 for Irrlicht 3D Engine by | ||
868 | <a href="http://www.doxygen.org/index.html" target="_blank">Doxygen</a> 1.7.5.1 </li> | ||
869 | </ul> | ||
870 | </div> | ||
871 | |||
872 | |||
873 | </body> | ||
874 | </html> | ||