aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a02759.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--docs/doxygen/nel/a02759.html243
1 files changed, 243 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02759.html b/docs/doxygen/nel/a02759.html
new file mode 100644
index 00000000..786b3131
--- /dev/null
+++ b/docs/doxygen/nel/a02759.html
@@ -0,0 +1,243 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>NeL: NLMISC::CLine class Reference</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<!-- Generated by Doxygen 1.3.6 -->
+<div class="qindex"> <form class="search" action="search.php" method="get">
+<a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a> | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
+<h1>NLMISC::CLine Class Reference</h1><code>#include &lt;<a class="el" href="a05910.html">line.h</a>&gt;</code>
+<p>
+<p>Inheritance diagram for NLMISC::CLine:
+<p><center><img src="a02759.png" usemap="#NLMISC::CLine_map" border="0" alt=""></center>
+<map name="NLMISC::CLine_map">
+<area href="a02762.html" alt="NLMISC::CLineColor" shape="rect" coords="0,56,146,80">
+<area href="a02763.html" alt="NLMISC::CLineColorUV" shape="rect" coords="156,56,302,80">
+<area href="a02764.html" alt="NLMISC::CLineUV" shape="rect" coords="312,56,458,80">
+</map>
+<hr><a name="_details"></a><h2>Detailed Description</h2>
+A simple couple of vertex. <dl compact><dt><b>Author:</b></dt><dd>Lionel Berenguier <p>
+Nevrax France </dd></dl>
+<dl compact><dt><b>Date:</b></dt><dd>2000 </dd></dl>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05910.html#l00045">45</a> of file <a class="el" href="a05910.html">line.h</a>.<table border=0 cellpadding=0 cellspacing=0>
+<tr><td></td></tr>
+<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02759.html#NLMISC_1_1CLinea0">CLine</a> (const <a class="el" href="a03128.html">CVector</a> &amp;v0, const <a class="el" href="a03128.html">CVector</a> &amp;v1)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02759.html#NLMISC_1_1CLinea1">CLine</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">default ctor <a href="#NLMISC_1_1CLinea1"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02759.html#NLMISC_1_1CLineUVa2">project</a> (const <a class="el" href="a03128.html">CVector</a> &amp;inV, <a class="el" href="a03128.html">CVector</a> &amp;outV)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Project a vector on this line. <a href="#NLMISC_1_1CLineUVa2"></a><br><br></td></tr>
+<tr><td colspan=2><br><h2>Data Fields</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03128.html">CVector</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02759.html#NLMISC_1_1CLineUVo2">V0</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03128.html">CVector</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02759.html#NLMISC_1_1CLineUVo3">V1</a></td></tr>
+
+</table>
+<hr><h2>Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CLinea1" doxytag="NLMISC::CLine::CLine" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> NLMISC::CLine::CLine </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+default ctor
+<p>
+
+<p>
+Definition at line <a class="el" href="a05910.html#l00052">52</a> of file <a class="el" href="a05910.html">line.h</a>.
+<p>
+<div class="fragment"><pre>00052 {}
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CLinea0" doxytag="NLMISC::CLine::CLine" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> NLMISC::CLine::CLine </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03128.html">CVector</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>v0</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>const <a class="el" href="a03128.html">CVector</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>v1</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05910.html#l00054">54</a> of file <a class="el" href="a05910.html">line.h</a>.
+<p>
+<div class="fragment"><pre>00054 : <a class="code" href="a02759.html#NLMISC_1_1CLineUVo2">V0</a>(v0), <a class="code" href="a02759.html#NLMISC_1_1CLineUVo3">V1</a>(v1)
+00055 {}
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CLineUVa2" doxytag="NLMISC::CLine::project" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLMISC::CLine::project </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03128.html">CVector</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>inV</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a03128.html">CVector</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>outV</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Project a vector on this line.
+<p>
+
+<p>
+Definition at line <a class="el" href="a05909.html#l00034">34</a> of file <a class="el" href="a05909.html">line.cpp</a>.
+<p>
+References <a class="el" href="a06682.html#l00111">NLMISC::CVector::sqrnorm()</a>.
+<p>
+<div class="fragment"><pre>00035 {
+00036 CVector seg = <a class="code" href="a02759.html#NLMISC_1_1CLineUVo3">V1</a> - <a class="code" href="a02759.html#NLMISC_1_1CLineUVo2">V0</a>;
+00037 <span class="keywordtype">float</span> n = seg.sqrnorm();
+00038 <span class="keywordflow">if</span> (n == 0.f)
+00039 {
+00040 outV = <a class="code" href="a02759.html#NLMISC_1_1CLineUVo2">V0</a>;
+00041 }
+00042 <span class="keywordflow">else</span>
+00043 {
+00044 <span class="keywordtype">float</span> dp = (inV - <a class="code" href="a02759.html#NLMISC_1_1CLineUVo2">V0</a>) * seg;
+00045 outV = <a class="code" href="a02759.html#NLMISC_1_1CLineUVo2">V0</a> + (dp / n) * seg;
+00046 }
+00047 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CLineUVo2" doxytag="NLMISC::CLine::V0" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a03128.html">CVector</a> <a class="el" href="a02759.html#NLMISC_1_1CLineUVo2">NLMISC::CLine::V0</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05910.html#l00048">48</a> of file <a class="el" href="a05910.html">line.h</a>.
+<p>
+Referenced by <a class="el" href="a06246.html#l02038">NL3D::CPSLocatedBindable::displayIcon2d()</a>, and <a class="el" href="a05657.html#l00504">NL3D::CDriverUser::drawLine()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CLineUVo3" doxytag="NLMISC::CLine::V1" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a03128.html">CVector</a> <a class="el" href="a02759.html#NLMISC_1_1CLineUVo3">NLMISC::CLine::V1</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05910.html#l00048">48</a> of file <a class="el" href="a05910.html">line.h</a>.
+<p>
+Referenced by <a class="el" href="a06246.html#l02038">NL3D::CPSLocatedBindable::displayIcon2d()</a>, and <a class="el" href="a05657.html#l00504">NL3D::CDriverUser::drawLine()</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="a05910.html">line.h</a><li><a class="el" href="a05909.html">line.cpp</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 13:20:08 2004 for NeL by
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
+</a>1.3.6 </small></address>
+</body>
+</html>