aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a06672.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/doxygen/nel/a06672.html')
-rw-r--r--docs/doxygen/nel/a06672.html63
1 files changed, 63 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a06672.html b/docs/doxygen/nel/a06672.html
new file mode 100644
index 00000000..735b50cb
--- /dev/null
+++ b/docs/doxygen/nel/a06672.html
@@ -0,0 +1,63 @@
+<!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: vector.cpp Source File</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>vector.cpp</h1><a href="a05249.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001
+00007 <span class="comment">/* Copyright, 2000 Nevrax Ltd.</span>
+00008 <span class="comment"> *</span>
+00009 <span class="comment"> * This file is part of NEVRAX NEL.</span>
+00010 <span class="comment"> * NEVRAX NEL is free software; you can redistribute it and/or modify</span>
+00011 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
+00012 <span class="comment"> * the Free Software Foundation; either version 2, or (at your option)</span>
+00013 <span class="comment"> * any later version.</span>
+00014 <span class="comment"></span>
+00015 <span class="comment"> * NEVRAX NEL is distributed in the hope that it will be useful, but</span>
+00016 <span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+00017 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+00018 <span class="comment"> * General Public License for more details.</span>
+00019 <span class="comment"></span>
+00020 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
+00021 <span class="comment"> * along with NEVRAX NEL; see the file COPYING. If not, write to the</span>
+00022 <span class="comment"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,</span>
+00023 <span class="comment"> * MA 02111-1307, USA.</span>
+00024 <span class="comment"> */</span>
+00025
+00026 <span class="preprocessor">#include "<a class="code" href="a05021.html">stdmisc.h</a>"</span>
+00027
+00028 <span class="preprocessor">#include "<a class="code" href="a05250.html">nel/misc/vector.h</a>"</span>
+00029
+00030 <span class="keyword">using</span> <span class="keyword">namespace </span>std;
+00031
+00032
+00033 <span class="keyword">namespace </span>NLMISC
+00034 {
+00035
+00036 <span class="keyword">const</span> CVector CVector::Null(0,0,0);
+00037 <span class="keyword">const</span> CVector CVector::I(1,0,0);
+00038 <span class="keyword">const</span> CVector CVector::J(0,1,0);
+00039 <span class="keyword">const</span> CVector CVector::K(0,0,1);
+00040
+00041
+00042 <span class="comment">/*</span>
+00043 <span class="comment"> * Returns the contents as a printable string "x y z"</span>
+00044 <span class="comment"> */</span>
+<a name="l00045"></a><a class="code" href="a03128.html#NLMISC_1_1CVectora1">00045</a> string CVector::toString()<span class="keyword"> const</span>
+00046 <span class="keyword"></span>{
+00047 string str;
+00048 str = <a class="code" href="a05378.html#a244">NLMISC::toString</a>(<a class="code" href="a04223.html#a572">x</a>) + <span class="stringliteral">" "</span> + <a class="code" href="a05378.html#a244">NLMISC::toString</a>(<a class="code" href="a04223.html#a573">y</a>) + <span class="stringliteral">" "</span> + <a class="code" href="a05378.html#a244">NLMISC::toString</a>(<a class="code" href="a04223.html#a574">z</a>);
+00049 <span class="keywordflow">return</span> str;
+00050 }
+00051
+00052
+00053 }
+00054
+</pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:41:20 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>