aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a03662.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/doxygen/nel/a03662.html')
-rw-r--r--docs/doxygen/nel/a03662.html1540
1 files changed, 1540 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03662.html b/docs/doxygen/nel/a03662.html
new file mode 100644
index 00000000..3a5ac71a
--- /dev/null
+++ b/docs/doxygen/nel/a03662.html
@@ -0,0 +1,1540 @@
+<!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: NLPACS::CVector2s 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>NLPACS::CVector2s Class Reference</h1><code>#include &lt;<a class="el" href="a06679.html">vector_2s.h</a>&gt;</code>
+<p>
+<hr><a name="_details"></a><h2>Detailed Description</h2>
+<dl compact><dt><b>Author:</b></dt><dd>Benjamin Legros <p>
+Nevrax France </dd></dl>
+<dl compact><dt><b>Date:</b></dt><dd>2001 </dd></dl>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06679.html#l00046">46</a> of file <a class="el" href="a06679.html">vector_2s.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>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sa0">pack</a> (const <a class="el" href="a03660.html">NLMISC::CVector2f</a> &amp;<a class="el" href="a04223.html#a576">v</a>)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sa1">pack</a> (const <a class="el" href="a03128.html">NLMISC::CVector</a> &amp;<a class="el" href="a04223.html#a576">v</a>)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03660.html">NLMISC::CVector2f</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sa2">unpack</a> () const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03128.html">NLMISC::CVector</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sa3">unpack3f</a> (float hintz=0.0f) const </td></tr>
+
+<tr><td colspan="2"><div class="groupHeader">Object.</div></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sz1286_0">CVector2s</a> (const <a class="el" href="a03128.html">NLMISC::CVector</a> &amp;<a class="el" href="a04223.html#a576">v</a>)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sz1286_1">CVector2s</a> (const <a class="el" href="a03662.html">CVector2s</a> &amp;<a class="el" href="a04223.html#a576">v</a>)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy Constructor. <a href="#NLPACS_1_1CVector2sz1286_1"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sz1286_2">CVector2s</a> (<a class="el" href="a04558.html#a8">sint16</a> _x, <a class="el" href="a04558.html#a8">sint16</a> _y)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor . <a href="#NLPACS_1_1CVector2sz1286_2"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sz1286_3">CVector2s</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor which do nothing. <a href="#NLPACS_1_1CVector2sz1286_3"></a><br><br></td></tr>
+<tr><td colspan="2"><div class="groupHeader">Misc.</div></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sz1292_0">isNull</a> () const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sz1292_1">maxof</a> (const <a class="el" href="a03662.html">CVector2s</a> &amp;a, const <a class="el" href="a03662.html">CVector2s</a> &amp;b)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set all vector x/y/z as maximum of a/b x/y/z (respectively). <a href="#NLPACS_1_1CVector2sz1292_1"></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="a03662.html#NLPACS_1_1CVector2sz1292_2">minof</a> (const <a class="el" href="a03662.html">CVector2s</a> &amp;a, const <a class="el" href="a03662.html">CVector2s</a> &amp;b)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set all vector x/y/z as minimum of a/b x/y/z (respectively). <a href="#NLPACS_1_1CVector2sz1292_2"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sz1292_3">operator!=</a> (const <a class="el" href="a03662.html">CVector2s</a> &amp;<a class="el" href="a04223.html#a576">v</a>) const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sz1292_4">operator==</a> (const <a class="el" href="a03662.html">CVector2s</a> &amp;<a class="el" href="a04223.html#a576">v</a>) const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sz1292_5">serial</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &amp;f)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">serial. <a href="#NLPACS_1_1CVector2sz1292_5"></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="a03662.html#NLPACS_1_1CVector2sz1292_6">set</a> (<a class="el" href="a04558.html#a8">sint16</a> _x, <a class="el" href="a04558.html#a8">sint16</a> _y)</td></tr>
+
+<tr><td colspan="2"><div class="groupHeader">Advanced Maths.</div></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sz1290_0">norm</a> () const </td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the norm of the vector. <a href="#NLPACS_1_1CVector2sz1290_0"></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="a03662.html#NLPACS_1_1CVector2sz1290_1">normalize</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Normalize the vector. <a href="#NLPACS_1_1CVector2sz1290_1"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03662.html">CVector2s</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sz1290_2">normed</a> () const </td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the vector normalized. <a href="#NLPACS_1_1CVector2sz1290_2"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sz1290_3">operator *</a> (const <a class="el" href="a03662.html">CVector2s</a> &amp;<a class="el" href="a04223.html#a576">v</a>) const </td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Dot product. <a href="#NLPACS_1_1CVector2sz1290_3"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sz1290_4">sqrnorm</a> () const </td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the square of the norm of the vector. <a href="#NLPACS_1_1CVector2sz1290_4"></a><br><br></td></tr>
+<tr><td colspan="2"><div class="groupHeader">Base Maths.</div></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03662.html">CVector2s</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sz1288_0">operator *</a> (float f) const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03662.html">CVector2s</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sz1288_1">operator *=</a> (float f)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03662.html">CVector2s</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sz1288_2">operator+</a> (const <a class="el" href="a03662.html">CVector2s</a> &amp;<a class="el" href="a04223.html#a576">v</a>) const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03662.html">CVector2s</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sz1288_3">operator+=</a> (const <a class="el" href="a03662.html">CVector2s</a> &amp;<a class="el" href="a04223.html#a576">v</a>)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03662.html">CVector2s</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sz1288_4">operator-</a> () const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03662.html">CVector2s</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sz1288_5">operator-</a> (const <a class="el" href="a03662.html">CVector2s</a> &amp;<a class="el" href="a04223.html#a576">v</a>) const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03662.html">CVector2s</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sz1288_6">operator-=</a> (const <a class="el" href="a03662.html">CVector2s</a> &amp;<a class="el" href="a04223.html#a576">v</a>)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03662.html">CVector2s</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sz1288_7">operator/</a> (float f) const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03662.html">CVector2s</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sz1288_8">operator/=</a> (float f)</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="a04558.html#a8">sint16</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2so0">x</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a8">sint16</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2so1">y</a></td></tr>
+
+<tr><td colspan=2><br><h2>Static Private Member Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sh0">checkCastSint16</a> (float f)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sh1">checkCastSint16</a> (<a class="el" href="a04558.html#a12">sint64</a> <a class="el" href="a04223.html#a626">s</a>)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a8">sint16</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sh2">pack</a> (float f)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a8">sint16</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sh3">safeCastSint16</a> (float f)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a8">sint16</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sh4">safeCastSint16</a> (<a class="el" href="a04558.html#a12">sint64</a> <a class="el" href="a04223.html#a626">s</a>)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03662.html#NLPACS_1_1CVector2sh5">unpack</a> (<a class="el" href="a04558.html#a8">sint16</a> <a class="el" href="a04223.html#a626">s</a>)</td></tr>
+
+</table>
+<hr><h2>Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" name="NLPACS_1_1CVector2sz1286_3" doxytag="NLPACS::CVector2s::CVector2s" ></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"> NLPACS::CVector2s::CVector2s </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>
+Constructor which do nothing.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06679.html#l00105">105</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+Referenced by <a class="el" href="a06679.html#l00124">operator *()</a>, <a class="el" href="a06679.html#l00118">operator+()</a>, <a class="el" href="a06679.html#l00119">operator-()</a>, and <a class="el" href="a06679.html#l00125">operator/()</a>.
+<p>
+<div class="fragment"><pre>00105 {}
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sz1286_2" doxytag="NLPACS::CVector2s::CVector2s" ></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"> NLPACS::CVector2s::CVector2s </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a8">sint16</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>_x</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a8">sint16</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>_y</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>
+Constructor .
+<p>
+
+<p>
+Definition at line <a class="el" href="a06679.html#l00107">107</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a05981.html#l00097">sint16</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+<div class="fragment"><pre>00107 : <a class="code" href="a03662.html#NLPACS_1_1CVector2so0">x</a>(_x), <a class="code" href="a03662.html#NLPACS_1_1CVector2so1">y</a>(_y) {}
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sz1286_1" doxytag="NLPACS::CVector2s::CVector2s" ></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"> NLPACS::CVector2s::CVector2s </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03662.html">CVector2s</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>v</em> </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>
+Copy Constructor.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06679.html#l00109">109</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a05646.html#l00237">v</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+<div class="fragment"><pre>00109 : <a class="code" href="a03662.html#NLPACS_1_1CVector2so0">x</a>(<a class="code" href="a04223.html#a576">v</a>.x), <a class="code" href="a03662.html#NLPACS_1_1CVector2so1">y</a>(<a class="code" href="a04223.html#a576">v</a>.y) {}
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sz1286_0" doxytag="NLPACS::CVector2s::CVector2s" ></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"> NLPACS::CVector2s::CVector2s </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03128.html">NLMISC::CVector</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>v</em> </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>
+
+<p>
+Definition at line <a class="el" href="a06679.html#l00110">110</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a06679.html#l00087">pack()</a>, and <a class="el" href="a05646.html#l00237">v</a>.
+<p>
+<div class="fragment"><pre>00110 { <a class="code" href="a03662.html#NLPACS_1_1CVector2sh2">pack</a>(v); }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a class="anchor" name="NLPACS_1_1CVector2sh0" doxytag="NLPACS::CVector2s::checkCastSint16" ></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"> bool NLPACS::CVector2s::checkCastSint16 </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">float&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>f</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline, static, private]</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="a06679.html#l00079">79</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a05646.html#l00977">s</a>, and <a class="el" href="a05981.html#l00101">sint64</a>.
+<p>
+<div class="fragment"><pre>00080 {
+00081 <a class="code" href="a04558.html#a12">sint64</a> <a class="code" href="a04223.html#a626">s</a> = (<a class="code" href="a04558.html#a12">sint64</a>)f;
+00082 <span class="keywordflow">return</span> (<a class="code" href="a04223.html#a626">s&lt;=32767 &amp;&amp; s&gt;</a>=-32768);
+00083 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sh1" doxytag="NLPACS::CVector2s::checkCastSint16" ></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"> bool NLPACS::CVector2s::checkCastSint16 </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a12">sint64</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>s</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline, static, private]</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="a06679.html#l00073">73</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a05646.html#l00977">s</a>, and <a class="el" href="a05981.html#l00101">sint64</a>.
+<p>
+<div class="fragment"><pre>00074 {
+00075 <span class="keywordflow">return</span> (<a class="code" href="a04223.html#a626">s&lt;=32767 &amp;&amp; s&gt;</a>=-32768);
+00076 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sz1292_0" doxytag="NLPACS::CVector2s::isNull" ></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"> bool NLPACS::CVector2s::isNull </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> const<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="a06679.html#l00157">157</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+<div class="fragment"><pre>00157 {<span class="keywordflow">return</span> <a class="code" href="a04223.html#a572">x</a>==0.0f &amp;&amp; <a class="code" href="a04223.html#a573">y</a>==0.0f;}
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sz1292_1" doxytag="NLPACS::CVector2s::maxof" ></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 NLPACS::CVector2s::maxof </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03662.html">CVector2s</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>a</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>const <a class="el" href="a03662.html">CVector2s</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>b</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>
+Set all vector x/y/z as maximum of a/b x/y/z (respectively).
+<p>
+
+<p>
+Definition at line <a class="el" href="a06679.html#l00165">165</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a06679.html#l00099">x</a>, <a class="el" href="a05646.html#l00236">x</a>, <a class="el" href="a06679.html#l00099">y</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+Referenced by <a class="el" href="a05540.html#l00161">NLPACS::COrderedChain::pack()</a>, and <a class="el" href="a05539.html#l00158">NLPACS::COrderedChain::serial()</a>.
+<p>
+<div class="fragment"><pre>00166 {
+00167 <a class="code" href="a04223.html#a572">x</a>= std::max(a.x, b.x);
+00168 <a class="code" href="a04223.html#a573">y</a>= std::max(a.y, b.y);
+00169 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sz1292_2" doxytag="NLPACS::CVector2s::minof" ></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 NLPACS::CVector2s::minof </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03662.html">CVector2s</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>a</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>const <a class="el" href="a03662.html">CVector2s</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>b</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>
+Set all vector x/y/z as minimum of a/b x/y/z (respectively).
+<p>
+
+<p>
+Definition at line <a class="el" href="a06679.html#l00159">159</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a05484.html#l00038">min</a>, <a class="el" href="a06679.html#l00099">x</a>, <a class="el" href="a05646.html#l00236">x</a>, <a class="el" href="a06679.html#l00099">y</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+Referenced by <a class="el" href="a05540.html#l00178">NLPACS::COrderedChain::computeMinMax()</a>, and <a class="el" href="a05540.html#l00161">NLPACS::COrderedChain::pack()</a>.
+<p>
+<div class="fragment"><pre>00160 {
+00161 <a class="code" href="a04223.html#a572">x</a>= <a class="code" href="a04061.html#a0">std::min</a>(a.x, b.x);
+00162 <a class="code" href="a04223.html#a573">y</a>= <a class="code" href="a04061.html#a0">std::min</a>(a.y, b.y);
+00163 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sz1290_0" doxytag="NLPACS::CVector2s::norm" ></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"> float NLPACS::CVector2s::norm </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> const<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Return the norm of the vector.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06679.html#l00133">133</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a06679.html#l00135">sqrnorm()</a>.
+<p>
+Referenced by <a class="el" href="a06679.html#l00137">normalize()</a>.
+<p>
+<div class="fragment"><pre>00133 {<span class="keywordflow">return</span> (<span class="keywordtype">float</span>)sqrt(<a class="code" href="a03662.html#NLPACS_1_1CVector2sz1290_4">sqrnorm</a>());}
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sz1290_1" doxytag="NLPACS::CVector2s::normalize" ></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 NLPACS::CVector2s::normalize </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>
+Normalize the vector.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06679.html#l00137">137</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a06679.html#l00133">norm()</a>.
+<p>
+<div class="fragment"><pre>00138 {
+00139 <span class="keywordtype">float</span> f= <a class="code" href="a03662.html#NLPACS_1_1CVector2sz1290_0">norm</a>();
+00140 <span class="keywordflow">if</span>(f&gt;0)
+00141 *<span class="keyword">this</span>/=f;
+00142 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sz1290_2" doxytag="NLPACS::CVector2s::normed" ></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="a03662.html">CVector2s</a> NLPACS::CVector2s::normed </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> const<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Return the vector normalized.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06679.html#l00144">144</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a05646.html#l00237">v</a>.
+<p>
+<div class="fragment"><pre>00145 {
+00146 <a class="code" href="a03662.html#NLPACS_1_1CVector2sz1286_3">CVector2s</a> <a class="code" href="a04223.html#a576">v</a>= *<span class="keyword">this</span>;
+00147 <a class="code" href="a04223.html#a576">v</a>.normalize();
+00148 <span class="keywordflow">return</span> <a class="code" href="a04223.html#a576">v</a>;
+00149 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sz1290_3" doxytag="NLPACS::CVector2s::operator *" ></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"> float NLPACS::CVector2s::operator * </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03662.html">CVector2s</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>v</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Dot product.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06679.html#l00131">131</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a05646.html#l00237">v</a>, <a class="el" href="a06679.html#l00038">NLPACS::Vector2sAccuracy</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+<div class="fragment"><pre>00131 {<span class="keywordflow">return</span> ((<span class="keywordtype">float</span>)<a class="code" href="a04223.html#a572">x</a>*(<span class="keywordtype">float</span>)<a class="code" href="a04223.html#a576">v</a>.x + (<span class="keywordtype">float</span>)<a class="code" href="a04223.html#a573">y</a>*(<span class="keywordtype">float</span>)<a class="code" href="a04223.html#a576">v</a>.y)/(<a class="code" href="a05380.html#a15">Vector2sAccuracy</a>*<a class="code" href="a05380.html#a15">Vector2sAccuracy</a>);}
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sz1288_0" doxytag="NLPACS::CVector2s::operator *" ></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="a03662.html">CVector2s</a> NLPACS::CVector2s::operator * </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">float&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>f</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<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="a06679.html#l00124">124</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a06679.html#l00105">CVector2s()</a>, <a class="el" href="a06679.html#l00050">safeCastSint16()</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+<div class="fragment"><pre>00124 {<span class="keywordflow">return</span> <a class="code" href="a03662.html#NLPACS_1_1CVector2sz1286_3">CVector2s</a>(<a class="code" href="a03662.html#NLPACS_1_1CVector2sh4">safeCastSint16</a>(<a class="code" href="a04223.html#a572">x</a>*f), <a class="code" href="a03662.html#NLPACS_1_1CVector2sh4">safeCastSint16</a>(<a class="code" href="a04223.html#a573">y</a>*f));}
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sz1288_1" doxytag="NLPACS::CVector2s::operator *=" ></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="a03662.html">CVector2s</a>&amp; NLPACS::CVector2s::operator *= </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">float&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>f</em> </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>
+
+<p>
+Definition at line <a class="el" href="a06679.html#l00122">122</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a06679.html#l00050">safeCastSint16()</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+<div class="fragment"><pre>00122 { <a class="code" href="a04223.html#a572">x</a> = <a class="code" href="a03662.html#NLPACS_1_1CVector2sh4">safeCastSint16</a>(f*<a class="code" href="a04223.html#a572">x</a>); <a class="code" href="a04223.html#a573">y</a> = <a class="code" href="a03662.html#NLPACS_1_1CVector2sh4">safeCastSint16</a>(f*<a class="code" href="a04223.html#a573">y</a>); <span class="keywordflow">return</span> *<span class="keyword">this</span>; }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sz1292_3" doxytag="NLPACS::CVector2s::operator!=" ></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"> bool NLPACS::CVector2s::operator!= </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03662.html">CVector2s</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>v</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<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="a06679.html#l00156">156</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a05646.html#l00237">v</a>.
+<p>
+<div class="fragment"><pre>00156 {<span class="keywordflow">return</span> !(*<span class="keyword">this</span>==<a class="code" href="a04223.html#a576">v</a>);}
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sz1288_2" doxytag="NLPACS::CVector2s::operator+" ></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="a03662.html">CVector2s</a> NLPACS::CVector2s::operator+ </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03662.html">CVector2s</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>v</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<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="a06679.html#l00118">118</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a06679.html#l00105">CVector2s()</a>, <a class="el" href="a06679.html#l00050">safeCastSint16()</a>, <a class="el" href="a05981.html#l00101">sint64</a>, <a class="el" href="a05646.html#l00237">v</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+<div class="fragment"><pre>00118 {<span class="keywordflow">return</span> <a class="code" href="a03662.html#NLPACS_1_1CVector2sz1286_3">CVector2s</a>(<a class="code" href="a03662.html#NLPACS_1_1CVector2sh4">safeCastSint16</a>((<a class="code" href="a04558.html#a12">sint64</a>)<a class="code" href="a04223.html#a576">v</a>.x+(<a class="code" href="a04558.html#a12">sint64</a>)<a class="code" href="a04223.html#a572">x</a>), <a class="code" href="a03662.html#NLPACS_1_1CVector2sh4">safeCastSint16</a>((sint64)<a class="code" href="a04223.html#a576">v</a>.y+(sint64)<a class="code" href="a04223.html#a573">y</a>));}
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sz1288_3" doxytag="NLPACS::CVector2s::operator+=" ></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="a03662.html">CVector2s</a>&amp; NLPACS::CVector2s::operator+= </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03662.html">CVector2s</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>v</em> </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>
+
+<p>
+Definition at line <a class="el" href="a06679.html#l00116">116</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a06679.html#l00050">safeCastSint16()</a>, <a class="el" href="a05981.html#l00101">sint64</a>, <a class="el" href="a05646.html#l00237">v</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+<div class="fragment"><pre>00116 {<a class="code" href="a04223.html#a572">x</a>=<a class="code" href="a03662.html#NLPACS_1_1CVector2sh4">safeCastSint16</a>((<a class="code" href="a04558.html#a12">sint64</a>)<a class="code" href="a04223.html#a576">v</a>.x+(<a class="code" href="a04558.html#a12">sint64</a>)<a class="code" href="a04223.html#a572">x</a>); <a class="code" href="a04223.html#a573">y</a>=<a class="code" href="a03662.html#NLPACS_1_1CVector2sh4">safeCastSint16</a>((<a class="code" href="a04558.html#a12">sint64</a>)<a class="code" href="a04223.html#a576">v</a>.y+(<a class="code" href="a04558.html#a12">sint64</a>)<a class="code" href="a04223.html#a573">y</a>); <span class="keywordflow">return</span> *<span class="keyword">this</span>;}
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sz1288_4" doxytag="NLPACS::CVector2s::operator-" ></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="a03662.html">CVector2s</a> NLPACS::CVector2s::operator- </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> const<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="a06679.html#l00120">120</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a06679.html#l00105">CVector2s()</a>, <a class="el" href="a06679.html#l00050">safeCastSint16()</a>, <a class="el" href="a05981.html#l00101">sint64</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+<div class="fragment"><pre>00120 {<span class="keywordflow">return</span> <a class="code" href="a03662.html#NLPACS_1_1CVector2sz1286_3">CVector2s</a>(<a class="code" href="a03662.html#NLPACS_1_1CVector2sh4">safeCastSint16</a>(-(<a class="code" href="a04558.html#a12">sint64</a>)<a class="code" href="a04223.html#a572">x</a>), <a class="code" href="a03662.html#NLPACS_1_1CVector2sh4">safeCastSint16</a>(-(<a class="code" href="a04558.html#a12">sint64</a>)<a class="code" href="a04223.html#a573">y</a>));}
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sz1288_5" doxytag="NLPACS::CVector2s::operator-" ></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="a03662.html">CVector2s</a> NLPACS::CVector2s::operator- </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03662.html">CVector2s</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>v</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<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="a06679.html#l00119">119</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a06679.html#l00105">CVector2s()</a>, <a class="el" href="a06679.html#l00050">safeCastSint16()</a>, <a class="el" href="a05981.html#l00101">sint64</a>, <a class="el" href="a05646.html#l00237">v</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+<div class="fragment"><pre>00119 {<span class="keywordflow">return</span> <a class="code" href="a03662.html#NLPACS_1_1CVector2sz1286_3">CVector2s</a>(<a class="code" href="a03662.html#NLPACS_1_1CVector2sh4">safeCastSint16</a>((<a class="code" href="a04558.html#a12">sint64</a>)<a class="code" href="a04223.html#a576">v</a>.x-(<a class="code" href="a04558.html#a12">sint64</a>)<a class="code" href="a04223.html#a572">x</a>), <a class="code" href="a03662.html#NLPACS_1_1CVector2sh4">safeCastSint16</a>((sint64)<a class="code" href="a04223.html#a576">v</a>.y-(sint64)<a class="code" href="a04223.html#a573">y</a>));}
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sz1288_6" doxytag="NLPACS::CVector2s::operator-=" ></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="a03662.html">CVector2s</a>&amp; NLPACS::CVector2s::operator-= </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03662.html">CVector2s</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>v</em> </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>
+
+<p>
+Definition at line <a class="el" href="a06679.html#l00117">117</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a06679.html#l00050">safeCastSint16()</a>, <a class="el" href="a05981.html#l00101">sint64</a>, <a class="el" href="a05646.html#l00237">v</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+<div class="fragment"><pre>00117 {<a class="code" href="a04223.html#a572">x</a>=<a class="code" href="a03662.html#NLPACS_1_1CVector2sh4">safeCastSint16</a>((<a class="code" href="a04558.html#a12">sint64</a>)<a class="code" href="a04223.html#a576">v</a>.x-(<a class="code" href="a04558.html#a12">sint64</a>)<a class="code" href="a04223.html#a572">x</a>); <a class="code" href="a04223.html#a573">y</a>=<a class="code" href="a03662.html#NLPACS_1_1CVector2sh4">safeCastSint16</a>((<a class="code" href="a04558.html#a12">sint64</a>)<a class="code" href="a04223.html#a576">v</a>.y-(<a class="code" href="a04558.html#a12">sint64</a>)<a class="code" href="a04223.html#a573">y</a>); <span class="keywordflow">return</span> *<span class="keyword">this</span>;}
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sz1288_7" doxytag="NLPACS::CVector2s::operator/" ></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="a03662.html">CVector2s</a> NLPACS::CVector2s::operator/ </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">float&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>f</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<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="a06679.html#l00125">125</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a06679.html#l00105">CVector2s()</a>, <a class="el" href="a06679.html#l00050">safeCastSint16()</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+<div class="fragment"><pre>00125 {<span class="keywordflow">return</span> <a class="code" href="a03662.html#NLPACS_1_1CVector2sz1286_3">CVector2s</a>(<a class="code" href="a03662.html#NLPACS_1_1CVector2sh4">safeCastSint16</a>(<a class="code" href="a04223.html#a572">x</a>/f), <a class="code" href="a03662.html#NLPACS_1_1CVector2sh4">safeCastSint16</a>(<a class="code" href="a04223.html#a573">y</a>/f));}
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sz1288_8" doxytag="NLPACS::CVector2s::operator/=" ></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="a03662.html">CVector2s</a>&amp; NLPACS::CVector2s::operator/= </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">float&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>f</em> </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>
+
+<p>
+Definition at line <a class="el" href="a06679.html#l00123">123</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a06679.html#l00050">safeCastSint16()</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+<div class="fragment"><pre>00123 { <a class="code" href="a04223.html#a572">x</a> = <a class="code" href="a03662.html#NLPACS_1_1CVector2sh4">safeCastSint16</a>(f/<a class="code" href="a04223.html#a572">x</a>); <a class="code" href="a04223.html#a573">y</a> = <a class="code" href="a03662.html#NLPACS_1_1CVector2sh4">safeCastSint16</a>(f/<a class="code" href="a04223.html#a573">y</a>); <span class="keywordflow">return</span> *<span class="keyword">this</span>; }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sz1292_4" doxytag="NLPACS::CVector2s::operator==" ></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"> bool NLPACS::CVector2s::operator== </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03662.html">CVector2s</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>v</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<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="a06679.html#l00155">155</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a05646.html#l00237">v</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+<div class="fragment"><pre>00155 {<span class="keywordflow">return</span> <a class="code" href="a04223.html#a572">x</a>==<a class="code" href="a04223.html#a576">v</a>.x &amp;&amp; <a class="code" href="a04223.html#a573">y</a>==<a class="code" href="a04223.html#a576">v</a>.y;}
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sa0" doxytag="NLPACS::CVector2s::pack" ></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 NLPACS::CVector2s::pack </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03660.html">NLMISC::CVector2f</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>v</em> </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>
+
+<p>
+Definition at line <a class="el" href="a06679.html#l00175">175</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a06679.html#l00087">pack()</a>, <a class="el" href="a05646.html#l00237">v</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+<div class="fragment"><pre>00175 { <a class="code" href="a04223.html#a572">x</a> = <a class="code" href="a03662.html#NLPACS_1_1CVector2sh2">pack</a>(<a class="code" href="a04223.html#a576">v</a>.x); <a class="code" href="a04223.html#a573">y</a> = <a class="code" href="a03662.html#NLPACS_1_1CVector2sh2">pack</a>(<a class="code" href="a04223.html#a576">v</a>.y); }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sa1" doxytag="NLPACS::CVector2s::pack" ></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 NLPACS::CVector2s::pack </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03128.html">NLMISC::CVector</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>v</em> </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>
+
+<p>
+Definition at line <a class="el" href="a06679.html#l00174">174</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a06679.html#l00087">pack()</a>, <a class="el" href="a05646.html#l00237">v</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+<div class="fragment"><pre>00174 { <a class="code" href="a04223.html#a572">x</a> = <a class="code" href="a03662.html#NLPACS_1_1CVector2sh2">pack</a>(<a class="code" href="a04223.html#a576">v</a>.x); <a class="code" href="a04223.html#a573">y</a> = <a class="code" href="a03662.html#NLPACS_1_1CVector2sh2">pack</a>(<a class="code" href="a04223.html#a576">v</a>.y); }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sh2" doxytag="NLPACS::CVector2s::pack" ></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="a04558.html#a8">sint16</a> NLPACS::CVector2s::pack </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">float&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>f</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline, static, private]</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="a06679.html#l00087">87</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a06679.html#l00050">safeCastSint16()</a>, <a class="el" href="a05981.html#l00097">sint16</a>, and <a class="el" href="a06679.html#l00038">NLPACS::Vector2sAccuracy</a>.
+<p>
+Referenced by <a class="el" href="a06679.html#l00110">CVector2s()</a>, <a class="el" href="a06679.html#l00174">pack()</a>, and <a class="el" href="a05539.html#l00083">NLPACS::COrderedChain::translate()</a>.
+<p>
+<div class="fragment"><pre>00088 {
+00089 <span class="keywordflow">return</span> <a class="code" href="a03662.html#NLPACS_1_1CVector2sh4">safeCastSint16</a>(f*Vector2sAccuracy);
+00090 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sh3" doxytag="NLPACS::CVector2s::safeCastSint16" ></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="a04558.html#a8">sint16</a> NLPACS::CVector2s::safeCastSint16 </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">float&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>f</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline, static, private]</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="a06679.html#l00060">60</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a05622.html#l00154">nlerror</a>, <a class="el" href="a05646.html#l00977">s</a>, <a class="el" href="a05981.html#l00097">sint16</a>, and <a class="el" href="a05981.html#l00101">sint64</a>.
+<p>
+<div class="fragment"><pre>00061 {
+00062 <span class="preprocessor">#ifdef NL_DEBUG</span>
+00063 <span class="preprocessor"></span> <a class="code" href="a04558.html#a12">sint64</a> <a class="code" href="a04223.html#a626">s</a> = (<a class="code" href="a04558.html#a12">sint64</a>)f;
+00064 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a626">s</a>&gt;32767 || <a class="code" href="a04223.html#a626">s</a>&lt;-32768)
+00065 <a class="code" href="a04199.html#a3">nlerror</a>(<span class="stringliteral">"in CVector2s::safeCastSint16(float): value doesn't fit sint16 (value=%f)"</span>, f);
+00066 <span class="keywordflow">return</span> (<a class="code" href="a04558.html#a8">sint16</a>)<a class="code" href="a04223.html#a626">s</a>;
+00067 <span class="preprocessor">#else</span>
+00068 <span class="preprocessor"></span> <span class="keywordflow">return</span> (<a class="code" href="a04558.html#a8">sint16</a>)f;
+00069 <span class="preprocessor">#endif</span>
+00070 <span class="preprocessor"></span> }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sh4" doxytag="NLPACS::CVector2s::safeCastSint16" ></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="a04558.html#a8">sint16</a> NLPACS::CVector2s::safeCastSint16 </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a12">sint64</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>s</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline, static, private]</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="a06679.html#l00050">50</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a05981.html#l00107">NL_I64</a>, <a class="el" href="a05622.html#l00154">nlerror</a>, <a class="el" href="a05646.html#l00977">s</a>, <a class="el" href="a05981.html#l00097">sint16</a>, and <a class="el" href="a05981.html#l00101">sint64</a>.
+<p>
+Referenced by <a class="el" href="a06679.html#l00124">operator *()</a>, <a class="el" href="a06679.html#l00122">operator *=()</a>, <a class="el" href="a06679.html#l00118">operator+()</a>, <a class="el" href="a06679.html#l00116">operator+=()</a>, <a class="el" href="a06679.html#l00119">operator-()</a>, <a class="el" href="a06679.html#l00117">operator-=()</a>, <a class="el" href="a06679.html#l00125">operator/()</a>, <a class="el" href="a06679.html#l00123">operator/=()</a>, and <a class="el" href="a06679.html#l00087">pack()</a>.
+<p>
+<div class="fragment"><pre>00051 {
+00052 <span class="preprocessor">#ifdef NL_DEBUG</span>
+00053 <span class="preprocessor"></span> <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a626">s</a>&gt;32767 || <a class="code" href="a04223.html#a626">s</a>&lt;-32768)
+00054 <a class="code" href="a04199.html#a3">nlerror</a>(<span class="stringliteral">"in CVector2s::safeCastSint16(sint64): value doesn't fit sint16 (value=%"</span> NL_I64 <span class="stringliteral">"d)"</span>, s);
+00055 <span class="preprocessor">#endif</span>
+00056 <span class="preprocessor"></span> <span class="keywordflow">return</span> (<a class="code" href="a04558.html#a8">sint16</a>)<a class="code" href="a04223.html#a626">s</a>;
+00057 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sz1292_5" doxytag="NLPACS::CVector2s::serial" ></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 NLPACS::CVector2s::serial </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a02270.html">NLMISC::IStream</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>f</em> </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>
+serial.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06679.html#l00171">171</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+<div class="fragment"><pre>00171 {f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(<a class="code" href="a04223.html#a572">x</a>,<a class="code" href="a04223.html#a573">y</a>);}
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sz1292_6" doxytag="NLPACS::CVector2s::set" ></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 NLPACS::CVector2s::set </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a8">sint16</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>_x</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a8">sint16</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>_y</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="a06679.html#l00154">154</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a05981.html#l00097">sint16</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+<div class="fragment"><pre>00154 {<a class="code" href="a04223.html#a572">x</a>= _x; <a class="code" href="a04223.html#a573">y</a>=_y;}
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sz1290_4" doxytag="NLPACS::CVector2s::sqrnorm" ></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"> float NLPACS::CVector2s::sqrnorm </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> const<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Return the square of the norm of the vector.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06679.html#l00135">135</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a06679.html#l00038">NLPACS::Vector2sAccuracy</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+Referenced by <a class="el" href="a06679.html#l00133">norm()</a>.
+<p>
+<div class="fragment"><pre>00135 {<span class="keywordflow">return</span> ((<span class="keywordtype">float</span>)<a class="code" href="a04223.html#a572">x</a>*(<span class="keywordtype">float</span>)<a class="code" href="a04223.html#a572">x</a> + (<span class="keywordtype">float</span>)<a class="code" href="a04223.html#a573">y</a>*(<span class="keywordtype">float</span>)<a class="code" href="a04223.html#a573">y</a>)/(<a class="code" href="a05380.html#a15">Vector2sAccuracy</a>*<a class="code" href="a05380.html#a15">Vector2sAccuracy</a>);}
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sa2" doxytag="NLPACS::CVector2s::unpack" ></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="a03660.html">NLMISC::CVector2f</a> NLPACS::CVector2s::unpack </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> const<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="a06679.html#l00176">176</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+Referenced by <a class="el" href="a06679.html#l00177">unpack3f()</a>.
+<p>
+<div class="fragment"><pre>00176 { <span class="keywordflow">return</span> <a class="code" href="a03660.html">NLMISC::CVector2f</a>(<a class="code" href="a03662.html#NLPACS_1_1CVector2sa2">unpack</a>(<a class="code" href="a04223.html#a572">x</a>), <a class="code" href="a03662.html#NLPACS_1_1CVector2sa2">unpack</a>(<a class="code" href="a04223.html#a573">y</a>)); }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sh5" doxytag="NLPACS::CVector2s::unpack" ></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"> float NLPACS::CVector2s::unpack </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a8">sint16</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>s</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline, static, private]</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="a06679.html#l00093">93</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a05646.html#l00977">s</a>, <a class="el" href="a05981.html#l00097">sint16</a>, and <a class="el" href="a06679.html#l00038">NLPACS::Vector2sAccuracy</a>.
+<p>
+<div class="fragment"><pre>00094 {
+00095 <span class="keywordflow">return</span> (<span class="keywordtype">float</span>)<a class="code" href="a04223.html#a626">s</a>/<a class="code" href="a05380.html#a15">Vector2sAccuracy</a>;
+00096 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2sa3" doxytag="NLPACS::CVector2s::unpack3f" ></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">NLMISC::CVector</a> NLPACS::CVector2s::unpack3f </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">float&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>hintz</em> = 0.0f </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<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="a06679.html#l00177">177</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+References <a class="el" href="a06679.html#l00176">unpack()</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+Referenced by <a class="el" href="a05929.html#l01238">NLPACS::CLocalRetriever::retrieveAccuratePosition()</a>.
+<p>
+<div class="fragment"><pre>00177 { <span class="keywordflow">return</span> <a class="code" href="a03128.html">NLMISC::CVector</a>(<a class="code" href="a03662.html#NLPACS_1_1CVector2sa2">unpack</a>(<a class="code" href="a04223.html#a572">x</a>), <a class="code" href="a03662.html#NLPACS_1_1CVector2sa2">unpack</a>(<a class="code" href="a04223.html#a573">y</a>), hintz); }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="NLPACS_1_1CVector2so0" doxytag="NLPACS::CVector2s::x" ></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="a04558.html#a8">sint16</a> <a class="el" href="a03662.html#NLPACS_1_1CVector2so0">NLPACS::CVector2s::x</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="a06679.html#l00099">99</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+Referenced by <a class="el" href="a06679.html#l00165">maxof()</a>, <a class="el" href="a06679.html#l00159">minof()</a>, <a class="el" href="a05929.html#l01238">NLPACS::CLocalRetriever::retrieveAccuratePosition()</a>, and <a class="el" href="a05929.html#l01064">NLPACS::CLocalRetriever::retrievePosition()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLPACS_1_1CVector2so1" doxytag="NLPACS::CVector2s::y" ></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="a04558.html#a8">sint16</a> <a class="el" href="a03662.html#NLPACS_1_1CVector2so1">NLPACS::CVector2s::y</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="a06679.html#l00099">99</a> of file <a class="el" href="a06679.html">vector_2s.h</a>.
+<p>
+Referenced by <a class="el" href="a06679.html#l00165">maxof()</a>, <a class="el" href="a06679.html#l00159">minof()</a>, <a class="el" href="a05929.html#l01238">NLPACS::CLocalRetriever::retrieveAccuratePosition()</a>, and <a class="el" href="a05929.html#l01064">NLPACS::CLocalRetriever::retrievePosition()</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this class was generated from the following file:<ul>
+<li><a class="el" href="a06679.html">vector_2s.h</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 14:24:53 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>