diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/irrlicht-1.8/doc/html/classirr_1_1core_1_1triangle3d.html | 794 |
1 files changed, 794 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8/doc/html/classirr_1_1core_1_1triangle3d.html b/libraries/irrlicht-1.8/doc/html/classirr_1_1core_1_1triangle3d.html new file mode 100644 index 0000000..7dad9dd --- /dev/null +++ b/libraries/irrlicht-1.8/doc/html/classirr_1_1core_1_1triangle3d.html | |||
@@ -0,0 +1,794 @@ | |||
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
2 | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
3 | <head> | ||
4 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> | ||
5 | <title>Irrlicht 3D Engine: irr::core::triangle3d< T > Class Template Reference</title> | ||
6 | |||
7 | <link href="tabs.css" rel="stylesheet" type="text/css"/> | ||
8 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> | ||
9 | <link href="navtree.css" rel="stylesheet" type="text/css"/> | ||
10 | <script type="text/javascript" src="jquery.js"></script> | ||
11 | <script type="text/javascript" src="resize.js"></script> | ||
12 | <script type="text/javascript" src="navtree.js"></script> | ||
13 | <script type="text/javascript"> | ||
14 | $(document).ready(initResizable); | ||
15 | </script> | ||
16 | <link href="search/search.css" rel="stylesheet" type="text/css"/> | ||
17 | <script type="text/javascript" src="search/search.js"></script> | ||
18 | <script type="text/javascript"> | ||
19 | $(document).ready(function() { searchBox.OnSelectItem(0); }); | ||
20 | </script> | ||
21 | |||
22 | </head> | ||
23 | <body> | ||
24 | <div id="top"><!-- do not remove this div! --> | ||
25 | |||
26 | |||
27 | <div id="titlearea"> | ||
28 | <table cellspacing="0" cellpadding="0"> | ||
29 | <tbody> | ||
30 | <tr style="height: 56px;"> | ||
31 | |||
32 | <td id="projectlogo"><img alt="Logo" src="irrlichtlogo.png"/></td> | ||
33 | |||
34 | |||
35 | <td style="padding-left: 0.5em;"> | ||
36 | <div id="projectname">Irrlicht 3D Engine | ||
37 | |||
38 | </div> | ||
39 | |||
40 | </td> | ||
41 | |||
42 | |||
43 | |||
44 | |||
45 | <td> <div id="MSearchBox" class="MSearchBoxInactive"> | ||
46 | <span class="left"> | ||
47 | <img id="MSearchSelect" src="search/mag_sel.png" | ||
48 | onmouseover="return searchBox.OnSearchSelectShow()" | ||
49 | onmouseout="return searchBox.OnSearchSelectHide()" | ||
50 | alt=""/> | ||
51 | <input type="text" id="MSearchField" value="Search" accesskey="S" | ||
52 | onfocus="searchBox.OnSearchFieldFocus(true)" | ||
53 | onblur="searchBox.OnSearchFieldFocus(false)" | ||
54 | onkeyup="searchBox.OnSearchFieldChange(event)"/> | ||
55 | </span><span class="right"> | ||
56 | <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> | ||
57 | </span> | ||
58 | </div> | ||
59 | </td> | ||
60 | |||
61 | |||
62 | </tr> | ||
63 | </tbody> | ||
64 | </table> | ||
65 | </div> | ||
66 | |||
67 | <!-- Generated by Doxygen 1.7.5.1 --> | ||
68 | <script type="text/javascript"> | ||
69 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); | ||
70 | </script> | ||
71 | <script type="text/javascript" src="dynsections.js"></script> | ||
72 | </div> | ||
73 | <div id="side-nav" class="ui-resizable side-nav-resizable"> | ||
74 | <div id="nav-tree"> | ||
75 | <div id="nav-tree-contents"> | ||
76 | </div> | ||
77 | </div> | ||
78 | <div id="splitbar" style="-moz-user-select:none;" | ||
79 | class="ui-resizable-handle"> | ||
80 | </div> | ||
81 | </div> | ||
82 | <script type="text/javascript"> | ||
83 | initNavTree('classirr_1_1core_1_1triangle3d.html',''); | ||
84 | </script> | ||
85 | <div id="doc-content"> | ||
86 | <div class="header"> | ||
87 | <div class="summary"> | ||
88 | <a href="#pub-methods">Public Member Functions</a> | | ||
89 | <a href="#pub-attribs">Public Attributes</a> </div> | ||
90 | <div class="headertitle"> | ||
91 | <div class="title">irr::core::triangle3d< T > Class Template Reference</div> </div> | ||
92 | </div> | ||
93 | <div class="contents"> | ||
94 | <!-- doxytag: class="irr::core::triangle3d" --> | ||
95 | <p>3d triangle template class for doing collision detection and other things. | ||
96 | <a href="classirr_1_1core_1_1triangle3d.html#details">More...</a></p> | ||
97 | |||
98 | <p><code>#include <<a class="el" href="triangle3d_8h_source.html">triangle3d.h</a>></code></p> | ||
99 | |||
100 | <p><a href="classirr_1_1core_1_1triangle3d-members.html">List of all members.</a></p> | ||
101 | <h2><a name="pub-methods"></a> | ||
102 | Public Member Functions</h2> | ||
103 | <ul> | ||
104 | <li><a class="el" href="classirr_1_1core_1_1triangle3d.html#a4626559294771a8a2fb0cbbaedb6c5f9">triangle3d</a> () | ||
105 | <dl class="el"><dd class="mdescRight">Constructor for an all 0 triangle. <a href="#a4626559294771a8a2fb0cbbaedb6c5f9"></a><br/></dl><li><a class="el" href="classirr_1_1core_1_1triangle3d.html#a489813c59bd130d256640ba4e2745505">triangle3d</a> (<a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > v1, <a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > v2, <a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > v3) | ||
106 | <dl class="el"><dd class="mdescRight">Constructor for triangle with given three vertices. <a href="#a489813c59bd130d256640ba4e2745505"></a><br/></dl><li><a class="el" href="classirr_1_1core_1_1vector3d.html">core::vector3d</a>< T > <a class="el" href="classirr_1_1core_1_1triangle3d.html#a0318b5951c702a306223b0dff7c83128">closestPointOnTriangle</a> (const <a class="el" href="classirr_1_1core_1_1vector3d.html">core::vector3d</a>< T > &p) const | ||
107 | <dl class="el"><dd class="mdescRight">Get the closest point on a triangle to a point on the same plane. <a href="#a0318b5951c702a306223b0dff7c83128"></a><br/></dl><li>T <a class="el" href="classirr_1_1core_1_1triangle3d.html#a2394228f2da6063eb8fedf1f3da9facc">getArea</a> () const | ||
108 | <dl class="el"><dd class="mdescRight">Get the area of the triangle. <a href="#a2394228f2da6063eb8fedf1f3da9facc"></a><br/></dl><li>bool <a class="el" href="classirr_1_1core_1_1triangle3d.html#a0ac5455e0215040cc93475baa543303a">getIntersectionOfPlaneWithLine</a> (const <a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > &linePoint, const <a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > &lineVect, <a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > &outIntersection) const | ||
109 | <dl class="el"><dd class="mdescRight">Calculates the intersection between a 3d line and the plane the triangle is on. <a href="#a0ac5455e0215040cc93475baa543303a"></a><br/></dl><li>bool <a class="el" href="classirr_1_1core_1_1triangle3d.html#ab29f327aac047e9984256b11ace27318">getIntersectionWithLimitedLine</a> (const <a class="el" href="classirr_1_1core_1_1line3d.html">line3d</a>< T > &line, <a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > &outIntersection) const | ||
110 | <dl class="el"><dd class="mdescRight">Get an intersection with a 3d line. <a href="#ab29f327aac047e9984256b11ace27318"></a><br/></dl><li>bool <a class="el" href="classirr_1_1core_1_1triangle3d.html#a8507e3af8385b006ca026173fad33506">getIntersectionWithLine</a> (const <a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > &linePoint, const <a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > &lineVect, <a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > &outIntersection) const | ||
111 | <dl class="el"><dd class="mdescRight">Get an intersection with a 3d line. <a href="#a8507e3af8385b006ca026173fad33506"></a><br/></dl><li><a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > <a class="el" href="classirr_1_1core_1_1triangle3d.html#a14298103d89ba5eae37d82d8556f07e2">getNormal</a> () const | ||
112 | <dl class="el"><dd class="mdescRight">Get the normal of the triangle. <a href="#a14298103d89ba5eae37d82d8556f07e2"></a><br/></dl><li><a class="el" href="classirr_1_1core_1_1plane3d.html">plane3d</a>< T > <a class="el" href="classirr_1_1core_1_1triangle3d.html#a8cec7cdb0c9caa0b41f819eac2ad51aa">getPlane</a> () const | ||
113 | <dl class="el"><dd class="mdescRight">Get the plane of this triangle. <a href="#a8cec7cdb0c9caa0b41f819eac2ad51aa"></a><br/></dl><li>bool <a class="el" href="classirr_1_1core_1_1triangle3d.html#acec0805b8512d9c3b0d5fe4b2cdb8562">isFrontFacing</a> (const <a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > &lookDirection) const | ||
114 | <dl class="el"><dd class="mdescRight">Test if the triangle would be front or backfacing from any point. <a href="#acec0805b8512d9c3b0d5fe4b2cdb8562"></a><br/></dl><li>bool <a class="el" href="classirr_1_1core_1_1triangle3d.html#a2a35b829f8389c5548e19e28157979c9">isPointInside</a> (const <a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > &p) const | ||
115 | <dl class="el"><dd class="mdescRight">Check if a point is inside the triangle (border-points count also as inside) <a href="#a2a35b829f8389c5548e19e28157979c9"></a><br/></dl><li>bool <a class="el" href="classirr_1_1core_1_1triangle3d.html#a80986af43b5a104bef2c75f74fcf7465">isPointInsideFast</a> (const <a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > &p) const | ||
116 | <dl class="el"><dd class="mdescRight">Check if a point is inside the triangle (border-points count also as inside) <a href="#a80986af43b5a104bef2c75f74fcf7465"></a><br/></dl><li>bool <a class="el" href="classirr_1_1core_1_1triangle3d.html#a9e7a8bba12fb314da35a9c249761a170">isTotalInsideBox</a> (const <a class="el" href="classirr_1_1core_1_1aabbox3d.html">aabbox3d</a>< T > &box) const | ||
117 | <dl class="el"><dd class="mdescRight">Determines if the triangle is totally inside a bounding box. <a href="#a9e7a8bba12fb314da35a9c249761a170"></a><br/></dl><li>bool <a class="el" href="classirr_1_1core_1_1triangle3d.html#a37e1822a18d88b08b2f9de9ed7e4ff84">isTotalOutsideBox</a> (const <a class="el" href="classirr_1_1core_1_1aabbox3d.html">aabbox3d</a>< T > &box) const | ||
118 | <dl class="el"><dd class="mdescRight">Determines if the triangle is totally outside a bounding box. <a href="#a37e1822a18d88b08b2f9de9ed7e4ff84"></a><br/></dl><li>bool <a class="el" href="classirr_1_1core_1_1triangle3d.html#a5a3b0b9e0ae5bc1c4c9bf11c06e9d30d">operator!=</a> (const <a class="el" href="classirr_1_1core_1_1triangle3d.html">triangle3d</a>< T > &other) const | ||
119 | <dl class="el"><dd class="mdescRight">Inequality operator. <a href="#a5a3b0b9e0ae5bc1c4c9bf11c06e9d30d"></a><br/></dl><li>bool <a class="el" href="classirr_1_1core_1_1triangle3d.html#a1541eda9f2baabc1f23eecb520c6fef2">operator==</a> (const <a class="el" href="classirr_1_1core_1_1triangle3d.html">triangle3d</a>< T > &other) const | ||
120 | <dl class="el"><dd class="mdescRight">Equality operator. <a href="#a1541eda9f2baabc1f23eecb520c6fef2"></a><br/></dl><li>void <a class="el" href="classirr_1_1core_1_1triangle3d.html#aebcd3f29fcbf9008dac95810c81f152c">set</a> (const <a class="el" href="classirr_1_1core_1_1vector3d.html">core::vector3d</a>< T > &a, const <a class="el" href="classirr_1_1core_1_1vector3d.html">core::vector3d</a>< T > &b, const <a class="el" href="classirr_1_1core_1_1vector3d.html">core::vector3d</a>< T > &c) | ||
121 | <dl class="el"><dd class="mdescRight">sets the triangle's points <a href="#aebcd3f29fcbf9008dac95810c81f152c"></a><br/></dl></ul> | ||
122 | <h2><a name="pub-attribs"></a> | ||
123 | Public Attributes</h2> | ||
124 | <ul> | ||
125 | <li><a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > <a class="el" href="classirr_1_1core_1_1triangle3d.html#ad4113299162b5855bccf8465b31ff78b">pointA</a> | ||
126 | <dl class="el"><dd class="mdescRight">the three points of the triangle <a href="#ad4113299162b5855bccf8465b31ff78b"></a><br/></dl><li><a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > <a class="el" href="classirr_1_1core_1_1triangle3d.html#a3ed5276e50f3d3b6a1e2483dffa822ac">pointB</a> | ||
127 | <li><a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > <a class="el" href="classirr_1_1core_1_1triangle3d.html#a08e65517102b6d04f0537b876e152466">pointC</a> | ||
128 | </ul> | ||
129 | <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> | ||
130 | <div class="textblock"><h3>template<class T><br/> | ||
131 | class irr::core::triangle3d< T ></h3> | ||
132 | |||
133 | <p>3d triangle template class for doing collision detection and other things. </p> | ||
134 | |||
135 | <p>Definition at line <a class="el" href="triangle3d_8h_source.html#l00020">20</a> of file <a class="el" href="triangle3d_8h_source.html">triangle3d.h</a>.</p> | ||
136 | </div><hr/><h2>Constructor & Destructor Documentation</h2> | ||
137 | <a class="anchor" id="a4626559294771a8a2fb0cbbaedb6c5f9"></a><!-- doxytag: member="irr::core::triangle3d::triangle3d" ref="a4626559294771a8a2fb0cbbaedb6c5f9" args="()" --> | ||
138 | <div class="memitem"> | ||
139 | <div class="memproto"> | ||
140 | <div class="memtemplate"> | ||
141 | template<class T> </div> | ||
142 | <table class="memname"> | ||
143 | <tr> | ||
144 | <td class="memname"><a class="el" href="classirr_1_1core_1_1triangle3d.html">irr::core::triangle3d</a>< T >::<a class="el" href="classirr_1_1core_1_1triangle3d.html">triangle3d</a> </td> | ||
145 | <td>(</td> | ||
146 | <td class="paramname"></td><td>)</td> | ||
147 | <td><code> [inline]</code></td> | ||
148 | </tr> | ||
149 | </table> | ||
150 | </div> | ||
151 | <div class="memdoc"> | ||
152 | |||
153 | <p>Constructor for an all 0 triangle. </p> | ||
154 | |||
155 | <p>Definition at line <a class="el" href="triangle3d_8h_source.html#l00025">25</a> of file <a class="el" href="triangle3d_8h_source.html">triangle3d.h</a>.</p> | ||
156 | |||
157 | </div> | ||
158 | </div> | ||
159 | <a class="anchor" id="a489813c59bd130d256640ba4e2745505"></a><!-- doxytag: member="irr::core::triangle3d::triangle3d" ref="a489813c59bd130d256640ba4e2745505" args="(vector3d< T > v1, vector3d< T > v2, vector3d< T > v3)" --> | ||
160 | <div class="memitem"> | ||
161 | <div class="memproto"> | ||
162 | <div class="memtemplate"> | ||
163 | template<class T> </div> | ||
164 | <table class="memname"> | ||
165 | <tr> | ||
166 | <td class="memname"><a class="el" href="classirr_1_1core_1_1triangle3d.html">irr::core::triangle3d</a>< T >::<a class="el" href="classirr_1_1core_1_1triangle3d.html">triangle3d</a> </td> | ||
167 | <td>(</td> | ||
168 | <td class="paramtype"><a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > </td> | ||
169 | <td class="paramname"><em>v1</em>, </td> | ||
170 | </tr> | ||
171 | <tr> | ||
172 | <td class="paramkey"></td> | ||
173 | <td></td> | ||
174 | <td class="paramtype"><a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > </td> | ||
175 | <td class="paramname"><em>v2</em>, </td> | ||
176 | </tr> | ||
177 | <tr> | ||
178 | <td class="paramkey"></td> | ||
179 | <td></td> | ||
180 | <td class="paramtype"><a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > </td> | ||
181 | <td class="paramname"><em>v3</em> </td> | ||
182 | </tr> | ||
183 | <tr> | ||
184 | <td></td> | ||
185 | <td>)</td> | ||
186 | <td></td><td><code> [inline]</code></td> | ||
187 | </tr> | ||
188 | </table> | ||
189 | </div> | ||
190 | <div class="memdoc"> | ||
191 | |||
192 | <p>Constructor for triangle with given three vertices. </p> | ||
193 | |||
194 | <p>Definition at line <a class="el" href="triangle3d_8h_source.html#l00027">27</a> of file <a class="el" href="triangle3d_8h_source.html">triangle3d.h</a>.</p> | ||
195 | |||
196 | </div> | ||
197 | </div> | ||
198 | <hr/><h2>Member Function Documentation</h2> | ||
199 | <a class="anchor" id="a0318b5951c702a306223b0dff7c83128"></a><!-- doxytag: member="irr::core::triangle3d::closestPointOnTriangle" ref="a0318b5951c702a306223b0dff7c83128" args="(const core::vector3d< T > &p) const " --> | ||
200 | <div class="memitem"> | ||
201 | <div class="memproto"> | ||
202 | <div class="memtemplate"> | ||
203 | template<class T> </div> | ||
204 | <table class="memname"> | ||
205 | <tr> | ||
206 | <td class="memname"><a class="el" href="classirr_1_1core_1_1vector3d.html">core::vector3d</a><T> <a class="el" href="classirr_1_1core_1_1triangle3d.html">irr::core::triangle3d</a>< T >::closestPointOnTriangle </td> | ||
207 | <td>(</td> | ||
208 | <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1vector3d.html">core::vector3d</a>< T > & </td> | ||
209 | <td class="paramname"><em>p</em></td><td>)</td> | ||
210 | <td> const<code> [inline]</code></td> | ||
211 | </tr> | ||
212 | </table> | ||
213 | </div> | ||
214 | <div class="memdoc"> | ||
215 | |||
216 | <p>Get the closest point on a triangle to a point on the same plane. </p> | ||
217 | <dl><dt><b>Parameters:</b></dt><dd> | ||
218 | <table class="params"> | ||
219 | <tr><td class="paramname">p</td><td>Point which must be on the same plane as the triangle. </td></tr> | ||
220 | </table> | ||
221 | </dd> | ||
222 | </dl> | ||
223 | <dl class="return"><dt><b>Returns:</b></dt><dd>The closest point of the triangle </dd></dl> | ||
224 | |||
225 | <p>Definition at line <a class="el" href="triangle3d_8h_source.html#l00068">68</a> of file <a class="el" href="triangle3d_8h_source.html">triangle3d.h</a>.</p> | ||
226 | |||
227 | <p>References <a class="el" href="vector3d_8h_source.html#l00132">irr::core::vector3d< T >::getDistanceFrom()</a>, <a class="el" href="triangle3d_8h_source.html#l00239">irr::core::triangle3d< T >::pointA</a>, <a class="el" href="triangle3d_8h_source.html#l00240">irr::core::triangle3d< T >::pointB</a>, and <a class="el" href="triangle3d_8h_source.html#l00241">irr::core::triangle3d< T >::pointC</a>.</p> | ||
228 | |||
229 | </div> | ||
230 | </div> | ||
231 | <a class="anchor" id="a2394228f2da6063eb8fedf1f3da9facc"></a><!-- doxytag: member="irr::core::triangle3d::getArea" ref="a2394228f2da6063eb8fedf1f3da9facc" args="() const " --> | ||
232 | <div class="memitem"> | ||
233 | <div class="memproto"> | ||
234 | <div class="memtemplate"> | ||
235 | template<class T> </div> | ||
236 | <table class="memname"> | ||
237 | <tr> | ||
238 | <td class="memname">T <a class="el" href="classirr_1_1core_1_1triangle3d.html">irr::core::triangle3d</a>< T >::getArea </td> | ||
239 | <td>(</td> | ||
240 | <td class="paramname"></td><td>)</td> | ||
241 | <td> const<code> [inline]</code></td> | ||
242 | </tr> | ||
243 | </table> | ||
244 | </div> | ||
245 | <div class="memdoc"> | ||
246 | |||
247 | <p>Get the area of the triangle. </p> | ||
248 | |||
249 | <p>Definition at line <a class="el" href="triangle3d_8h_source.html#l00224">224</a> of file <a class="el" href="triangle3d_8h_source.html">triangle3d.h</a>.</p> | ||
250 | |||
251 | <p>References <a class="el" href="triangle3d_8h_source.html#l00239">irr::core::triangle3d< T >::pointA</a>, <a class="el" href="triangle3d_8h_source.html#l00240">irr::core::triangle3d< T >::pointB</a>, and <a class="el" href="triangle3d_8h_source.html#l00241">irr::core::triangle3d< T >::pointC</a>.</p> | ||
252 | |||
253 | </div> | ||
254 | </div> | ||
255 | <a class="anchor" id="a0ac5455e0215040cc93475baa543303a"></a><!-- doxytag: member="irr::core::triangle3d::getIntersectionOfPlaneWithLine" ref="a0ac5455e0215040cc93475baa543303a" args="(const vector3d< T > &linePoint, const vector3d< T > &lineVect, vector3d< T > &outIntersection) const " --> | ||
256 | <div class="memitem"> | ||
257 | <div class="memproto"> | ||
258 | <div class="memtemplate"> | ||
259 | template<class T> </div> | ||
260 | <table class="memname"> | ||
261 | <tr> | ||
262 | <td class="memname">bool <a class="el" href="classirr_1_1core_1_1triangle3d.html">irr::core::triangle3d</a>< T >::getIntersectionOfPlaneWithLine </td> | ||
263 | <td>(</td> | ||
264 | <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > & </td> | ||
265 | <td class="paramname"><em>linePoint</em>, </td> | ||
266 | </tr> | ||
267 | <tr> | ||
268 | <td class="paramkey"></td> | ||
269 | <td></td> | ||
270 | <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > & </td> | ||
271 | <td class="paramname"><em>lineVect</em>, </td> | ||
272 | </tr> | ||
273 | <tr> | ||
274 | <td class="paramkey"></td> | ||
275 | <td></td> | ||
276 | <td class="paramtype"><a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > & </td> | ||
277 | <td class="paramname"><em>outIntersection</em> </td> | ||
278 | </tr> | ||
279 | <tr> | ||
280 | <td></td> | ||
281 | <td>)</td> | ||
282 | <td></td><td> const<code> [inline]</code></td> | ||
283 | </tr> | ||
284 | </table> | ||
285 | </div> | ||
286 | <div class="memdoc"> | ||
287 | |||
288 | <p>Calculates the intersection between a 3d line and the plane the triangle is on. </p> | ||
289 | <dl><dt><b>Parameters:</b></dt><dd> | ||
290 | <table class="params"> | ||
291 | <tr><td class="paramname">lineVect</td><td>Vector of the line to intersect with. </td></tr> | ||
292 | <tr><td class="paramname">linePoint</td><td>Point of the line to intersect with. </td></tr> | ||
293 | <tr><td class="paramname">outIntersection</td><td>Place to store the intersection point, if there is one. </td></tr> | ||
294 | </table> | ||
295 | </dd> | ||
296 | </dl> | ||
297 | <dl class="return"><dt><b>Returns:</b></dt><dd>True if there was an intersection, else false. </dd></dl> | ||
298 | |||
299 | <p>Definition at line <a class="el" href="triangle3d_8h_source.html#l00169">169</a> of file <a class="el" href="triangle3d_8h_source.html">triangle3d.h</a>.</p> | ||
300 | |||
301 | <p>References <a class="el" href="vector3d_8h_source.html#l00125">irr::core::vector3d< T >::dotProduct()</a>, <a class="el" href="triangle3d_8h_source.html#l00199">irr::core::triangle3d< T >::getNormal()</a>, <a class="el" href="irr_math_8h_source.html#l00269">irr::core::iszero()</a>, <a class="el" href="triangle3d_8h_source.html#l00239">irr::core::triangle3d< T >::pointA</a>, <a class="el" href="triangle3d_8h_source.html#l00240">irr::core::triangle3d< T >::pointB</a>, <a class="el" href="triangle3d_8h_source.html#l00241">irr::core::triangle3d< T >::pointC</a>, <a class="el" href="vector3d_8h_source.html#l00408">irr::core::vector3d< T >::X</a>, <a class="el" href="vector3d_8h_source.html#l00411">irr::core::vector3d< T >::Y</a>, and <a class="el" href="vector3d_8h_source.html#l00414">irr::core::vector3d< T >::Z</a>.</p> | ||
302 | |||
303 | <p>Referenced by <a class="el" href="triangle3d_8h_source.html#l00154">irr::core::triangle3d< T >::getIntersectionWithLine()</a>.</p> | ||
304 | |||
305 | </div> | ||
306 | </div> | ||
307 | <a class="anchor" id="ab29f327aac047e9984256b11ace27318"></a><!-- doxytag: member="irr::core::triangle3d::getIntersectionWithLimitedLine" ref="ab29f327aac047e9984256b11ace27318" args="(const line3d< T > &line, vector3d< T > &outIntersection) const " --> | ||
308 | <div class="memitem"> | ||
309 | <div class="memproto"> | ||
310 | <div class="memtemplate"> | ||
311 | template<class T> </div> | ||
312 | <table class="memname"> | ||
313 | <tr> | ||
314 | <td class="memname">bool <a class="el" href="classirr_1_1core_1_1triangle3d.html">irr::core::triangle3d</a>< T >::getIntersectionWithLimitedLine </td> | ||
315 | <td>(</td> | ||
316 | <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1line3d.html">line3d</a>< T > & </td> | ||
317 | <td class="paramname"><em>line</em>, </td> | ||
318 | </tr> | ||
319 | <tr> | ||
320 | <td class="paramkey"></td> | ||
321 | <td></td> | ||
322 | <td class="paramtype"><a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > & </td> | ||
323 | <td class="paramname"><em>outIntersection</em> </td> | ||
324 | </tr> | ||
325 | <tr> | ||
326 | <td></td> | ||
327 | <td>)</td> | ||
328 | <td></td><td> const<code> [inline]</code></td> | ||
329 | </tr> | ||
330 | </table> | ||
331 | </div> | ||
332 | <div class="memdoc"> | ||
333 | |||
334 | <p>Get an intersection with a 3d line. </p> | ||
335 | <dl><dt><b>Parameters:</b></dt><dd> | ||
336 | <table class="params"> | ||
337 | <tr><td class="paramname">line</td><td>Line to intersect with. </td></tr> | ||
338 | <tr><td class="paramname">outIntersection</td><td>Place to store the intersection point, if there is one. </td></tr> | ||
339 | </table> | ||
340 | </dd> | ||
341 | </dl> | ||
342 | <dl class="return"><dt><b>Returns:</b></dt><dd>True if there was an intersection, false if not. </dd></dl> | ||
343 | |||
344 | <p>Definition at line <a class="el" href="triangle3d_8h_source.html#l00136">136</a> of file <a class="el" href="triangle3d_8h_source.html">triangle3d.h</a>.</p> | ||
345 | |||
346 | <p>References <a class="el" href="line3d_8h_source.html#l00132">irr::core::line3d< T >::end</a>, <a class="el" href="triangle3d_8h_source.html#l00154">irr::core::triangle3d< T >::getIntersectionWithLine()</a>, <a class="el" href="line3d_8h_source.html#l00071">irr::core::line3d< T >::getVector()</a>, <a class="el" href="vector3d_8h_source.html#l00157">irr::core::vector3d< T >::isBetweenPoints()</a>, and <a class="el" href="line3d_8h_source.html#l00130">irr::core::line3d< T >::start</a>.</p> | ||
347 | |||
348 | </div> | ||
349 | </div> | ||
350 | <a class="anchor" id="a8507e3af8385b006ca026173fad33506"></a><!-- doxytag: member="irr::core::triangle3d::getIntersectionWithLine" ref="a8507e3af8385b006ca026173fad33506" args="(const vector3d< T > &linePoint, const vector3d< T > &lineVect, vector3d< T > &outIntersection) const " --> | ||
351 | <div class="memitem"> | ||
352 | <div class="memproto"> | ||
353 | <div class="memtemplate"> | ||
354 | template<class T> </div> | ||
355 | <table class="memname"> | ||
356 | <tr> | ||
357 | <td class="memname">bool <a class="el" href="classirr_1_1core_1_1triangle3d.html">irr::core::triangle3d</a>< T >::getIntersectionWithLine </td> | ||
358 | <td>(</td> | ||
359 | <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > & </td> | ||
360 | <td class="paramname"><em>linePoint</em>, </td> | ||
361 | </tr> | ||
362 | <tr> | ||
363 | <td class="paramkey"></td> | ||
364 | <td></td> | ||
365 | <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > & </td> | ||
366 | <td class="paramname"><em>lineVect</em>, </td> | ||
367 | </tr> | ||
368 | <tr> | ||
369 | <td class="paramkey"></td> | ||
370 | <td></td> | ||
371 | <td class="paramtype"><a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > & </td> | ||
372 | <td class="paramname"><em>outIntersection</em> </td> | ||
373 | </tr> | ||
374 | <tr> | ||
375 | <td></td> | ||
376 | <td>)</td> | ||
377 | <td></td><td> const<code> [inline]</code></td> | ||
378 | </tr> | ||
379 | </table> | ||
380 | </div> | ||
381 | <div class="memdoc"> | ||
382 | |||
383 | <p>Get an intersection with a 3d line. </p> | ||
384 | <p>Please note that also points are returned as intersection which are on the line, but not between the start and end point of the line. If you want the returned point be between start and end use <a class="el" href="classirr_1_1core_1_1triangle3d.html#ab29f327aac047e9984256b11ace27318" title="Get an intersection with a 3d line.">getIntersectionWithLimitedLine()</a>. </p> | ||
385 | <dl><dt><b>Parameters:</b></dt><dd> | ||
386 | <table class="params"> | ||
387 | <tr><td class="paramname">linePoint</td><td>Point of the line to intersect with. </td></tr> | ||
388 | <tr><td class="paramname">lineVect</td><td>Vector of the line to intersect with. </td></tr> | ||
389 | <tr><td class="paramname">outIntersection</td><td>Place to store the intersection point, if there is one. </td></tr> | ||
390 | </table> | ||
391 | </dd> | ||
392 | </dl> | ||
393 | <dl class="return"><dt><b>Returns:</b></dt><dd>True if there was an intersection, false if there was not. </dd></dl> | ||
394 | |||
395 | <p>Definition at line <a class="el" href="triangle3d_8h_source.html#l00154">154</a> of file <a class="el" href="triangle3d_8h_source.html">triangle3d.h</a>.</p> | ||
396 | |||
397 | <p>References <a class="el" href="triangle3d_8h_source.html#l00169">irr::core::triangle3d< T >::getIntersectionOfPlaneWithLine()</a>, and <a class="el" href="triangle3d_8h_source.html#l00089">irr::core::triangle3d< T >::isPointInside()</a>.</p> | ||
398 | |||
399 | <p>Referenced by <a class="el" href="triangle3d_8h_source.html#l00136">irr::core::triangle3d< T >::getIntersectionWithLimitedLine()</a>.</p> | ||
400 | |||
401 | </div> | ||
402 | </div> | ||
403 | <a class="anchor" id="a14298103d89ba5eae37d82d8556f07e2"></a><!-- doxytag: member="irr::core::triangle3d::getNormal" ref="a14298103d89ba5eae37d82d8556f07e2" args="() const " --> | ||
404 | <div class="memitem"> | ||
405 | <div class="memproto"> | ||
406 | <div class="memtemplate"> | ||
407 | template<class T> </div> | ||
408 | <table class="memname"> | ||
409 | <tr> | ||
410 | <td class="memname"><a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a><T> <a class="el" href="classirr_1_1core_1_1triangle3d.html">irr::core::triangle3d</a>< T >::getNormal </td> | ||
411 | <td>(</td> | ||
412 | <td class="paramname"></td><td>)</td> | ||
413 | <td> const<code> [inline]</code></td> | ||
414 | </tr> | ||
415 | </table> | ||
416 | </div> | ||
417 | <div class="memdoc"> | ||
418 | |||
419 | <p>Get the normal of the triangle. </p> | ||
420 | <p>Please note: The normal is not always normalized. </p> | ||
421 | |||
422 | <p>Definition at line <a class="el" href="triangle3d_8h_source.html#l00199">199</a> of file <a class="el" href="triangle3d_8h_source.html">triangle3d.h</a>.</p> | ||
423 | |||
424 | <p>References <a class="el" href="triangle3d_8h_source.html#l00239">irr::core::triangle3d< T >::pointA</a>, <a class="el" href="triangle3d_8h_source.html#l00240">irr::core::triangle3d< T >::pointB</a>, and <a class="el" href="triangle3d_8h_source.html#l00241">irr::core::triangle3d< T >::pointC</a>.</p> | ||
425 | |||
426 | <p>Referenced by <a class="el" href="triangle3d_8h_source.html#l00169">irr::core::triangle3d< T >::getIntersectionOfPlaneWithLine()</a>, and <a class="el" href="triangle3d_8h_source.html#l00210">irr::core::triangle3d< T >::isFrontFacing()</a>.</p> | ||
427 | |||
428 | </div> | ||
429 | </div> | ||
430 | <a class="anchor" id="a8cec7cdb0c9caa0b41f819eac2ad51aa"></a><!-- doxytag: member="irr::core::triangle3d::getPlane" ref="a8cec7cdb0c9caa0b41f819eac2ad51aa" args="() const " --> | ||
431 | <div class="memitem"> | ||
432 | <div class="memproto"> | ||
433 | <div class="memtemplate"> | ||
434 | template<class T> </div> | ||
435 | <table class="memname"> | ||
436 | <tr> | ||
437 | <td class="memname"><a class="el" href="classirr_1_1core_1_1plane3d.html">plane3d</a><T> <a class="el" href="classirr_1_1core_1_1triangle3d.html">irr::core::triangle3d</a>< T >::getPlane </td> | ||
438 | <td>(</td> | ||
439 | <td class="paramname"></td><td>)</td> | ||
440 | <td> const<code> [inline]</code></td> | ||
441 | </tr> | ||
442 | </table> | ||
443 | </div> | ||
444 | <div class="memdoc"> | ||
445 | |||
446 | <p>Get the plane of this triangle. </p> | ||
447 | |||
448 | <p>Definition at line <a class="el" href="triangle3d_8h_source.html#l00218">218</a> of file <a class="el" href="triangle3d_8h_source.html">triangle3d.h</a>.</p> | ||
449 | |||
450 | <p>References <a class="el" href="triangle3d_8h_source.html#l00239">irr::core::triangle3d< T >::pointA</a>, <a class="el" href="triangle3d_8h_source.html#l00240">irr::core::triangle3d< T >::pointB</a>, and <a class="el" href="triangle3d_8h_source.html#l00241">irr::core::triangle3d< T >::pointC</a>.</p> | ||
451 | |||
452 | </div> | ||
453 | </div> | ||
454 | <a class="anchor" id="acec0805b8512d9c3b0d5fe4b2cdb8562"></a><!-- doxytag: member="irr::core::triangle3d::isFrontFacing" ref="acec0805b8512d9c3b0d5fe4b2cdb8562" args="(const vector3d< T > &lookDirection) const " --> | ||
455 | <div class="memitem"> | ||
456 | <div class="memproto"> | ||
457 | <div class="memtemplate"> | ||
458 | template<class T> </div> | ||
459 | <table class="memname"> | ||
460 | <tr> | ||
461 | <td class="memname">bool <a class="el" href="classirr_1_1core_1_1triangle3d.html">irr::core::triangle3d</a>< T >::isFrontFacing </td> | ||
462 | <td>(</td> | ||
463 | <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > & </td> | ||
464 | <td class="paramname"><em>lookDirection</em></td><td>)</td> | ||
465 | <td> const<code> [inline]</code></td> | ||
466 | </tr> | ||
467 | </table> | ||
468 | </div> | ||
469 | <div class="memdoc"> | ||
470 | |||
471 | <p>Test if the triangle would be front or backfacing from any point. </p> | ||
472 | <p>Thus, this method assumes a camera position from which the triangle is definitely visible when looking at the given direction. Do not use this method with points as it will give wrong results! </p> | ||
473 | <dl><dt><b>Parameters:</b></dt><dd> | ||
474 | <table class="params"> | ||
475 | <tr><td class="paramname">lookDirection</td><td>Look direction. </td></tr> | ||
476 | </table> | ||
477 | </dd> | ||
478 | </dl> | ||
479 | <dl class="return"><dt><b>Returns:</b></dt><dd>True if the plane is front facing and false if it is backfacing. </dd></dl> | ||
480 | |||
481 | <p>Definition at line <a class="el" href="triangle3d_8h_source.html#l00210">210</a> of file <a class="el" href="triangle3d_8h_source.html">triangle3d.h</a>.</p> | ||
482 | |||
483 | <p>References <a class="el" href="vector3d_8h_source.html#l00125">irr::core::vector3d< T >::dotProduct()</a>, <a class="el" href="irr_math_8h_source.html#l00385">F32_LOWER_EQUAL_0</a>, and <a class="el" href="triangle3d_8h_source.html#l00199">irr::core::triangle3d< T >::getNormal()</a>.</p> | ||
484 | |||
485 | </div> | ||
486 | </div> | ||
487 | <a class="anchor" id="a2a35b829f8389c5548e19e28157979c9"></a><!-- doxytag: member="irr::core::triangle3d::isPointInside" ref="a2a35b829f8389c5548e19e28157979c9" args="(const vector3d< T > &p) const " --> | ||
488 | <div class="memitem"> | ||
489 | <div class="memproto"> | ||
490 | <div class="memtemplate"> | ||
491 | template<class T> </div> | ||
492 | <table class="memname"> | ||
493 | <tr> | ||
494 | <td class="memname">bool <a class="el" href="classirr_1_1core_1_1triangle3d.html">irr::core::triangle3d</a>< T >::isPointInside </td> | ||
495 | <td>(</td> | ||
496 | <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > & </td> | ||
497 | <td class="paramname"><em>p</em></td><td>)</td> | ||
498 | <td> const<code> [inline]</code></td> | ||
499 | </tr> | ||
500 | </table> | ||
501 | </div> | ||
502 | <div class="memdoc"> | ||
503 | |||
504 | <p>Check if a point is inside the triangle (border-points count also as inside) </p> | ||
505 | |||
506 | <p>Definition at line <a class="el" href="triangle3d_8h_source.html#l00089">89</a> of file <a class="el" href="triangle3d_8h_source.html">triangle3d.h</a>.</p> | ||
507 | |||
508 | <p>References <a class="el" href="triangle3d_8h_source.html#l00239">irr::core::triangle3d< T >::pointA</a>, <a class="el" href="triangle3d_8h_source.html#l00240">irr::core::triangle3d< T >::pointB</a>, <a class="el" href="triangle3d_8h_source.html#l00241">irr::core::triangle3d< T >::pointC</a>, <a class="el" href="vector3d_8h_source.html#l00408">irr::core::vector3d< T >::X</a>, <a class="el" href="vector3d_8h_source.html#l00411">irr::core::vector3d< T >::Y</a>, and <a class="el" href="vector3d_8h_source.html#l00414">irr::core::vector3d< T >::Z</a>.</p> | ||
509 | |||
510 | <p>Referenced by <a class="el" href="triangle3d_8h_source.html#l00154">irr::core::triangle3d< T >::getIntersectionWithLine()</a>.</p> | ||
511 | |||
512 | </div> | ||
513 | </div> | ||
514 | <a class="anchor" id="a80986af43b5a104bef2c75f74fcf7465"></a><!-- doxytag: member="irr::core::triangle3d::isPointInsideFast" ref="a80986af43b5a104bef2c75f74fcf7465" args="(const vector3d< T > &p) const " --> | ||
515 | <div class="memitem"> | ||
516 | <div class="memproto"> | ||
517 | <div class="memtemplate"> | ||
518 | template<class T> </div> | ||
519 | <table class="memname"> | ||
520 | <tr> | ||
521 | <td class="memname">bool <a class="el" href="classirr_1_1core_1_1triangle3d.html">irr::core::triangle3d</a>< T >::isPointInsideFast </td> | ||
522 | <td>(</td> | ||
523 | <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a>< T > & </td> | ||
524 | <td class="paramname"><em>p</em></td><td>)</td> | ||
525 | <td> const<code> [inline]</code></td> | ||
526 | </tr> | ||
527 | </table> | ||
528 | </div> | ||
529 | <div class="memdoc"> | ||
530 | |||
531 | <p>Check if a point is inside the triangle (border-points count also as inside) </p> | ||
532 | <p>This method uses a barycentric coordinate system. It is faster than isPointInside but is more susceptible to floating point rounding errors. This will especially be noticable when the FPU is in single precision mode (which is for example set on default by Direct3D). </p> | ||
533 | <dl><dt><b>Parameters:</b></dt><dd> | ||
534 | <table class="params"> | ||
535 | <tr><td class="paramname">p</td><td>Point to test. Assumes that this point is already on the plane of the triangle. </td></tr> | ||
536 | </table> | ||
537 | </dd> | ||
538 | </dl> | ||
539 | <dl class="return"><dt><b>Returns:</b></dt><dd>True if point is inside the triangle, otherwise false. </dd></dl> | ||
540 | |||
541 | <p>Definition at line <a class="el" href="triangle3d_8h_source.html#l00108">108</a> of file <a class="el" href="triangle3d_8h_source.html">triangle3d.h</a>.</p> | ||
542 | |||
543 | <p>References <a class="el" href="vector3d_8h_source.html#l00125">irr::core::vector3d< T >::dotProduct()</a>, <a class="el" href="triangle3d_8h_source.html#l00239">irr::core::triangle3d< T >::pointA</a>, <a class="el" href="triangle3d_8h_source.html#l00240">irr::core::triangle3d< T >::pointB</a>, <a class="el" href="triangle3d_8h_source.html#l00241">irr::core::triangle3d< T >::pointC</a>, and <a class="el" href="irr_math_8h_source.html#l00049">irr::core::ROUNDING_ERROR_f32</a>.</p> | ||
544 | |||
545 | </div> | ||
546 | </div> | ||
547 | <a class="anchor" id="a9e7a8bba12fb314da35a9c249761a170"></a><!-- doxytag: member="irr::core::triangle3d::isTotalInsideBox" ref="a9e7a8bba12fb314da35a9c249761a170" args="(const aabbox3d< T > &box) const " --> | ||
548 | <div class="memitem"> | ||
549 | <div class="memproto"> | ||
550 | <div class="memtemplate"> | ||
551 | template<class T> </div> | ||
552 | <table class="memname"> | ||
553 | <tr> | ||
554 | <td class="memname">bool <a class="el" href="classirr_1_1core_1_1triangle3d.html">irr::core::triangle3d</a>< T >::isTotalInsideBox </td> | ||
555 | <td>(</td> | ||
556 | <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1aabbox3d.html">aabbox3d</a>< T > & </td> | ||
557 | <td class="paramname"><em>box</em></td><td>)</td> | ||
558 | <td> const<code> [inline]</code></td> | ||
559 | </tr> | ||
560 | </table> | ||
561 | </div> | ||
562 | <div class="memdoc"> | ||
563 | |||
564 | <p>Determines if the triangle is totally inside a bounding box. </p> | ||
565 | <dl><dt><b>Parameters:</b></dt><dd> | ||
566 | <table class="params"> | ||
567 | <tr><td class="paramname">box</td><td>Box to check. </td></tr> | ||
568 | </table> | ||
569 | </dd> | ||
570 | </dl> | ||
571 | <dl class="return"><dt><b>Returns:</b></dt><dd>True if triangle is within the box, otherwise false. </dd></dl> | ||
572 | |||
573 | <p>Definition at line <a class="el" href="triangle3d_8h_source.html#l00044">44</a> of file <a class="el" href="triangle3d_8h_source.html">triangle3d.h</a>.</p> | ||
574 | |||
575 | <p>References <a class="el" href="aabbox3d_8h_source.html#l00201">irr::core::aabbox3d< T >::isPointInside()</a>, <a class="el" href="triangle3d_8h_source.html#l00239">irr::core::triangle3d< T >::pointA</a>, <a class="el" href="triangle3d_8h_source.html#l00240">irr::core::triangle3d< T >::pointB</a>, and <a class="el" href="triangle3d_8h_source.html#l00241">irr::core::triangle3d< T >::pointC</a>.</p> | ||
576 | |||
577 | </div> | ||
578 | </div> | ||
579 | <a class="anchor" id="a37e1822a18d88b08b2f9de9ed7e4ff84"></a><!-- doxytag: member="irr::core::triangle3d::isTotalOutsideBox" ref="a37e1822a18d88b08b2f9de9ed7e4ff84" args="(const aabbox3d< T > &box) const " --> | ||
580 | <div class="memitem"> | ||
581 | <div class="memproto"> | ||
582 | <div class="memtemplate"> | ||
583 | template<class T> </div> | ||
584 | <table class="memname"> | ||
585 | <tr> | ||
586 | <td class="memname">bool <a class="el" href="classirr_1_1core_1_1triangle3d.html">irr::core::triangle3d</a>< T >::isTotalOutsideBox </td> | ||
587 | <td>(</td> | ||
588 | <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1aabbox3d.html">aabbox3d</a>< T > & </td> | ||
589 | <td class="paramname"><em>box</em></td><td>)</td> | ||
590 | <td> const<code> [inline]</code></td> | ||
591 | </tr> | ||
592 | </table> | ||
593 | </div> | ||
594 | <div class="memdoc"> | ||
595 | |||
596 | <p>Determines if the triangle is totally outside a bounding box. </p> | ||
597 | <dl><dt><b>Parameters:</b></dt><dd> | ||
598 | <table class="params"> | ||
599 | <tr><td class="paramname">box</td><td>Box to check. </td></tr> | ||
600 | </table> | ||
601 | </dd> | ||
602 | </dl> | ||
603 | <dl class="return"><dt><b>Returns:</b></dt><dd>True if triangle is outside the box, otherwise false. </dd></dl> | ||
604 | |||
605 | <p>Definition at line <a class="el" href="triangle3d_8h_source.html#l00054">54</a> of file <a class="el" href="triangle3d_8h_source.html">triangle3d.h</a>.</p> | ||
606 | |||
607 | <p>References <a class="el" href="aabbox3d_8h_source.html#l00320">irr::core::aabbox3d< T >::MaxEdge</a>, <a class="el" href="aabbox3d_8h_source.html#l00317">irr::core::aabbox3d< T >::MinEdge</a>, <a class="el" href="triangle3d_8h_source.html#l00239">irr::core::triangle3d< T >::pointA</a>, <a class="el" href="triangle3d_8h_source.html#l00240">irr::core::triangle3d< T >::pointB</a>, and <a class="el" href="triangle3d_8h_source.html#l00241">irr::core::triangle3d< T >::pointC</a>.</p> | ||
608 | |||
609 | </div> | ||
610 | </div> | ||
611 | <a class="anchor" id="a5a3b0b9e0ae5bc1c4c9bf11c06e9d30d"></a><!-- doxytag: member="irr::core::triangle3d::operator!=" ref="a5a3b0b9e0ae5bc1c4c9bf11c06e9d30d" args="(const triangle3d< T > &other) const " --> | ||
612 | <div class="memitem"> | ||
613 | <div class="memproto"> | ||
614 | <div class="memtemplate"> | ||
615 | template<class T> </div> | ||
616 | <table class="memname"> | ||
617 | <tr> | ||
618 | <td class="memname">bool <a class="el" href="classirr_1_1core_1_1triangle3d.html">irr::core::triangle3d</a>< T >::operator!= </td> | ||
619 | <td>(</td> | ||
620 | <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1triangle3d.html">triangle3d</a>< T > & </td> | ||
621 | <td class="paramname"><em>other</em></td><td>)</td> | ||
622 | <td> const<code> [inline]</code></td> | ||
623 | </tr> | ||
624 | </table> | ||
625 | </div> | ||
626 | <div class="memdoc"> | ||
627 | |||
628 | <p>Inequality operator. </p> | ||
629 | |||
630 | <p>Definition at line <a class="el" href="triangle3d_8h_source.html#l00036">36</a> of file <a class="el" href="triangle3d_8h_source.html">triangle3d.h</a>.</p> | ||
631 | |||
632 | </div> | ||
633 | </div> | ||
634 | <a class="anchor" id="a1541eda9f2baabc1f23eecb520c6fef2"></a><!-- doxytag: member="irr::core::triangle3d::operator==" ref="a1541eda9f2baabc1f23eecb520c6fef2" args="(const triangle3d< T > &other) const " --> | ||
635 | <div class="memitem"> | ||
636 | <div class="memproto"> | ||
637 | <div class="memtemplate"> | ||
638 | template<class T> </div> | ||
639 | <table class="memname"> | ||
640 | <tr> | ||
641 | <td class="memname">bool <a class="el" href="classirr_1_1core_1_1triangle3d.html">irr::core::triangle3d</a>< T >::operator== </td> | ||
642 | <td>(</td> | ||
643 | <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1triangle3d.html">triangle3d</a>< T > & </td> | ||
644 | <td class="paramname"><em>other</em></td><td>)</td> | ||
645 | <td> const<code> [inline]</code></td> | ||
646 | </tr> | ||
647 | </table> | ||
648 | </div> | ||
649 | <div class="memdoc"> | ||
650 | |||
651 | <p>Equality operator. </p> | ||
652 | |||
653 | <p>Definition at line <a class="el" href="triangle3d_8h_source.html#l00030">30</a> of file <a class="el" href="triangle3d_8h_source.html">triangle3d.h</a>.</p> | ||
654 | |||
655 | <p>References <a class="el" href="triangle3d_8h_source.html#l00239">irr::core::triangle3d< T >::pointA</a>, <a class="el" href="triangle3d_8h_source.html#l00240">irr::core::triangle3d< T >::pointB</a>, and <a class="el" href="triangle3d_8h_source.html#l00241">irr::core::triangle3d< T >::pointC</a>.</p> | ||
656 | |||
657 | </div> | ||
658 | </div> | ||
659 | <a class="anchor" id="aebcd3f29fcbf9008dac95810c81f152c"></a><!-- doxytag: member="irr::core::triangle3d::set" ref="aebcd3f29fcbf9008dac95810c81f152c" args="(const core::vector3d< T > &a, const core::vector3d< T > &b, const core::vector3d< T > &c)" --> | ||
660 | <div class="memitem"> | ||
661 | <div class="memproto"> | ||
662 | <div class="memtemplate"> | ||
663 | template<class T> </div> | ||
664 | <table class="memname"> | ||
665 | <tr> | ||
666 | <td class="memname">void <a class="el" href="classirr_1_1core_1_1triangle3d.html">irr::core::triangle3d</a>< T >::set </td> | ||
667 | <td>(</td> | ||
668 | <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1vector3d.html">core::vector3d</a>< T > & </td> | ||
669 | <td class="paramname"><em>a</em>, </td> | ||
670 | </tr> | ||
671 | <tr> | ||
672 | <td class="paramkey"></td> | ||
673 | <td></td> | ||
674 | <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1vector3d.html">core::vector3d</a>< T > & </td> | ||
675 | <td class="paramname"><em>b</em>, </td> | ||
676 | </tr> | ||
677 | <tr> | ||
678 | <td class="paramkey"></td> | ||
679 | <td></td> | ||
680 | <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1vector3d.html">core::vector3d</a>< T > & </td> | ||
681 | <td class="paramname"><em>c</em> </td> | ||
682 | </tr> | ||
683 | <tr> | ||
684 | <td></td> | ||
685 | <td>)</td> | ||
686 | <td></td><td><code> [inline]</code></td> | ||
687 | </tr> | ||
688 | </table> | ||
689 | </div> | ||
690 | <div class="memdoc"> | ||
691 | |||
692 | <p>sets the triangle's points </p> | ||
693 | |||
694 | <p>Definition at line <a class="el" href="triangle3d_8h_source.html#l00231">231</a> of file <a class="el" href="triangle3d_8h_source.html">triangle3d.h</a>.</p> | ||
695 | |||
696 | <p>References <a class="el" href="triangle3d_8h_source.html#l00239">irr::core::triangle3d< T >::pointA</a>, <a class="el" href="triangle3d_8h_source.html#l00240">irr::core::triangle3d< T >::pointB</a>, and <a class="el" href="triangle3d_8h_source.html#l00241">irr::core::triangle3d< T >::pointC</a>.</p> | ||
697 | |||
698 | </div> | ||
699 | </div> | ||
700 | <hr/><h2>Member Data Documentation</h2> | ||
701 | <a class="anchor" id="ad4113299162b5855bccf8465b31ff78b"></a><!-- doxytag: member="irr::core::triangle3d::pointA" ref="ad4113299162b5855bccf8465b31ff78b" args="" --> | ||
702 | <div class="memitem"> | ||
703 | <div class="memproto"> | ||
704 | <div class="memtemplate"> | ||
705 | template<class T> </div> | ||
706 | <table class="memname"> | ||
707 | <tr> | ||
708 | <td class="memname"><a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a><T> <a class="el" href="classirr_1_1core_1_1triangle3d.html">irr::core::triangle3d</a>< T >::<a class="el" href="classirr_1_1core_1_1triangle3d.html#ad4113299162b5855bccf8465b31ff78b">pointA</a></td> | ||
709 | </tr> | ||
710 | </table> | ||
711 | </div> | ||
712 | <div class="memdoc"> | ||
713 | |||
714 | <p>the three points of the triangle </p> | ||
715 | |||
716 | <p>Definition at line <a class="el" href="triangle3d_8h_source.html#l00239">239</a> of file <a class="el" href="triangle3d_8h_source.html">triangle3d.h</a>.</p> | ||
717 | |||
718 | <p>Referenced by <a class="el" href="triangle3d_8h_source.html#l00068">irr::core::triangle3d< T >::closestPointOnTriangle()</a>, <a class="el" href="triangle3d_8h_source.html#l00224">irr::core::triangle3d< T >::getArea()</a>, <a class="el" href="triangle3d_8h_source.html#l00169">irr::core::triangle3d< T >::getIntersectionOfPlaneWithLine()</a>, <a class="el" href="triangle3d_8h_source.html#l00199">irr::core::triangle3d< T >::getNormal()</a>, <a class="el" href="triangle3d_8h_source.html#l00218">irr::core::triangle3d< T >::getPlane()</a>, <a class="el" href="triangle3d_8h_source.html#l00089">irr::core::triangle3d< T >::isPointInside()</a>, <a class="el" href="triangle3d_8h_source.html#l00108">irr::core::triangle3d< T >::isPointInsideFast()</a>, <a class="el" href="triangle3d_8h_source.html#l00044">irr::core::triangle3d< T >::isTotalInsideBox()</a>, <a class="el" href="triangle3d_8h_source.html#l00054">irr::core::triangle3d< T >::isTotalOutsideBox()</a>, <a class="el" href="triangle3d_8h_source.html#l00030">irr::core::triangle3d< T >::operator==()</a>, and <a class="el" href="triangle3d_8h_source.html#l00231">irr::core::triangle3d< T >::set()</a>.</p> | ||
719 | |||
720 | </div> | ||
721 | </div> | ||
722 | <a class="anchor" id="a3ed5276e50f3d3b6a1e2483dffa822ac"></a><!-- doxytag: member="irr::core::triangle3d::pointB" ref="a3ed5276e50f3d3b6a1e2483dffa822ac" args="" --> | ||
723 | <div class="memitem"> | ||
724 | <div class="memproto"> | ||
725 | <div class="memtemplate"> | ||
726 | template<class T> </div> | ||
727 | <table class="memname"> | ||
728 | <tr> | ||
729 | <td class="memname"><a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a><T> <a class="el" href="classirr_1_1core_1_1triangle3d.html">irr::core::triangle3d</a>< T >::<a class="el" href="classirr_1_1core_1_1triangle3d.html#a3ed5276e50f3d3b6a1e2483dffa822ac">pointB</a></td> | ||
730 | </tr> | ||
731 | </table> | ||
732 | </div> | ||
733 | <div class="memdoc"> | ||
734 | |||
735 | <p>Definition at line <a class="el" href="triangle3d_8h_source.html#l00240">240</a> of file <a class="el" href="triangle3d_8h_source.html">triangle3d.h</a>.</p> | ||
736 | |||
737 | <p>Referenced by <a class="el" href="triangle3d_8h_source.html#l00068">irr::core::triangle3d< T >::closestPointOnTriangle()</a>, <a class="el" href="triangle3d_8h_source.html#l00224">irr::core::triangle3d< T >::getArea()</a>, <a class="el" href="triangle3d_8h_source.html#l00169">irr::core::triangle3d< T >::getIntersectionOfPlaneWithLine()</a>, <a class="el" href="triangle3d_8h_source.html#l00199">irr::core::triangle3d< T >::getNormal()</a>, <a class="el" href="triangle3d_8h_source.html#l00218">irr::core::triangle3d< T >::getPlane()</a>, <a class="el" href="triangle3d_8h_source.html#l00089">irr::core::triangle3d< T >::isPointInside()</a>, <a class="el" href="triangle3d_8h_source.html#l00108">irr::core::triangle3d< T >::isPointInsideFast()</a>, <a class="el" href="triangle3d_8h_source.html#l00044">irr::core::triangle3d< T >::isTotalInsideBox()</a>, <a class="el" href="triangle3d_8h_source.html#l00054">irr::core::triangle3d< T >::isTotalOutsideBox()</a>, <a class="el" href="triangle3d_8h_source.html#l00030">irr::core::triangle3d< T >::operator==()</a>, and <a class="el" href="triangle3d_8h_source.html#l00231">irr::core::triangle3d< T >::set()</a>.</p> | ||
738 | |||
739 | </div> | ||
740 | </div> | ||
741 | <a class="anchor" id="a08e65517102b6d04f0537b876e152466"></a><!-- doxytag: member="irr::core::triangle3d::pointC" ref="a08e65517102b6d04f0537b876e152466" args="" --> | ||
742 | <div class="memitem"> | ||
743 | <div class="memproto"> | ||
744 | <div class="memtemplate"> | ||
745 | template<class T> </div> | ||
746 | <table class="memname"> | ||
747 | <tr> | ||
748 | <td class="memname"><a class="el" href="classirr_1_1core_1_1vector3d.html">vector3d</a><T> <a class="el" href="classirr_1_1core_1_1triangle3d.html">irr::core::triangle3d</a>< T >::<a class="el" href="classirr_1_1core_1_1triangle3d.html#a08e65517102b6d04f0537b876e152466">pointC</a></td> | ||
749 | </tr> | ||
750 | </table> | ||
751 | </div> | ||
752 | <div class="memdoc"> | ||
753 | |||
754 | <p>Definition at line <a class="el" href="triangle3d_8h_source.html#l00241">241</a> of file <a class="el" href="triangle3d_8h_source.html">triangle3d.h</a>.</p> | ||
755 | |||
756 | <p>Referenced by <a class="el" href="triangle3d_8h_source.html#l00068">irr::core::triangle3d< T >::closestPointOnTriangle()</a>, <a class="el" href="triangle3d_8h_source.html#l00224">irr::core::triangle3d< T >::getArea()</a>, <a class="el" href="triangle3d_8h_source.html#l00169">irr::core::triangle3d< T >::getIntersectionOfPlaneWithLine()</a>, <a class="el" href="triangle3d_8h_source.html#l00199">irr::core::triangle3d< T >::getNormal()</a>, <a class="el" href="triangle3d_8h_source.html#l00218">irr::core::triangle3d< T >::getPlane()</a>, <a class="el" href="triangle3d_8h_source.html#l00089">irr::core::triangle3d< T >::isPointInside()</a>, <a class="el" href="triangle3d_8h_source.html#l00108">irr::core::triangle3d< T >::isPointInsideFast()</a>, <a class="el" href="triangle3d_8h_source.html#l00044">irr::core::triangle3d< T >::isTotalInsideBox()</a>, <a class="el" href="triangle3d_8h_source.html#l00054">irr::core::triangle3d< T >::isTotalOutsideBox()</a>, <a class="el" href="triangle3d_8h_source.html#l00030">irr::core::triangle3d< T >::operator==()</a>, and <a class="el" href="triangle3d_8h_source.html#l00231">irr::core::triangle3d< T >::set()</a>.</p> | ||
757 | |||
758 | </div> | ||
759 | </div> | ||
760 | <hr/>The documentation for this class was generated from the following file:<ul> | ||
761 | <li><a class="el" href="triangle3d_8h_source.html">triangle3d.h</a></li> | ||
762 | </ul> | ||
763 | </div> | ||
764 | </div> | ||
765 | <div id="nav-path" class="navpath"> | ||
766 | <ul> | ||
767 | <li class="navelem"><a class="el" href="namespaceirr.html">irr</a> </li> | ||
768 | <li class="navelem"><a class="el" href="namespaceirr_1_1core.html">core</a> </li> | ||
769 | <li class="navelem"><a class="el" href="classirr_1_1core_1_1triangle3d.html">triangle3d</a> </li> | ||
770 | <!-- window showing the filter options --> | ||
771 | <div id="MSearchSelectWindow" | ||
772 | onmouseover="return searchBox.OnSearchSelectShow()" | ||
773 | onmouseout="return searchBox.OnSearchSelectHide()" | ||
774 | onkeydown="return searchBox.OnSearchSelectKey(event)"> | ||
775 | <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Defines</a></div> | ||
776 | |||
777 | <!-- iframe showing the search results (closed by default) --> | ||
778 | <div id="MSearchResultsWindow"> | ||
779 | <iframe src="javascript:void(0)" frameborder="0" | ||
780 | name="MSearchResults" id="MSearchResults"> | ||
781 | </iframe> | ||
782 | </div> | ||
783 | |||
784 | |||
785 | <li class="footer"> | ||
786 | <a href="http://irrlicht.sourceforge.net" target="_blank">Irrlicht | ||
787 | Engine</a> Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on Tue Nov 6 2012 11:06:03 for Irrlicht 3D Engine by | ||
788 | <a href="http://www.doxygen.org/index.html" target="_blank">Doxygen</a> 1.7.5.1 </li> | ||
789 | </ul> | ||
790 | </div> | ||
791 | |||
792 | |||
793 | </body> | ||
794 | </html> | ||