aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/doc/html/_s_view_frustum_8h_source.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/irrlicht-1.8.1/doc/html/_s_view_frustum_8h_source.html')
-rw-r--r--src/others/irrlicht-1.8.1/doc/html/_s_view_frustum_8h_source.html444
1 files changed, 444 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/doc/html/_s_view_frustum_8h_source.html b/src/others/irrlicht-1.8.1/doc/html/_s_view_frustum_8h_source.html
new file mode 100644
index 0000000..bfcab04
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/doc/html/_s_view_frustum_8h_source.html
@@ -0,0 +1,444 @@
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: SViewFrustum.h Source File</title>
6
7<link href="tabs.css" rel="stylesheet" type="text/css"/>
8<link href="doxygen.css" rel="stylesheet" type="text/css" />
9<link href="navtree.css" rel="stylesheet" type="text/css"/>
10<script type="text/javascript" src="jquery.js"></script>
11<script type="text/javascript" src="resize.js"></script>
12<script type="text/javascript" src="navtree.js"></script>
13<script type="text/javascript">
14 $(document).ready(initResizable);
15</script>
16<link href="search/search.css" rel="stylesheet" type="text/css"/>
17<script type="text/javascript" src="search/search.js"></script>
18<script type="text/javascript">
19 $(document).ready(function() { searchBox.OnSelectItem(0); });
20</script>
21
22</head>
23<body>
24<div id="top"><!-- do not remove this div! -->
25
26
27<div id="titlearea">
28<table cellspacing="0" cellpadding="0">
29 <tbody>
30 <tr style="height: 56px;">
31
32 <td id="projectlogo"><img alt="Logo" src="irrlichtlogo.png"/></td>
33
34
35 <td style="padding-left: 0.5em;">
36 <div id="projectname">Irrlicht 3D Engine
37
38 </div>
39
40 </td>
41
42
43
44
45 <td> <div id="MSearchBox" class="MSearchBoxInactive">
46 <span class="left">
47 <img id="MSearchSelect" src="search/mag_sel.png"
48 onmouseover="return searchBox.OnSearchSelectShow()"
49 onmouseout="return searchBox.OnSearchSelectHide()"
50 alt=""/>
51 <input type="text" id="MSearchField" value="Search" accesskey="S"
52 onfocus="searchBox.OnSearchFieldFocus(true)"
53 onblur="searchBox.OnSearchFieldFocus(false)"
54 onkeyup="searchBox.OnSearchFieldChange(event)"/>
55 </span><span class="right">
56 <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
57 </span>
58 </div>
59</td>
60
61
62 </tr>
63 </tbody>
64</table>
65</div>
66
67<!-- Generated by Doxygen 1.7.5.1 -->
68<script type="text/javascript">
69var 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('_s_view_frustum_8h.html','');
84</script>
85<div id="doc-content">
86<div class="header">
87 <div class="headertitle">
88<div class="title">SViewFrustum.h</div> </div>
89</div>
90<div class="contents">
91<a href="_s_view_frustum_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Copyright (C) 2002-2012 Nikolaus Gebhardt</span>
92<a name="l00002"></a>00002 <span class="comment">// This file is part of the &quot;Irrlicht Engine&quot;.</span>
93<a name="l00003"></a>00003 <span class="comment">// For conditions of distribution and use, see copyright notice in irrlicht.h</span>
94<a name="l00004"></a>00004
95<a name="l00005"></a>00005 <span class="preprocessor">#ifndef __S_VIEW_FRUSTUM_H_INCLUDED__</span>
96<a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define __S_VIEW_FRUSTUM_H_INCLUDED__</span>
97<a name="l00007"></a>00007 <span class="preprocessor"></span>
98<a name="l00008"></a>00008 <span class="preprocessor">#include &quot;<a class="code" href="plane3d_8h.html">plane3d.h</a>&quot;</span>
99<a name="l00009"></a>00009 <span class="preprocessor">#include &quot;<a class="code" href="vector3d_8h.html">vector3d.h</a>&quot;</span>
100<a name="l00010"></a>00010 <span class="preprocessor">#include &quot;<a class="code" href="line3d_8h.html">line3d.h</a>&quot;</span>
101<a name="l00011"></a>00011 <span class="preprocessor">#include &quot;<a class="code" href="aabbox3d_8h.html">aabbox3d.h</a>&quot;</span>
102<a name="l00012"></a>00012 <span class="preprocessor">#include &quot;<a class="code" href="matrix4_8h.html">matrix4.h</a>&quot;</span>
103<a name="l00013"></a>00013 <span class="preprocessor">#include &quot;<a class="code" href="_i_video_driver_8h.html">IVideoDriver.h</a>&quot;</span>
104<a name="l00014"></a>00014
105<a name="l00015"></a>00015 <span class="keyword">namespace </span>irr
106<a name="l00016"></a>00016 {
107<a name="l00017"></a>00017 <span class="keyword">namespace </span>scene
108<a name="l00018"></a>00018 {
109<a name="l00019"></a>00019
110<a name="l00021"></a>00021
111<a name="l00025"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html">00025</a> <span class="keyword">struct </span><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html" title="Defines the view frustum. That&#39;s the space visible by the camera.">SViewFrustum</a>
112<a name="l00026"></a>00026 {
113<a name="l00027"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0">00027</a> <span class="keyword">enum</span> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0">VFPLANES</a>
114<a name="l00028"></a>00028 {
115<a name="l00030"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a33c11636c0cf3a29df16551fb3222f89">00030</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a33c11636c0cf3a29df16551fb3222f89" title="Far plane of the frustum. That is the plane farest away from the eye.">VF_FAR_PLANE</a> = 0,
116<a name="l00032"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0ad4e37002c2f3f5c9aa7219ca74ffb48e">00032</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0ad4e37002c2f3f5c9aa7219ca74ffb48e" title="Near plane of the frustum. That is the plane nearest to the eye.">VF_NEAR_PLANE</a>,
117<a name="l00034"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a4d611f15cd215819287e533b45715d5c">00034</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a4d611f15cd215819287e533b45715d5c" title="Left plane of the frustum.">VF_LEFT_PLANE</a>,
118<a name="l00036"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0acc02c8b170e35f1416f1511646b051aa">00036</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0acc02c8b170e35f1416f1511646b051aa" title="Right plane of the frustum.">VF_RIGHT_PLANE</a>,
119<a name="l00038"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0aa230be71193da774ddcb735ec7b10dd1">00038</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0aa230be71193da774ddcb735ec7b10dd1" title="Bottom plane of the frustum.">VF_BOTTOM_PLANE</a>,
120<a name="l00040"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0adc6f550cf3890b19837cd8f0d7b1020a">00040</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0adc6f550cf3890b19837cd8f0d7b1020a" title="Top plane of the frustum.">VF_TOP_PLANE</a>,
121<a name="l00041"></a>00041
122<a name="l00043"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a6c3c4cb8060a23a2365cf1df46fcefd7">00043</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a6c3c4cb8060a23a2365cf1df46fcefd7" title="Amount of planes enclosing the view frustum. Should be 6.">VF_PLANE_COUNT</a>
123<a name="l00044"></a>00044 };
124<a name="l00045"></a>00045
125<a name="l00046"></a>00046
126<a name="l00048"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a7052e88c612bd1239115929e94e6210d">00048</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a7052e88c612bd1239115929e94e6210d" title="Default Constructor.">SViewFrustum</a>() {}
127<a name="l00049"></a>00049
128<a name="l00051"></a>00051 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a7052e88c612bd1239115929e94e6210d" title="Default Constructor.">SViewFrustum</a>(<span class="keyword">const</span> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html" title="Defines the view frustum. That&#39;s the space visible by the camera.">SViewFrustum</a>&amp; other);
129<a name="l00052"></a>00052
130<a name="l00054"></a>00054 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a7052e88c612bd1239115929e94e6210d" title="Default Constructor.">SViewFrustum</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1_c_matrix4.html" title="4x4 matrix. Mostly used as transformation matrix for 3d calculations.">core::matrix4</a>&amp; mat);
131<a name="l00055"></a>00055
132<a name="l00057"></a>00057 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a2517bde9292aa26119d75b9ff0b92833" title="This constructor creates a view frustum based on a projection and/or view matrix.">setFrom</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1_c_matrix4.html" title="4x4 matrix. Mostly used as transformation matrix for 3d calculations.">core::matrix4</a>&amp; mat);
133<a name="l00058"></a>00058
134<a name="l00060"></a>00060
135<a name="l00061"></a>00061 <span class="keywordtype">void</span> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#aeabadaf532f08ba3cb98b897ff0619f2" title="transforms the frustum by the matrix">transform</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1_c_matrix4.html" title="4x4 matrix. Mostly used as transformation matrix for 3d calculations.">core::matrix4</a>&amp; mat);
136<a name="l00062"></a>00062
137<a name="l00064"></a>00064 <a class="code" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a99712510130276f440e2c399dde7e5f3" title="returns the point which is on the far left upper corner inside the the view frustum.">getFarLeftUp</a>() <span class="keyword">const</span>;
138<a name="l00065"></a>00065
139<a name="l00067"></a>00067 <a class="code" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a9a79eb4430af41031850adc7a0e0e3cf" title="returns the point which is on the far left bottom corner inside the the view frustum.">getFarLeftDown</a>() <span class="keyword">const</span>;
140<a name="l00068"></a>00068
141<a name="l00070"></a>00070 <a class="code" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a1b7f3b1cd4da4ea886b77d674e1c17dd" title="returns the point which is on the far right top corner inside the the view frustum.">getFarRightUp</a>() <span class="keyword">const</span>;
142<a name="l00071"></a>00071
143<a name="l00073"></a>00073 <a class="code" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#add04c29bfa22d94be96c92ecff5420b9" title="returns the point which is on the far right bottom corner inside the the view frustum.">getFarRightDown</a>() <span class="keyword">const</span>;
144<a name="l00074"></a>00074
145<a name="l00076"></a>00076 <a class="code" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#af240a13958215ce0cbe6ccd75301828a" title="returns the point which is on the near left upper corner inside the the view frustum.">getNearLeftUp</a>() <span class="keyword">const</span>;
146<a name="l00077"></a>00077
147<a name="l00079"></a>00079 <a class="code" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#addbe9237ea17c93ae60bc4c27e862a76" title="returns the point which is on the near left bottom corner inside the the view frustum.">getNearLeftDown</a>() <span class="keyword">const</span>;
148<a name="l00080"></a>00080
149<a name="l00082"></a>00082 <a class="code" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a4fe9e7b51a3f7f7235ef0f895bf32054" title="returns the point which is on the near right top corner inside the the view frustum.">getNearRightUp</a>() <span class="keyword">const</span>;
150<a name="l00083"></a>00083
151<a name="l00085"></a>00085 <a class="code" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a74e011d85fb41206b5dd0af76635dc00" title="returns the point which is on the near right bottom corner inside the the view frustum.">getNearRightDown</a>() <span class="keyword">const</span>;
152<a name="l00086"></a>00086
153<a name="l00088"></a>00088 <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1aabbox3d.html">core::aabbox3d&lt;f32&gt;</a> &amp;<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a4328fe06bedd409ae20e9efc64e68706" title="returns a bounding box enclosing the whole view frustum">getBoundingBox</a>() <span class="keyword">const</span>;
154<a name="l00089"></a>00089
155<a name="l00091"></a>00091 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a458eb19a23bcad50da0f9d3163e3621b" title="recalculates the bounding box member based on the planes">recalculateBoundingBox</a>();
156<a name="l00092"></a>00092
157<a name="l00094"></a>00094 <a class="code" href="classirr_1_1core_1_1_c_matrix4.html" title="4x4 matrix. Mostly used as transformation matrix for 3d calculations.">core::matrix4</a>&amp; <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#acf8edd203e7479d2b444ed548075ffa6" title="get the given state&#39;s matrix based on frustum E_TRANSFORMATION_STATE">getTransform</a>( <a class="code" href="namespaceirr_1_1video.html#a15b57657a320243be03ae6f66fcff43d" title="enumeration for geometry transformation states">video::E_TRANSFORMATION_STATE</a> state);
158<a name="l00095"></a>00095
159<a name="l00097"></a>00097 <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1_c_matrix4.html" title="4x4 matrix. Mostly used as transformation matrix for 3d calculations.">core::matrix4</a>&amp; <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#acf8edd203e7479d2b444ed548075ffa6" title="get the given state&#39;s matrix based on frustum E_TRANSFORMATION_STATE">getTransform</a>( <a class="code" href="namespaceirr_1_1video.html#a15b57657a320243be03ae6f66fcff43d" title="enumeration for geometry transformation states">video::E_TRANSFORMATION_STATE</a> state) <span class="keyword">const</span>;
160<a name="l00098"></a>00098
161<a name="l00100"></a>00100
162<a name="l00101"></a>00101 <span class="keywordtype">bool</span> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ace0b4c93dcd1d4e6ae50615b457f1851" title="clips a line to the view frustum.">clipLine</a>(<a class="code" href="classirr_1_1core_1_1line3d.html" title="3D line between two points with intersection methods.">core::line3d&lt;f32&gt;</a>&amp; line) <span class="keyword">const</span>;
163<a name="l00102"></a>00102
164<a name="l00104"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a77726fa084f416d69f058a7b2f887545">00104</a> <a class="code" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a77726fa084f416d69f058a7b2f887545" title="the position of the camera">cameraPosition</a>;
165<a name="l00105"></a>00105
166<a name="l00107"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2">00107</a> <a class="code" href="classirr_1_1core_1_1plane3d.html">core::plane3d&lt;f32&gt;</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a6c3c4cb8060a23a2365cf1df46fcefd7" title="Amount of planes enclosing the view frustum. Should be 6.">VF_PLANE_COUNT</a>];
167<a name="l00108"></a>00108
168<a name="l00110"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ad4c8605ad3494093e3e5860e0332fe8a">00110</a> <a class="code" href="classirr_1_1core_1_1aabbox3d.html">core::aabbox3d&lt;f32&gt;</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ad4c8605ad3494093e3e5860e0332fe8a" title="bounding box around the view frustum">boundingBox</a>;
169<a name="l00111"></a>00111
170<a name="l00112"></a>00112 <span class="keyword">private</span>:
171<a name="l00114"></a>00114 <span class="keyword">enum</span> E_TRANSFORMATION_STATE_FRUSTUM
172<a name="l00115"></a>00115 {
173<a name="l00116"></a>00116 ETS_VIEW = 0,
174<a name="l00117"></a>00117 ETS_PROJECTION = 1,
175<a name="l00118"></a>00118 ETS_COUNT_FRUSTUM
176<a name="l00119"></a>00119 };
177<a name="l00120"></a>00120
178<a name="l00122"></a>00122 <a class="code" href="classirr_1_1core_1_1_c_matrix4.html" title="4x4 matrix. Mostly used as transformation matrix for 3d calculations.">core::matrix4</a> Matrices[ETS_COUNT_FRUSTUM];
179<a name="l00123"></a>00123 };
180<a name="l00124"></a>00124
181<a name="l00125"></a>00125
182<a name="l00129"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#aa7cfed3ee9feee79efe02d26f3b14b0c">00129</a> <span class="keyword">inline</span> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a7052e88c612bd1239115929e94e6210d" title="Default Constructor.">SViewFrustum::SViewFrustum</a>(<span class="keyword">const</span> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html" title="Defines the view frustum. That&#39;s the space visible by the camera.">SViewFrustum</a>&amp; other)
183<a name="l00130"></a>00130 {
184<a name="l00131"></a>00131 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a77726fa084f416d69f058a7b2f887545" title="the position of the camera">cameraPosition</a>=other.<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a77726fa084f416d69f058a7b2f887545" title="the position of the camera">cameraPosition</a>;
185<a name="l00132"></a>00132 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ad4c8605ad3494093e3e5860e0332fe8a" title="bounding box around the view frustum">boundingBox</a>=other.<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ad4c8605ad3494093e3e5860e0332fe8a" title="bounding box around the view frustum">boundingBox</a>;
186<a name="l00133"></a>00133
187<a name="l00134"></a>00134 <a class="code" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> i;
188<a name="l00135"></a>00135 <span class="keywordflow">for</span> (i=0; i&lt;<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a6c3c4cb8060a23a2365cf1df46fcefd7" title="Amount of planes enclosing the view frustum. Should be 6.">VF_PLANE_COUNT</a>; ++i)
189<a name="l00136"></a>00136 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[i]=other.<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[i];
190<a name="l00137"></a>00137
191<a name="l00138"></a>00138 for (i=0; i&lt;ETS_COUNT_FRUSTUM; ++i)
192<a name="l00139"></a>00139 Matrices[i]=other.Matrices[i];
193<a name="l00140"></a>00140 }
194<a name="l00141"></a>00141
195<a name="l00142"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#acfcbb01f1e26f73ee1d9c7695302a508">00142</a> <span class="keyword">inline</span> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a7052e88c612bd1239115929e94e6210d" title="Default Constructor.">SViewFrustum::SViewFrustum</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1_c_matrix4.html" title="4x4 matrix. Mostly used as transformation matrix for 3d calculations.">core::matrix4</a>&amp; mat)
196<a name="l00143"></a>00143 {
197<a name="l00144"></a>00144 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a2517bde9292aa26119d75b9ff0b92833" title="This constructor creates a view frustum based on a projection and/or view matrix.">setFrom</a> ( mat );
198<a name="l00145"></a>00145 }
199<a name="l00146"></a>00146
200<a name="l00147"></a>00147
201<a name="l00148"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#aeabadaf532f08ba3cb98b897ff0619f2">00148</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#aeabadaf532f08ba3cb98b897ff0619f2" title="transforms the frustum by the matrix">SViewFrustum::transform</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1_c_matrix4.html" title="4x4 matrix. Mostly used as transformation matrix for 3d calculations.">core::matrix4</a>&amp; mat)
202<a name="l00149"></a>00149 {
203<a name="l00150"></a>00150 <span class="keywordflow">for</span> (<a class="code" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> i=0; i&lt;<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a6c3c4cb8060a23a2365cf1df46fcefd7" title="Amount of planes enclosing the view frustum. Should be 6.">VF_PLANE_COUNT</a>; ++i)
204<a name="l00151"></a>00151 mat.<a class="code" href="classirr_1_1core_1_1_c_matrix4.html#ac4f0d4156d573d8b73eb51dce76e094e" title="Transforms a plane by this matrix.">transformPlane</a>(<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[i]);
205<a name="l00152"></a>00152
206<a name="l00153"></a>00153 mat.<a class="code" href="classirr_1_1core_1_1_c_matrix4.html#aa6bb8b39114749d70e51bd1b90bce0a1" title="Transforms the vector by this matrix.">transformVect</a>(<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a77726fa084f416d69f058a7b2f887545" title="the position of the camera">cameraPosition</a>);
207<a name="l00154"></a>00154 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a458eb19a23bcad50da0f9d3163e3621b" title="recalculates the bounding box member based on the planes">recalculateBoundingBox</a>();
208<a name="l00155"></a>00155 }
209<a name="l00156"></a>00156
210<a name="l00157"></a>00157
211<a name="l00158"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a99712510130276f440e2c399dde7e5f3">00158</a> <span class="keyword">inline</span> <a class="code" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a99712510130276f440e2c399dde7e5f3" title="returns the point which is on the far left upper corner inside the the view frustum.">SViewFrustum::getFarLeftUp</a>()<span class="keyword"> const</span>
212<a name="l00159"></a>00159 <span class="keyword"> </span>{
213<a name="l00160"></a>00160 <a class="code" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> p;
214<a name="l00161"></a>00161 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a33c11636c0cf3a29df16551fb3222f89" title="Far plane of the frustum. That is the plane farest away from the eye.">scene::SViewFrustum::VF_FAR_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#a42591d9bdd8dd03bb6b14836b6e5af7b" title="Get the intersection point with two other planes if there is one.">getIntersectionWithPlanes</a>(
215<a name="l00162"></a>00162 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0adc6f550cf3890b19837cd8f0d7b1020a" title="Top plane of the frustum.">scene::SViewFrustum::VF_TOP_PLANE</a>],
216<a name="l00163"></a>00163 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a4d611f15cd215819287e533b45715d5c" title="Left plane of the frustum.">scene::SViewFrustum::VF_LEFT_PLANE</a>], p);
217<a name="l00164"></a>00164
218<a name="l00165"></a>00165 <span class="keywordflow">return</span> p;
219<a name="l00166"></a>00166 }
220<a name="l00167"></a>00167
221<a name="l00168"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a9a79eb4430af41031850adc7a0e0e3cf">00168</a> <span class="keyword">inline</span> <a class="code" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a9a79eb4430af41031850adc7a0e0e3cf" title="returns the point which is on the far left bottom corner inside the the view frustum.">SViewFrustum::getFarLeftDown</a>()<span class="keyword"> const</span>
222<a name="l00169"></a>00169 <span class="keyword"> </span>{
223<a name="l00170"></a>00170 <a class="code" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> p;
224<a name="l00171"></a>00171 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a33c11636c0cf3a29df16551fb3222f89" title="Far plane of the frustum. That is the plane farest away from the eye.">scene::SViewFrustum::VF_FAR_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#a42591d9bdd8dd03bb6b14836b6e5af7b" title="Get the intersection point with two other planes if there is one.">getIntersectionWithPlanes</a>(
225<a name="l00172"></a>00172 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0aa230be71193da774ddcb735ec7b10dd1" title="Bottom plane of the frustum.">scene::SViewFrustum::VF_BOTTOM_PLANE</a>],
226<a name="l00173"></a>00173 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a4d611f15cd215819287e533b45715d5c" title="Left plane of the frustum.">scene::SViewFrustum::VF_LEFT_PLANE</a>], p);
227<a name="l00174"></a>00174
228<a name="l00175"></a>00175 <span class="keywordflow">return</span> p;
229<a name="l00176"></a>00176 }
230<a name="l00177"></a>00177
231<a name="l00178"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a1b7f3b1cd4da4ea886b77d674e1c17dd">00178</a> <span class="keyword">inline</span> <a class="code" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a1b7f3b1cd4da4ea886b77d674e1c17dd" title="returns the point which is on the far right top corner inside the the view frustum.">SViewFrustum::getFarRightUp</a>()<span class="keyword"> const</span>
232<a name="l00179"></a>00179 <span class="keyword"> </span>{
233<a name="l00180"></a>00180 <a class="code" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> p;
234<a name="l00181"></a>00181 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a33c11636c0cf3a29df16551fb3222f89" title="Far plane of the frustum. That is the plane farest away from the eye.">scene::SViewFrustum::VF_FAR_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#a42591d9bdd8dd03bb6b14836b6e5af7b" title="Get the intersection point with two other planes if there is one.">getIntersectionWithPlanes</a>(
235<a name="l00182"></a>00182 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0adc6f550cf3890b19837cd8f0d7b1020a" title="Top plane of the frustum.">scene::SViewFrustum::VF_TOP_PLANE</a>],
236<a name="l00183"></a>00183 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0acc02c8b170e35f1416f1511646b051aa" title="Right plane of the frustum.">scene::SViewFrustum::VF_RIGHT_PLANE</a>], p);
237<a name="l00184"></a>00184
238<a name="l00185"></a>00185 <span class="keywordflow">return</span> p;
239<a name="l00186"></a>00186 }
240<a name="l00187"></a>00187
241<a name="l00188"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#add04c29bfa22d94be96c92ecff5420b9">00188</a> <span class="keyword">inline</span> <a class="code" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#add04c29bfa22d94be96c92ecff5420b9" title="returns the point which is on the far right bottom corner inside the the view frustum.">SViewFrustum::getFarRightDown</a>()<span class="keyword"> const</span>
242<a name="l00189"></a>00189 <span class="keyword"> </span>{
243<a name="l00190"></a>00190 <a class="code" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> p;
244<a name="l00191"></a>00191 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a33c11636c0cf3a29df16551fb3222f89" title="Far plane of the frustum. That is the plane farest away from the eye.">scene::SViewFrustum::VF_FAR_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#a42591d9bdd8dd03bb6b14836b6e5af7b" title="Get the intersection point with two other planes if there is one.">getIntersectionWithPlanes</a>(
245<a name="l00192"></a>00192 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0aa230be71193da774ddcb735ec7b10dd1" title="Bottom plane of the frustum.">scene::SViewFrustum::VF_BOTTOM_PLANE</a>],
246<a name="l00193"></a>00193 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0acc02c8b170e35f1416f1511646b051aa" title="Right plane of the frustum.">scene::SViewFrustum::VF_RIGHT_PLANE</a>], p);
247<a name="l00194"></a>00194
248<a name="l00195"></a>00195 <span class="keywordflow">return</span> p;
249<a name="l00196"></a>00196 }
250<a name="l00197"></a>00197
251<a name="l00198"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#af240a13958215ce0cbe6ccd75301828a">00198</a> <span class="keyword">inline</span> <a class="code" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#af240a13958215ce0cbe6ccd75301828a" title="returns the point which is on the near left upper corner inside the the view frustum.">SViewFrustum::getNearLeftUp</a>()<span class="keyword"> const</span>
252<a name="l00199"></a>00199 <span class="keyword"> </span>{
253<a name="l00200"></a>00200 <a class="code" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> p;
254<a name="l00201"></a>00201 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0ad4e37002c2f3f5c9aa7219ca74ffb48e" title="Near plane of the frustum. That is the plane nearest to the eye.">scene::SViewFrustum::VF_NEAR_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#a42591d9bdd8dd03bb6b14836b6e5af7b" title="Get the intersection point with two other planes if there is one.">getIntersectionWithPlanes</a>(
255<a name="l00202"></a>00202 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0adc6f550cf3890b19837cd8f0d7b1020a" title="Top plane of the frustum.">scene::SViewFrustum::VF_TOP_PLANE</a>],
256<a name="l00203"></a>00203 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a4d611f15cd215819287e533b45715d5c" title="Left plane of the frustum.">scene::SViewFrustum::VF_LEFT_PLANE</a>], p);
257<a name="l00204"></a>00204
258<a name="l00205"></a>00205 <span class="keywordflow">return</span> p;
259<a name="l00206"></a>00206 }
260<a name="l00207"></a>00207
261<a name="l00208"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#addbe9237ea17c93ae60bc4c27e862a76">00208</a> <span class="keyword">inline</span> <a class="code" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#addbe9237ea17c93ae60bc4c27e862a76" title="returns the point which is on the near left bottom corner inside the the view frustum.">SViewFrustum::getNearLeftDown</a>()<span class="keyword"> const</span>
262<a name="l00209"></a>00209 <span class="keyword"> </span>{
263<a name="l00210"></a>00210 <a class="code" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> p;
264<a name="l00211"></a>00211 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0ad4e37002c2f3f5c9aa7219ca74ffb48e" title="Near plane of the frustum. That is the plane nearest to the eye.">scene::SViewFrustum::VF_NEAR_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#a42591d9bdd8dd03bb6b14836b6e5af7b" title="Get the intersection point with two other planes if there is one.">getIntersectionWithPlanes</a>(
265<a name="l00212"></a>00212 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0aa230be71193da774ddcb735ec7b10dd1" title="Bottom plane of the frustum.">scene::SViewFrustum::VF_BOTTOM_PLANE</a>],
266<a name="l00213"></a>00213 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a4d611f15cd215819287e533b45715d5c" title="Left plane of the frustum.">scene::SViewFrustum::VF_LEFT_PLANE</a>], p);
267<a name="l00214"></a>00214
268<a name="l00215"></a>00215 <span class="keywordflow">return</span> p;
269<a name="l00216"></a>00216 }
270<a name="l00217"></a>00217
271<a name="l00218"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a4fe9e7b51a3f7f7235ef0f895bf32054">00218</a> <span class="keyword">inline</span> <a class="code" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a4fe9e7b51a3f7f7235ef0f895bf32054" title="returns the point which is on the near right top corner inside the the view frustum.">SViewFrustum::getNearRightUp</a>()<span class="keyword"> const</span>
272<a name="l00219"></a>00219 <span class="keyword"> </span>{
273<a name="l00220"></a>00220 <a class="code" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> p;
274<a name="l00221"></a>00221 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0ad4e37002c2f3f5c9aa7219ca74ffb48e" title="Near plane of the frustum. That is the plane nearest to the eye.">scene::SViewFrustum::VF_NEAR_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#a42591d9bdd8dd03bb6b14836b6e5af7b" title="Get the intersection point with two other planes if there is one.">getIntersectionWithPlanes</a>(
275<a name="l00222"></a>00222 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0adc6f550cf3890b19837cd8f0d7b1020a" title="Top plane of the frustum.">scene::SViewFrustum::VF_TOP_PLANE</a>],
276<a name="l00223"></a>00223 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0acc02c8b170e35f1416f1511646b051aa" title="Right plane of the frustum.">scene::SViewFrustum::VF_RIGHT_PLANE</a>], p);
277<a name="l00224"></a>00224
278<a name="l00225"></a>00225 <span class="keywordflow">return</span> p;
279<a name="l00226"></a>00226 }
280<a name="l00227"></a>00227
281<a name="l00228"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a74e011d85fb41206b5dd0af76635dc00">00228</a> <span class="keyword">inline</span> <a class="code" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a74e011d85fb41206b5dd0af76635dc00" title="returns the point which is on the near right bottom corner inside the the view frustum.">SViewFrustum::getNearRightDown</a>()<span class="keyword"> const</span>
282<a name="l00229"></a>00229 <span class="keyword"> </span>{
283<a name="l00230"></a>00230 <a class="code" href="classirr_1_1core_1_1vector3d.html">core::vector3df</a> p;
284<a name="l00231"></a>00231 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0ad4e37002c2f3f5c9aa7219ca74ffb48e" title="Near plane of the frustum. That is the plane nearest to the eye.">scene::SViewFrustum::VF_NEAR_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#a42591d9bdd8dd03bb6b14836b6e5af7b" title="Get the intersection point with two other planes if there is one.">getIntersectionWithPlanes</a>(
285<a name="l00232"></a>00232 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0aa230be71193da774ddcb735ec7b10dd1" title="Bottom plane of the frustum.">scene::SViewFrustum::VF_BOTTOM_PLANE</a>],
286<a name="l00233"></a>00233 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0acc02c8b170e35f1416f1511646b051aa" title="Right plane of the frustum.">scene::SViewFrustum::VF_RIGHT_PLANE</a>], p);
287<a name="l00234"></a>00234
288<a name="l00235"></a>00235 <span class="keywordflow">return</span> p;
289<a name="l00236"></a>00236 }
290<a name="l00237"></a>00237
291<a name="l00238"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a4328fe06bedd409ae20e9efc64e68706">00238</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1aabbox3d.html">core::aabbox3d&lt;f32&gt;</a> &amp;<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a4328fe06bedd409ae20e9efc64e68706" title="returns a bounding box enclosing the whole view frustum">SViewFrustum::getBoundingBox</a>()<span class="keyword"> const</span>
292<a name="l00239"></a>00239 <span class="keyword"> </span>{
293<a name="l00240"></a>00240 <span class="keywordflow">return</span> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ad4c8605ad3494093e3e5860e0332fe8a" title="bounding box around the view frustum">boundingBox</a>;
294<a name="l00241"></a>00241 }
295<a name="l00242"></a>00242
296<a name="l00243"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a458eb19a23bcad50da0f9d3163e3621b">00243</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a458eb19a23bcad50da0f9d3163e3621b" title="recalculates the bounding box member based on the planes">SViewFrustum::recalculateBoundingBox</a>()
297<a name="l00244"></a>00244 {
298<a name="l00245"></a>00245 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ad4c8605ad3494093e3e5860e0332fe8a" title="bounding box around the view frustum">boundingBox</a>.<a class="code" href="classirr_1_1core_1_1aabbox3d.html#afc718e96ed11aa71a30311d32bfc885a" title="Resets the bounding box to a one-point box.">reset</a> ( <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a77726fa084f416d69f058a7b2f887545" title="the position of the camera">cameraPosition</a> );
299<a name="l00246"></a>00246
300<a name="l00247"></a>00247 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ad4c8605ad3494093e3e5860e0332fe8a" title="bounding box around the view frustum">boundingBox</a>.<a class="code" href="classirr_1_1core_1_1aabbox3d.html#a49e3765fd2f40a115f8f28bd74d62ccf" title="Adds a point to the bounding box.">addInternalPoint</a>(<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a99712510130276f440e2c399dde7e5f3" title="returns the point which is on the far left upper corner inside the the view frustum.">getFarLeftUp</a>());
301<a name="l00248"></a>00248 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ad4c8605ad3494093e3e5860e0332fe8a" title="bounding box around the view frustum">boundingBox</a>.<a class="code" href="classirr_1_1core_1_1aabbox3d.html#a49e3765fd2f40a115f8f28bd74d62ccf" title="Adds a point to the bounding box.">addInternalPoint</a>(<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a1b7f3b1cd4da4ea886b77d674e1c17dd" title="returns the point which is on the far right top corner inside the the view frustum.">getFarRightUp</a>());
302<a name="l00249"></a>00249 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ad4c8605ad3494093e3e5860e0332fe8a" title="bounding box around the view frustum">boundingBox</a>.<a class="code" href="classirr_1_1core_1_1aabbox3d.html#a49e3765fd2f40a115f8f28bd74d62ccf" title="Adds a point to the bounding box.">addInternalPoint</a>(<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a9a79eb4430af41031850adc7a0e0e3cf" title="returns the point which is on the far left bottom corner inside the the view frustum.">getFarLeftDown</a>());
303<a name="l00250"></a>00250 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ad4c8605ad3494093e3e5860e0332fe8a" title="bounding box around the view frustum">boundingBox</a>.<a class="code" href="classirr_1_1core_1_1aabbox3d.html#a49e3765fd2f40a115f8f28bd74d62ccf" title="Adds a point to the bounding box.">addInternalPoint</a>(<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#add04c29bfa22d94be96c92ecff5420b9" title="returns the point which is on the far right bottom corner inside the the view frustum.">getFarRightDown</a>());
304<a name="l00251"></a>00251 }
305<a name="l00252"></a>00252
306<a name="l00255"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a2517bde9292aa26119d75b9ff0b92833">00255</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a2517bde9292aa26119d75b9ff0b92833" title="This constructor creates a view frustum based on a projection and/or view matrix.">SViewFrustum::setFrom</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1_c_matrix4.html" title="4x4 matrix. Mostly used as transformation matrix for 3d calculations.">core::matrix4</a>&amp; mat)
307<a name="l00256"></a>00256 {
308<a name="l00257"></a>00257 <span class="comment">// left clipping plane</span>
309<a name="l00258"></a>00258 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a4d611f15cd215819287e533b45715d5c" title="Left plane of the frustum.">VF_LEFT_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#a932ca6e90e55cdceedb4f15ab706b719" title="Normal vector of the plane.">Normal</a>.X = mat[3 ] + mat[0];
310<a name="l00259"></a>00259 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a4d611f15cd215819287e533b45715d5c" title="Left plane of the frustum.">VF_LEFT_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#a932ca6e90e55cdceedb4f15ab706b719" title="Normal vector of the plane.">Normal</a>.Y = mat[7 ] + mat[4];
311<a name="l00260"></a>00260 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a4d611f15cd215819287e533b45715d5c" title="Left plane of the frustum.">VF_LEFT_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#a932ca6e90e55cdceedb4f15ab706b719" title="Normal vector of the plane.">Normal</a>.Z = mat[11] + mat[8];
312<a name="l00261"></a>00261 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a4d611f15cd215819287e533b45715d5c" title="Left plane of the frustum.">VF_LEFT_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#afa304cf77cf1a3aae2351d5add5606a8" title="Distance from origin.">D</a> = mat[15] + mat[12];
313<a name="l00262"></a>00262
314<a name="l00263"></a>00263 <span class="comment">// right clipping plane</span>
315<a name="l00264"></a>00264 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0acc02c8b170e35f1416f1511646b051aa" title="Right plane of the frustum.">VF_RIGHT_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#a932ca6e90e55cdceedb4f15ab706b719" title="Normal vector of the plane.">Normal</a>.X = mat[3 ] - mat[0];
316<a name="l00265"></a>00265 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0acc02c8b170e35f1416f1511646b051aa" title="Right plane of the frustum.">VF_RIGHT_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#a932ca6e90e55cdceedb4f15ab706b719" title="Normal vector of the plane.">Normal</a>.Y = mat[7 ] - mat[4];
317<a name="l00266"></a>00266 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0acc02c8b170e35f1416f1511646b051aa" title="Right plane of the frustum.">VF_RIGHT_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#a932ca6e90e55cdceedb4f15ab706b719" title="Normal vector of the plane.">Normal</a>.Z = mat[11] - mat[8];
318<a name="l00267"></a>00267 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0acc02c8b170e35f1416f1511646b051aa" title="Right plane of the frustum.">VF_RIGHT_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#afa304cf77cf1a3aae2351d5add5606a8" title="Distance from origin.">D</a> = mat[15] - mat[12];
319<a name="l00268"></a>00268
320<a name="l00269"></a>00269 <span class="comment">// top clipping plane</span>
321<a name="l00270"></a>00270 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0adc6f550cf3890b19837cd8f0d7b1020a" title="Top plane of the frustum.">VF_TOP_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#a932ca6e90e55cdceedb4f15ab706b719" title="Normal vector of the plane.">Normal</a>.X = mat[3 ] - mat[1];
322<a name="l00271"></a>00271 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0adc6f550cf3890b19837cd8f0d7b1020a" title="Top plane of the frustum.">VF_TOP_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#a932ca6e90e55cdceedb4f15ab706b719" title="Normal vector of the plane.">Normal</a>.Y = mat[7 ] - mat[5];
323<a name="l00272"></a>00272 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0adc6f550cf3890b19837cd8f0d7b1020a" title="Top plane of the frustum.">VF_TOP_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#a932ca6e90e55cdceedb4f15ab706b719" title="Normal vector of the plane.">Normal</a>.Z = mat[11] - mat[9];
324<a name="l00273"></a>00273 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0adc6f550cf3890b19837cd8f0d7b1020a" title="Top plane of the frustum.">VF_TOP_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#afa304cf77cf1a3aae2351d5add5606a8" title="Distance from origin.">D</a> = mat[15] - mat[13];
325<a name="l00274"></a>00274
326<a name="l00275"></a>00275 <span class="comment">// bottom clipping plane</span>
327<a name="l00276"></a>00276 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0aa230be71193da774ddcb735ec7b10dd1" title="Bottom plane of the frustum.">VF_BOTTOM_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#a932ca6e90e55cdceedb4f15ab706b719" title="Normal vector of the plane.">Normal</a>.X = mat[3 ] + mat[1];
328<a name="l00277"></a>00277 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0aa230be71193da774ddcb735ec7b10dd1" title="Bottom plane of the frustum.">VF_BOTTOM_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#a932ca6e90e55cdceedb4f15ab706b719" title="Normal vector of the plane.">Normal</a>.Y = mat[7 ] + mat[5];
329<a name="l00278"></a>00278 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0aa230be71193da774ddcb735ec7b10dd1" title="Bottom plane of the frustum.">VF_BOTTOM_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#a932ca6e90e55cdceedb4f15ab706b719" title="Normal vector of the plane.">Normal</a>.Z = mat[11] + mat[9];
330<a name="l00279"></a>00279 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0aa230be71193da774ddcb735ec7b10dd1" title="Bottom plane of the frustum.">VF_BOTTOM_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#afa304cf77cf1a3aae2351d5add5606a8" title="Distance from origin.">D</a> = mat[15] + mat[13];
331<a name="l00280"></a>00280
332<a name="l00281"></a>00281 <span class="comment">// far clipping plane</span>
333<a name="l00282"></a>00282 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a33c11636c0cf3a29df16551fb3222f89" title="Far plane of the frustum. That is the plane farest away from the eye.">VF_FAR_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#a932ca6e90e55cdceedb4f15ab706b719" title="Normal vector of the plane.">Normal</a>.X = mat[3 ] - mat[2];
334<a name="l00283"></a>00283 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a33c11636c0cf3a29df16551fb3222f89" title="Far plane of the frustum. That is the plane farest away from the eye.">VF_FAR_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#a932ca6e90e55cdceedb4f15ab706b719" title="Normal vector of the plane.">Normal</a>.Y = mat[7 ] - mat[6];
335<a name="l00284"></a>00284 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a33c11636c0cf3a29df16551fb3222f89" title="Far plane of the frustum. That is the plane farest away from the eye.">VF_FAR_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#a932ca6e90e55cdceedb4f15ab706b719" title="Normal vector of the plane.">Normal</a>.Z = mat[11] - mat[10];
336<a name="l00285"></a>00285 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a33c11636c0cf3a29df16551fb3222f89" title="Far plane of the frustum. That is the plane farest away from the eye.">VF_FAR_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#afa304cf77cf1a3aae2351d5add5606a8" title="Distance from origin.">D</a> = mat[15] - mat[14];
337<a name="l00286"></a>00286
338<a name="l00287"></a>00287 <span class="comment">// near clipping plane</span>
339<a name="l00288"></a>00288 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0ad4e37002c2f3f5c9aa7219ca74ffb48e" title="Near plane of the frustum. That is the plane nearest to the eye.">VF_NEAR_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#a932ca6e90e55cdceedb4f15ab706b719" title="Normal vector of the plane.">Normal</a>.X = mat[2];
340<a name="l00289"></a>00289 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0ad4e37002c2f3f5c9aa7219ca74ffb48e" title="Near plane of the frustum. That is the plane nearest to the eye.">VF_NEAR_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#a932ca6e90e55cdceedb4f15ab706b719" title="Normal vector of the plane.">Normal</a>.Y = mat[6];
341<a name="l00290"></a>00290 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0ad4e37002c2f3f5c9aa7219ca74ffb48e" title="Near plane of the frustum. That is the plane nearest to the eye.">VF_NEAR_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#a932ca6e90e55cdceedb4f15ab706b719" title="Normal vector of the plane.">Normal</a>.Z = mat[10];
342<a name="l00291"></a>00291 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0ad4e37002c2f3f5c9aa7219ca74ffb48e" title="Near plane of the frustum. That is the plane nearest to the eye.">VF_NEAR_PLANE</a>].<a class="code" href="classirr_1_1core_1_1plane3d.html#afa304cf77cf1a3aae2351d5add5606a8" title="Distance from origin.">D</a> = mat[14];
343<a name="l00292"></a>00292
344<a name="l00293"></a>00293 <span class="comment">// normalize normals</span>
345<a name="l00294"></a>00294 <a class="code" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> i;
346<a name="l00295"></a>00295 <span class="keywordflow">for</span> ( i=0; i != <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a6c3c4cb8060a23a2365cf1df46fcefd7" title="Amount of planes enclosing the view frustum. Should be 6.">VF_PLANE_COUNT</a>; ++i)
347<a name="l00296"></a>00296 {
348<a name="l00297"></a>00297 <span class="keyword">const</span> <a class="code" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a> len = -<a class="code" href="namespaceirr_1_1core.html#adaef309f12c2a3386e94610e24f2bfa7">core::reciprocal_squareroot</a>(
349<a name="l00298"></a>00298 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[i].Normal.getLengthSQ());
350<a name="l00299"></a>00299 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[i].<a class="code" href="classirr_1_1core_1_1plane3d.html#a932ca6e90e55cdceedb4f15ab706b719" title="Normal vector of the plane.">Normal</a> *= len;
351<a name="l00300"></a>00300 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[i].<a class="code" href="classirr_1_1core_1_1plane3d.html#afa304cf77cf1a3aae2351d5add5606a8" title="Distance from origin.">D</a> *= len;
352<a name="l00301"></a>00301 }
353<a name="l00302"></a>00302
354<a name="l00303"></a>00303 <span class="comment">// make bounding box</span>
355<a name="l00304"></a>00304 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a458eb19a23bcad50da0f9d3163e3621b" title="recalculates the bounding box member based on the planes">recalculateBoundingBox</a>();
356<a name="l00305"></a>00305 }
357<a name="l00306"></a>00306
358<a name="l00310"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#acf8edd203e7479d2b444ed548075ffa6">00310</a> <span class="keyword">inline</span> <a class="code" href="classirr_1_1core_1_1_c_matrix4.html" title="4x4 matrix. Mostly used as transformation matrix for 3d calculations.">core::matrix4</a>&amp; <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#acf8edd203e7479d2b444ed548075ffa6" title="get the given state&#39;s matrix based on frustum E_TRANSFORMATION_STATE">SViewFrustum::getTransform</a>(<a class="code" href="namespaceirr_1_1video.html#a15b57657a320243be03ae6f66fcff43d" title="enumeration for geometry transformation states">video::E_TRANSFORMATION_STATE</a> state )
359<a name="l00311"></a>00311 {
360<a name="l00312"></a>00312 <a class="code" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> index = 0;
361<a name="l00313"></a>00313 <span class="keywordflow">switch</span> ( state )
362<a name="l00314"></a>00314 {
363<a name="l00315"></a>00315 <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1video.html#a15b57657a320243be03ae6f66fcff43dae7ec186418508c67a7562af012d7b63f" title="Projection transformation.">video::ETS_PROJECTION</a>:
364<a name="l00316"></a>00316 index = SViewFrustum::ETS_PROJECTION; <span class="keywordflow">break</span>;
365<a name="l00317"></a>00317 <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1video.html#a15b57657a320243be03ae6f66fcff43da152f4262d5874186e0288934c7d31e14" title="View transformation.">video::ETS_VIEW</a>:
366<a name="l00318"></a>00318 index = SViewFrustum::ETS_VIEW; <span class="keywordflow">break</span>;
367<a name="l00319"></a>00319 <span class="keywordflow">default</span>:
368<a name="l00320"></a>00320 <span class="keywordflow">break</span>;
369<a name="l00321"></a>00321 }
370<a name="l00322"></a>00322 <span class="keywordflow">return</span> Matrices [ index ];
371<a name="l00323"></a>00323 }
372<a name="l00324"></a>00324
373<a name="l00328"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#a8e253fc5e6ea47531033792b22f28945">00328</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1_c_matrix4.html" title="4x4 matrix. Mostly used as transformation matrix for 3d calculations.">core::matrix4</a>&amp; <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#acf8edd203e7479d2b444ed548075ffa6" title="get the given state&#39;s matrix based on frustum E_TRANSFORMATION_STATE">SViewFrustum::getTransform</a>(<a class="code" href="namespaceirr_1_1video.html#a15b57657a320243be03ae6f66fcff43d" title="enumeration for geometry transformation states">video::E_TRANSFORMATION_STATE</a> state )<span class="keyword"> const</span>
374<a name="l00329"></a>00329 <span class="keyword"> </span>{
375<a name="l00330"></a>00330 <a class="code" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> index = 0;
376<a name="l00331"></a>00331 <span class="keywordflow">switch</span> ( state )
377<a name="l00332"></a>00332 {
378<a name="l00333"></a>00333 <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1video.html#a15b57657a320243be03ae6f66fcff43dae7ec186418508c67a7562af012d7b63f" title="Projection transformation.">video::ETS_PROJECTION</a>:
379<a name="l00334"></a>00334 index = SViewFrustum::ETS_PROJECTION; <span class="keywordflow">break</span>;
380<a name="l00335"></a>00335 <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1video.html#a15b57657a320243be03ae6f66fcff43da152f4262d5874186e0288934c7d31e14" title="View transformation.">video::ETS_VIEW</a>:
381<a name="l00336"></a>00336 index = SViewFrustum::ETS_VIEW; <span class="keywordflow">break</span>;
382<a name="l00337"></a>00337 <span class="keywordflow">default</span>:
383<a name="l00338"></a>00338 <span class="keywordflow">break</span>;
384<a name="l00339"></a>00339 }
385<a name="l00340"></a>00340 <span class="keywordflow">return</span> Matrices [ index ];
386<a name="l00341"></a>00341 }
387<a name="l00342"></a>00342
388<a name="l00344"></a><a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ace0b4c93dcd1d4e6ae50615b457f1851">00344</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ace0b4c93dcd1d4e6ae50615b457f1851" title="clips a line to the view frustum.">SViewFrustum::clipLine</a>(<a class="code" href="classirr_1_1core_1_1line3d.html" title="3D line between two points with intersection methods.">core::line3d&lt;f32&gt;</a>&amp; line)<span class="keyword"> const</span>
389<a name="l00345"></a>00345 <span class="keyword"> </span>{
390<a name="l00346"></a>00346 <span class="keywordtype">bool</span> wasClipped = <span class="keyword">false</span>;
391<a name="l00347"></a>00347 <span class="keywordflow">for</span> (<a class="code" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> i=0; i &lt; <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#ae3a96797aec028717f0589e82926b9f0a6c3c4cb8060a23a2365cf1df46fcefd7" title="Amount of planes enclosing the view frustum. Should be 6.">VF_PLANE_COUNT</a>; ++i)
392<a name="l00348"></a>00348 {
393<a name="l00349"></a>00349 <span class="keywordflow">if</span> (<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[i].classifyPointRelation(line.<a class="code" href="classirr_1_1core_1_1line3d.html#a8874f77324b6ef6632e66b22051a3251" title="Start point of line.">start</a>) == <a class="code" href="namespaceirr_1_1core.html#a8a9999eb0d151083f48afe5f7d17a96ca30484977b2480b6d6621114512d0b703">core::ISREL3D_FRONT</a>)
394<a name="l00350"></a>00350 {
395<a name="l00351"></a>00351 line.<a class="code" href="classirr_1_1core_1_1line3d.html#a8874f77324b6ef6632e66b22051a3251" title="Start point of line.">start</a> = line.<a class="code" href="classirr_1_1core_1_1line3d.html#a8874f77324b6ef6632e66b22051a3251" title="Start point of line.">start</a>.getInterpolated(line.<a class="code" href="classirr_1_1core_1_1line3d.html#aea19cb33971bb20e1d736facdae8a8f0" title="End point of line.">end</a>,
396<a name="l00352"></a>00352 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[i].<a class="code" href="classirr_1_1core_1_1plane3d.html#a572803fab72c142ad186b364da3193cb" title="Get percentage of line between two points where an intersection with this plane happens.">getKnownIntersectionWithLine</a>(line.<a class="code" href="classirr_1_1core_1_1line3d.html#a8874f77324b6ef6632e66b22051a3251" title="Start point of line.">start</a>, line.<a class="code" href="classirr_1_1core_1_1line3d.html#aea19cb33971bb20e1d736facdae8a8f0" title="End point of line.">end</a>));
397<a name="l00353"></a>00353 wasClipped = <span class="keyword">true</span>;
398<a name="l00354"></a>00354 }
399<a name="l00355"></a>00355 <span class="keywordflow">if</span> (<a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[i].classifyPointRelation(line.<a class="code" href="classirr_1_1core_1_1line3d.html#aea19cb33971bb20e1d736facdae8a8f0" title="End point of line.">end</a>) == <a class="code" href="namespaceirr_1_1core.html#a8a9999eb0d151083f48afe5f7d17a96ca30484977b2480b6d6621114512d0b703">core::ISREL3D_FRONT</a>)
400<a name="l00356"></a>00356 {
401<a name="l00357"></a>00357 line.<a class="code" href="classirr_1_1core_1_1line3d.html#aea19cb33971bb20e1d736facdae8a8f0" title="End point of line.">end</a> = line.<a class="code" href="classirr_1_1core_1_1line3d.html#a8874f77324b6ef6632e66b22051a3251" title="Start point of line.">start</a>.getInterpolated(line.<a class="code" href="classirr_1_1core_1_1line3d.html#aea19cb33971bb20e1d736facdae8a8f0" title="End point of line.">end</a>,
402<a name="l00358"></a>00358 <a class="code" href="structirr_1_1scene_1_1_s_view_frustum.html#afa59258f22c23b6f1dc4bcaff142dba2" title="all planes enclosing the view frustum.">planes</a>[i].<a class="code" href="classirr_1_1core_1_1plane3d.html#a572803fab72c142ad186b364da3193cb" title="Get percentage of line between two points where an intersection with this plane happens.">getKnownIntersectionWithLine</a>(line.<a class="code" href="classirr_1_1core_1_1line3d.html#a8874f77324b6ef6632e66b22051a3251" title="Start point of line.">start</a>, line.<a class="code" href="classirr_1_1core_1_1line3d.html#aea19cb33971bb20e1d736facdae8a8f0" title="End point of line.">end</a>));
403<a name="l00359"></a>00359 wasClipped = <span class="keyword">true</span>;
404<a name="l00360"></a>00360 }
405<a name="l00361"></a>00361 }
406<a name="l00362"></a>00362 <span class="keywordflow">return</span> wasClipped;
407<a name="l00363"></a>00363 }
408<a name="l00364"></a>00364
409<a name="l00365"></a>00365
410<a name="l00366"></a>00366 } <span class="comment">// end namespace scene</span>
411<a name="l00367"></a>00367 } <span class="comment">// end namespace irr</span>
412<a name="l00368"></a>00368
413<a name="l00369"></a>00369 <span class="preprocessor">#endif</span>
414<a name="l00370"></a>00370 <span class="preprocessor"></span>
415</pre></div></div>
416</div>
417 <div id="nav-path" class="navpath">
418 <ul>
419 <li class="navelem"><a class="el" href="_s_view_frustum_8h.html">SViewFrustum.h</a> </li>
420<!-- window showing the filter options -->
421<div id="MSearchSelectWindow"
422 onmouseover="return searchBox.OnSearchSelectShow()"
423 onmouseout="return searchBox.OnSearchSelectHide()"
424 onkeydown="return searchBox.OnSearchSelectKey(event)">
425<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>
426
427<!-- iframe showing the search results (closed by default) -->
428<div id="MSearchResultsWindow">
429<iframe src="javascript:void(0)" frameborder="0"
430 name="MSearchResults" id="MSearchResults">
431</iframe>
432</div>
433
434
435 <li class="footer">
436<a href="http://irrlicht.sourceforge.net" target="_blank">Irrlicht
437Engine</a> Documentation &copy; 2003-2012 by Nikolaus Gebhardt. Generated on Sun Nov 17 2013 20:18:40 for Irrlicht 3D Engine by
438<a href="http://www.doxygen.org/index.html" target="_blank">Doxygen</a> 1.7.5.1 </li>
439 </ul>
440 </div>
441
442
443</body>
444</html>