aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8.1/doc/html/classirr_1_1core_1_1rect.html
blob: 82936d99c0dc8e503739f51c13e4aa9cfaadd9f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Irrlicht 3D Engine: irr::core::rect&lt; T &gt; Class Template Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="irrlichtlogo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Irrlicht 3D Engine
   
   </div>
   
  </td>
  
  
  
   
   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
</td>
   
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="dynsections.js"></script>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('classirr_1_1core_1_1rect.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle">
<div class="title">irr::core::rect&lt; T &gt; Class Template Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="irr::core::rect" -->
<p>Rectangle template.  
 <a href="classirr_1_1core_1_1rect.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="rect_8h_source.html">rect.h</a>&gt;</code></p>

<p><a href="classirr_1_1core_1_1rect-members.html">List of all members.</a></p>
<h2><a name="pub-methods"></a>
Public Member Functions</h2>
<ul>
<li><a class="el" href="classirr_1_1core_1_1rect.html#a04c79e7af6ff14b62e569628c4f83e44">rect</a> ()
<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)
<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&lt; T &gt; &amp;upperLeft, const position2d&lt; T &gt; &amp;lowerRight)
<dl class="el"><dd class="mdescRight">Constructor with two corners.  <a href="#a8f207109cebad893de44b01cc67e9e34"></a><br/></dl><li>template&lt;class U &gt; <a class="el" href="classirr_1_1core_1_1rect.html#a54526b73a11cf90a4f4ff0c6d1556fcc">rect</a> (const position2d&lt; T &gt; &amp;pos, const <a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>&lt; U &gt; &amp;size)
<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&lt; T &gt; &amp;p)
<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)
<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>&lt; T &gt; &amp;other)
<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>&lt; T &gt; &amp;other)
<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 
<dl class="el"><dd class="mdescRight">Returns size of rectangle.  <a href="#aec261cb39303c6051faf8202741f2b53"></a><br/></dl><li>position2d&lt; T &gt; <a class="el" href="classirr_1_1core_1_1rect.html#a44fa44c31767208d5bf2b6e6980a742c">getCenter</a> () const 
<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 
<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>&lt; T &gt; <a class="el" href="classirr_1_1core_1_1rect.html#adffacbb0f07d8268a32af2a32b3ac3ac">getSize</a> () const 
<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 
<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&lt; T &gt; &amp;pos) const 
<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>&lt; T &gt; &amp;other) const 
<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 
<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>&lt; T &gt; &amp;other) const 
<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>&lt; T &gt; <a class="el" href="classirr_1_1core_1_1rect.html#a699b98aff4bf8b7d92cef6d3c940354f">operator+</a> (const position2d&lt; T &gt; &amp;pos) const 
<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>&lt; T &gt; &amp; <a class="el" href="classirr_1_1core_1_1rect.html#a4f4f1c3c3321d1ca5e9f617ebf47421c">operator+=</a> (const position2d&lt; T &gt; &amp;pos)
<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>&lt; T &gt; <a class="el" href="classirr_1_1core_1_1rect.html#a031c021cf1ccbc4efe5b5242e85cdc6d">operator-</a> (const position2d&lt; T &gt; &amp;pos) const 
<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>&lt; T &gt; &amp; <a class="el" href="classirr_1_1core_1_1rect.html#a3ef4f6f13ec79c3d5745df3a76f9e1e1">operator-=</a> (const position2d&lt; T &gt; &amp;pos)
<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&lt;</a> (const <a class="el" href="classirr_1_1core_1_1rect.html">rect</a>&lt; T &gt; &amp;other) const 
<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>&lt; T &gt; &amp;other) const 
<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> ()
<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>
<h2><a name="pub-attribs"></a>
Public Attributes</h2>
<ul>
<li>position2d&lt; T &gt; <a class="el" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e">LowerRightCorner</a>
<dl class="el"><dd class="mdescRight">Lower right corner.  <a href="#aa7c7e38bbff5f32992f69b36fc8cec1e"></a><br/></dl><li>position2d&lt; T &gt; <a class="el" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573">UpperLeftCorner</a>
<dl class="el"><dd class="mdescRight">Upper left corner.  <a href="#abd47b3a4967b2153e58984d964af6573"></a><br/></dl></ul>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template&lt;class T&gt;<br/>
class irr::core::rect&lt; T &gt;</h3>

<p>Rectangle template. </p>
<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>
<p>Coordinates are (0,0) for top-left corner, and increasing to the right and to the bottom. </p>

<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>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a04c79e7af6ff14b62e569628c4f83e44"></a><!-- doxytag: member="irr::core::rect::rect" ref="a04c79e7af6ff14b62e569628c4f83e44" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>&lt; T &gt;::<a class="el" href="classirr_1_1core_1_1rect.html">rect</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Default constructor creating empty rectangle at (0,0) </p>

<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>

</div>
</div>
<a class="anchor" id="af7d59f53cd24d5f9f587896160ece50a"></a><!-- doxytag: member="irr::core::rect::rect" ref="af7d59f53cd24d5f9f587896160ece50a" args="(T x, T y, T x2, T y2)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>&lt; T &gt;::<a class="el" href="classirr_1_1core_1_1rect.html">rect</a> </td>
          <td>(</td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>y2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructor with two corners. </p>

<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>

</div>
</div>
<a class="anchor" id="a8f207109cebad893de44b01cc67e9e34"></a><!-- doxytag: member="irr::core::rect::rect" ref="a8f207109cebad893de44b01cc67e9e34" args="(const position2d&lt; T &gt; &amp;upperLeft, const position2d&lt; T &gt; &amp;lowerRight)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>&lt; T &gt;::<a class="el" href="classirr_1_1core_1_1rect.html">rect</a> </td>
          <td>(</td>
          <td class="paramtype">const position2d&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>upperLeft</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const position2d&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>lowerRight</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructor with two corners. </p>

<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>

</div>
</div>
<a class="anchor" id="a54526b73a11cf90a4f4ff0c6d1556fcc"></a><!-- doxytag: member="irr::core::rect::rect" ref="a54526b73a11cf90a4f4ff0c6d1556fcc" args="(const position2d&lt; T &gt; &amp;pos, const dimension2d&lt; U &gt; &amp;size)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
<div class="memtemplate">
template&lt;class U &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>&lt; T &gt;::<a class="el" href="classirr_1_1core_1_1rect.html">rect</a> </td>
          <td>(</td>
          <td class="paramtype">const position2d&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>&lt; U &gt; &amp;&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructor with upper left corner and dimension. </p>

<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>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a0b7496319a32ceda640c730f5822f1ef"></a><!-- doxytag: member="irr::core::rect::addInternalPoint" ref="a0b7496319a32ceda640c730f5822f1ef" args="(const position2d&lt; T &gt; &amp;p)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>&lt; T &gt;::addInternalPoint </td>
          <td>(</td>
          <td class="paramtype">const position2d&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds a point to the rectangle. </p>
<p>Causes the rectangle to grow bigger if point is outside of the box </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td>Point to add to the box. </td></tr>
  </table>
  </dd>
</dl>

<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>

<p>Referenced by <a class="el" href="rect_8h_source.html#l00241">irr::core::rect&lt; f32 &gt;::addInternalPoint()</a>.</p>

</div>
</div>
<a class="anchor" id="a25b80222bc003a238fa8f5157bdb8b9d"></a><!-- doxytag: member="irr::core::rect::addInternalPoint" ref="a25b80222bc003a238fa8f5157bdb8b9d" args="(T x, T y)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>&lt; T &gt;::addInternalPoint </td>
          <td>(</td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds a point to the bounding rectangle. </p>
<p>Causes the rectangle to grow bigger if point is outside of the box </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>X-Coordinate of the point to add to this box. </td></tr>
    <tr><td class="paramname">y</td><td>Y-Coordinate of the point to add to this box. </td></tr>
  </table>
  </dd>
</dl>

<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>

</div>
</div>
<a class="anchor" id="a86645d45a8bed1a3539bba9865e93de4"></a><!-- doxytag: member="irr::core::rect::clipAgainst" ref="a86645d45a8bed1a3539bba9865e93de4" args="(const rect&lt; T &gt; &amp;other)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>&lt; T &gt;::clipAgainst </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1rect.html">rect</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Clips this rectangle with another one. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>Rectangle to clip with </td></tr>
  </table>
  </dd>
</dl>

<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>

<p>Referenced by <a class="el" href="_i_g_u_i_element_8h_source.html#l00831">irr::gui::IGUIElement::recalculateAbsolutePosition()</a>.</p>

</div>
</div>
<a class="anchor" id="a4515d2a1349dc805775854a422465f63"></a><!-- doxytag: member="irr::core::rect::constrainTo" ref="a4515d2a1349dc805775854a422465f63" args="(const rect&lt; T &gt; &amp;other)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>&lt; T &gt;::constrainTo </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1rect.html">rect</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Moves this rectangle to fit inside another one. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>True on success, false if not possible </dd></dl>

<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>

</div>
</div>
<a class="anchor" id="aec261cb39303c6051faf8202741f2b53"></a><!-- doxytag: member="irr::core::rect::getArea" ref="aec261cb39303c6051faf8202741f2b53" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">T <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>&lt; T &gt;::getArea </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns size of rectangle. </p>

<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>

<p>Referenced by <a class="el" href="rect_8h_source.html#l00091">irr::core::rect&lt; f32 &gt;::operator&lt;()</a>.</p>

</div>
</div>
<a class="anchor" id="a44fa44c31767208d5bf2b6e6980a742c"></a><!-- doxytag: member="irr::core::rect::getCenter" ref="a44fa44c31767208d5bf2b6e6980a742c" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">position2d&lt;T&gt; <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>&lt; T &gt;::getCenter </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the center of the rectangle. </p>

<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>

</div>
</div>
<a class="anchor" id="a61b4192aa7aee5b55c288b1eac29d76b"></a><!-- doxytag: member="irr::core::rect::getHeight" ref="a61b4192aa7aee5b55c288b1eac29d76b" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">T <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>&lt; T &gt;::getHeight </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get height of rectangle. </p>

<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>

<p>Referenced by <a class="el" href="matrix4_8h_source.html#l01913">irr::core::CMatrix4&lt; T &gt;::buildNDCToDCMatrix()</a>, <a class="el" href="rect_8h_source.html#l00147">irr::core::rect&lt; f32 &gt;::constrainTo()</a>, <a class="el" href="rect_8h_source.html#l00097">irr::core::rect&lt; f32 &gt;::getArea()</a>, <a class="el" href="rect_8h_source.html#l00231">irr::core::rect&lt; f32 &gt;::getSize()</a>, and <a class="el" href="_i_g_u_i_element_8h_source.html#l00831">irr::gui::IGUIElement::recalculateAbsolutePosition()</a>.</p>

</div>
</div>
<a class="anchor" id="adffacbb0f07d8268a32af2a32b3ac3ac"></a><!-- doxytag: member="irr::core::rect::getSize" ref="adffacbb0f07d8268a32af2a32b3ac3ac" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>&lt;T&gt; <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>&lt; T &gt;::getSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the dimensions of the rectangle. </p>

<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>

<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>

</div>
</div>
<a class="anchor" id="ae313a3674095733348d5e8bcb75c49b4"></a><!-- doxytag: member="irr::core::rect::getWidth" ref="ae313a3674095733348d5e8bcb75c49b4" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">T <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>&lt; T &gt;::getWidth </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get width of rectangle. </p>

<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>

<p>Referenced by <a class="el" href="matrix4_8h_source.html#l01913">irr::core::CMatrix4&lt; T &gt;::buildNDCToDCMatrix()</a>, <a class="el" href="rect_8h_source.html#l00147">irr::core::rect&lt; f32 &gt;::constrainTo()</a>, <a class="el" href="rect_8h_source.html#l00097">irr::core::rect&lt; f32 &gt;::getArea()</a>, <a class="el" href="rect_8h_source.html#l00231">irr::core::rect&lt; f32 &gt;::getSize()</a>, and <a class="el" href="_i_g_u_i_element_8h_source.html#l00831">irr::gui::IGUIElement::recalculateAbsolutePosition()</a>.</p>

</div>
</div>
<a class="anchor" id="a3276400775d230f377ff1e2755cbb4ef"></a><!-- doxytag: member="irr::core::rect::isPointInside" ref="a3276400775d230f377ff1e2755cbb4ef" args="(const position2d&lt; T &gt; &amp;pos) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>&lt; T &gt;::isPointInside </td>
          <td>(</td>
          <td class="paramtype">const position2d&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>pos</em></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns if a 2d point is within this rectangle. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pos</td><td>Position to test if it lies within this rectangle. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if the position is within the rectangle, false if not. </dd></dl>

<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>

<p>Referenced by <a class="el" href="_i_g_u_i_element_8h_source.html#l00272">irr::gui::IGUIElement::isPointInside()</a>.</p>

</div>
</div>
<a class="anchor" id="abb2b27935e617dfad6445b2f25f7513d"></a><!-- doxytag: member="irr::core::rect::isRectCollided" ref="abb2b27935e617dfad6445b2f25f7513d" args="(const rect&lt; T &gt; &amp;other) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>&lt; T &gt;::isRectCollided </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1rect.html">rect</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Check if the rectangle collides with another rectangle. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>Rectangle to test collision with </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if the rectangles collide. </dd></dl>

<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>

</div>
</div>
<a class="anchor" id="a1ab043c2f686a7d02fc72a1655162faf"></a><!-- doxytag: member="irr::core::rect::isValid" ref="a1ab043c2f686a7d02fc72a1655162faf" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>&lt; T &gt;::isValid </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns if the rect is valid to draw. </p>
<p>It would be invalid if the UpperLeftCorner is lower or more right than the LowerRightCorner. </p>

<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>

</div>
</div>
<a class="anchor" id="a68e23478fc9788779820988f106b9fd2"></a><!-- doxytag: member="irr::core::rect::operator!=" ref="a68e23478fc9788779820988f106b9fd2" args="(const rect&lt; T &gt; &amp;other) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>&lt; T &gt;::operator!= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1rect.html">rect</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>inequality operator </p>

<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>

</div>
</div>
<a class="anchor" id="a699b98aff4bf8b7d92cef6d3c940354f"></a><!-- doxytag: member="irr::core::rect::operator+" ref="a699b98aff4bf8b7d92cef6d3c940354f" args="(const position2d&lt; T &gt; &amp;pos) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classirr_1_1core_1_1rect.html">rect</a>&lt;T&gt; <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>&lt; T &gt;::operator+ </td>
          <td>(</td>
          <td class="paramtype">const position2d&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>pos</em></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>move right by given numbers </p>

<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>

</div>
</div>
<a class="anchor" id="a4f4f1c3c3321d1ca5e9f617ebf47421c"></a><!-- doxytag: member="irr::core::rect::operator+=" ref="a4f4f1c3c3321d1ca5e9f617ebf47421c" args="(const position2d&lt; T &gt; &amp;pos)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classirr_1_1core_1_1rect.html">rect</a>&lt;T&gt;&amp; <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>&lt; T &gt;::operator+= </td>
          <td>(</td>
          <td class="paramtype">const position2d&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>pos</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>move right by given numbers </p>

<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>

</div>
</div>
<a class="anchor" id="a031c021cf1ccbc4efe5b5242e85cdc6d"></a><!-- doxytag: member="irr::core::rect::operator&#45;" ref="a031c021cf1ccbc4efe5b5242e85cdc6d" args="(const position2d&lt; T &gt; &amp;pos) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classirr_1_1core_1_1rect.html">rect</a>&lt;T&gt; <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>&lt; T &gt;::operator- </td>
          <td>(</td>
          <td class="paramtype">const position2d&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>pos</em></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>move left by given numbers </p>

<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>

</div>
</div>
<a class="anchor" id="a3ef4f6f13ec79c3d5745df3a76f9e1e1"></a><!-- doxytag: member="irr::core::rect::operator&#45;=" ref="a3ef4f6f13ec79c3d5745df3a76f9e1e1" args="(const position2d&lt; T &gt; &amp;pos)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classirr_1_1core_1_1rect.html">rect</a>&lt;T&gt;&amp; <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>&lt; T &gt;::operator-= </td>
          <td>(</td>
          <td class="paramtype">const position2d&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>pos</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>move left by given numbers </p>

<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>

</div>
</div>
<a class="anchor" id="abcba5b76777333253cd37ed041e7c3a7"></a><!-- doxytag: member="irr::core::rect::operator&lt;" ref="abcba5b76777333253cd37ed041e7c3a7" args="(const rect&lt; T &gt; &amp;other) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>&lt; T &gt;::operator&lt; </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1rect.html">rect</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>compares size of rectangles </p>

<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>

</div>
</div>
<a class="anchor" id="ae788c2c726f187fc4681f9ca6eef2b19"></a><!-- doxytag: member="irr::core::rect::operator==" ref="ae788c2c726f187fc4681f9ca6eef2b19" args="(const rect&lt; T &gt; &amp;other) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>&lt; T &gt;::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1rect.html">rect</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>equality operator </p>

<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>

</div>
</div>
<a class="anchor" id="a45c7665e74aed626bb5c01729f206775"></a><!-- doxytag: member="irr::core::rect::repair" ref="a45c7665e74aed626bb5c01729f206775" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>&lt; T &gt;::repair </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>If the lower right corner of the rect is smaller then the upper left, the points are swapped. </p>

<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>

<p>Referenced by <a class="el" href="_i_g_u_i_element_8h_source.html#l00831">irr::gui::IGUIElement::recalculateAbsolutePosition()</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="aa7c7e38bbff5f32992f69b36fc8cec1e"></a><!-- doxytag: member="irr::core::rect::LowerRightCorner" ref="aa7c7e38bbff5f32992f69b36fc8cec1e" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">position2d&lt;T&gt; <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>&lt; T &gt;::<a class="el" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e">LowerRightCorner</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Lower right corner. </p>

<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>

<p>Referenced by <a class="el" href="rect_8h_source.html#l00251">irr::core::rect&lt; f32 &gt;::addInternalPoint()</a>, <a class="el" href="matrix4_8h_source.html#l01913">irr::core::CMatrix4&lt; T &gt;::buildNDCToDCMatrix()</a>, <a class="el" href="rect_8h_source.html#l00126">irr::core::rect&lt; f32 &gt;::clipAgainst()</a>, <a class="el" href="rect_8h_source.html#l00147">irr::core::rect&lt; f32 &gt;::constrainTo()</a>, <a class="el" href="rect_8h_source.html#l00223">irr::core::rect&lt; f32 &gt;::getCenter()</a>, <a class="el" href="rect_8h_source.html#l00190">irr::core::rect&lt; f32 &gt;::getHeight()</a>, <a class="el" href="rect_8h_source.html#l00184">irr::core::rect&lt; f32 &gt;::getWidth()</a>, <a class="el" href="rect_8h_source.html#l00105">irr::core::rect&lt; f32 &gt;::isPointInside()</a>, <a class="el" href="rect_8h_source.html#l00116">irr::core::rect&lt; f32 &gt;::isRectCollided()</a>, <a class="el" href="rect_8h_source.html#l00216">irr::core::rect&lt; f32 &gt;::isValid()</a>, <a class="el" href="rect_8h_source.html#l00084">irr::core::rect&lt; f32 &gt;::operator!=()</a>, <a class="el" href="rect_8h_source.html#l00054">irr::core::rect&lt; f32 &gt;::operator+=()</a>, <a class="el" href="rect_8h_source.html#l00069">irr::core::rect&lt; f32 &gt;::operator-=()</a>, <a class="el" href="rect_8h_source.html#l00077">irr::core::rect&lt; f32 &gt;::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&lt; f32 &gt;::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>

</div>
</div>
<a class="anchor" id="abd47b3a4967b2153e58984d964af6573"></a><!-- doxytag: member="irr::core::rect::UpperLeftCorner" ref="abd47b3a4967b2153e58984d964af6573" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">position2d&lt;T&gt; <a class="el" href="classirr_1_1core_1_1rect.html">irr::core::rect</a>&lt; T &gt;::<a class="el" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573">UpperLeftCorner</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Upper left corner. </p>

<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>

<p>Referenced by <a class="el" href="rect_8h_source.html#l00251">irr::core::rect&lt; f32 &gt;::addInternalPoint()</a>, <a class="el" href="matrix4_8h_source.html#l01913">irr::core::CMatrix4&lt; T &gt;::buildNDCToDCMatrix()</a>, <a class="el" href="rect_8h_source.html#l00126">irr::core::rect&lt; f32 &gt;::clipAgainst()</a>, <a class="el" href="rect_8h_source.html#l00147">irr::core::rect&lt; f32 &gt;::constrainTo()</a>, <a class="el" href="rect_8h_source.html#l00223">irr::core::rect&lt; f32 &gt;::getCenter()</a>, <a class="el" href="rect_8h_source.html#l00190">irr::core::rect&lt; f32 &gt;::getHeight()</a>, <a class="el" href="rect_8h_source.html#l00184">irr::core::rect&lt; f32 &gt;::getWidth()</a>, <a class="el" href="rect_8h_source.html#l00105">irr::core::rect&lt; f32 &gt;::isPointInside()</a>, <a class="el" href="rect_8h_source.html#l00116">irr::core::rect&lt; f32 &gt;::isRectCollided()</a>, <a class="el" href="rect_8h_source.html#l00216">irr::core::rect&lt; f32 &gt;::isValid()</a>, <a class="el" href="rect_8h_source.html#l00084">irr::core::rect&lt; f32 &gt;::operator!=()</a>, <a class="el" href="rect_8h_source.html#l00054">irr::core::rect&lt; f32 &gt;::operator+=()</a>, <a class="el" href="rect_8h_source.html#l00069">irr::core::rect&lt; f32 &gt;::operator-=()</a>, <a class="el" href="rect_8h_source.html#l00077">irr::core::rect&lt; f32 &gt;::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&lt; f32 &gt;::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>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="rect_8h_source.html">rect.h</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceirr.html">irr</a>      </li>
      <li class="navelem"><a class="el" href="namespaceirr_1_1core.html">core</a>      </li>
      <li class="navelem"><a class="el" href="classirr_1_1core_1_1rect.html">rect</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">
<a href="http://irrlicht.sourceforge.net" target="_blank">Irrlicht 
Engine</a> Documentation &copy; 2003-2012 by Nikolaus Gebhardt. Generated on Sun Nov 17 2013 20:18:43 for Irrlicht 3D Engine by
<a href="http://www.doxygen.org/index.html" target="_blank">Doxygen</a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>