From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/classNLMISC_1_1CVector2d.html | 1113 ++++++++++++++++++++++++ 1 file changed, 1113 insertions(+) create mode 100644 docs/doxygen/nel/classNLMISC_1_1CVector2d.html (limited to 'docs/doxygen/nel/classNLMISC_1_1CVector2d.html') diff --git a/docs/doxygen/nel/classNLMISC_1_1CVector2d.html b/docs/doxygen/nel/classNLMISC_1_1CVector2d.html new file mode 100644 index 00000000..2dd4f805 --- /dev/null +++ b/docs/doxygen/nel/classNLMISC_1_1CVector2d.html @@ -0,0 +1,1113 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
+
+ + +
+ + +
+Docs + +
+  + + + + + +
Documentation 
+ +
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  
+

NLMISC::CVector2d Class Reference

A 2D vector of double. +More... +

+#include <vector_2d.h> +

+List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Methods

Object.
 CVector2d ()
 Constructor wich do nothing. More...

 CVector2d (double _x, double _y)
 Constructor . More...

 CVector2d (const CVector2d &v)
 Copy Constructor. More...

 CVector2d (const CVector2f &v)
 Constructor with a CVector2f. More...

Base Maths.
CVector2d & operator+= (const CVector2d &v)
CVector2d & operator-= (const CVector2d &v)
CVector2d & operator *= (double f)
CVector2d & operator/= (double f)
CVector2d operator+ (const CVector2d &v) const
CVector2d operator- (const CVector2d &v) const
CVector2d operator * (double f) const
CVector2d operator/ (double f) const
CVector2d operator- () const
Advanced Maths.
double operator * (const CVector2d &v) const
 Dot product. More...

double norm () const
 Return the norm of the vector. More...

double sqrnorm () const
 Return the square of the norm of the vector. More...

void normalize ()
 Normalize the vector. More...

CVector2d normed () const
 Return the vector normalized. More...

Misc.
void set (double _x, double _y)
bool operator== (const CVector2d &v) const
bool operator!= (const CVector2d &v) const
bool isNull () const
void minof (const CVector2d &a, const CVector2d &b)
 Set all vector x/y/z as minimum of a/b x/y/z (respectively). More...

void maxof (const CVector2d &a, const CVector2d &b)
 Set all vector x/y/z as maximum of a/b x/y/z (respectively). More...

void serial (NLMISC::IStream &f)
 serial. More...


Public Attributes

double x
double y

Friends

CVector2d operator * (double f, const CVector2d &v0)
+


Detailed Description

+A 2D vector of double. +

+

+Author:
+Lionel Berenguier , Nevrax France
+Date:
+2001
+

+ +

+Definition at line 48 of file vector_2d.h.


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + +
NLMISC::CVector2d::CVector2d   [inline]
+
+ + + + + +
+   + + +

+Constructor wich do nothing. +

+ +

+Definition at line 59 of file vector_2d.h. +

+Referenced by maxof, minof, normed, operator *, operator *=, operator!=, operator+, operator+=, operator-, operator-=, operator/, operator/=, and operator==.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
NLMISC::CVector2d::CVector2d double   _x,
double   _y
[inline]
+
+ + + + + +
+   + + +

+Constructor . +

+ +

+Definition at line 61 of file vector_2d.h.

+

+ + + + +
+ + + + + + + + + + +
NLMISC::CVector2d::CVector2d const CVector2d &   v [inline]
+
+ + + + + +
+   + + +

+Copy Constructor. +

+ +

+Definition at line 63 of file vector_2d.h.

+

+ + + + +
+ + + + + + + + + + +
NLMISC::CVector2d::CVector2d const CVector2f  v [inline]
+
+ + + + + +
+   + + +

+Constructor with a CVector2f. +

+ +

+Definition at line 65 of file vector_2d.h.

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + +
bool NLMISC::CVector2d::isNull   const [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 111 of file vector_2d.h. +

+References x, and y.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void NLMISC::CVector2d::maxof const CVector2d &   a,
const CVector2d &   b
[inline]
+
+ + + + + +
+   + + +

+Set all vector x/y/z as maximum of a/b x/y/z (respectively). +

+ +

+Definition at line 119 of file vector_2d.h. +

+References CVector2d, x, and y.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void NLMISC::CVector2d::minof const CVector2d &   a,
const CVector2d &   b
[inline]
+
+ + + + + +
+   + + +

+Set all vector x/y/z as minimum of a/b x/y/z (respectively). +

+ +

+Definition at line 113 of file vector_2d.h. +

+References CVector2d, min, x, and y.

+

+ + + + +
+ + + + + + + + + +
double NLMISC::CVector2d::norm   const [inline]
+
+ + + + + +
+   + + +

+Return the norm of the vector. +

+ +

+Definition at line 87 of file vector_2d.h. +

+References sqrnorm. +

+Referenced by normalize.

+

+ + + + +
+ + + + + + + + + +
void NLMISC::CVector2d::normalize   [inline]
+
+ + + + + +
+   + + +

+Normalize the vector. +

+ +

+Definition at line 91 of file vector_2d.h. +

+References norm.

+

+ + + + +
+ + + + + + + + + +
CVector2d NLMISC::CVector2d::normed   const [inline]
+
+ + + + + +
+   + + +

+Return the vector normalized. +

+ +

+Definition at line 98 of file vector_2d.h. +

+References CVector2d, and v.

+

+ + + + +
+ + + + + + + + + + +
double NLMISC::CVector2d::operator * const CVector2d &   v const [inline]
+
+ + + + + +
+   + + +

+Dot product. +

+ +

+Definition at line 85 of file vector_2d.h. +

+References CVector2d, v, x, and y.

+

+ + + + +
+ + + + + + + + + + +
CVector2d NLMISC::CVector2d::operator * double   f const [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 77 of file vector_2d.h. +

+References CVector2d, x, and y.

+

+ + + + +
+ + + + + + + + + + +
CVector2d& NLMISC::CVector2d::operator *= double   f [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 73 of file vector_2d.h. +

+References CVector2d, x, and y.

+

+ + + + +
+ + + + + + + + + + +
bool NLMISC::CVector2d::operator!= const CVector2d &   v const [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 110 of file vector_2d.h. +

+References CVector2d, and v.

+

+ + + + +
+ + + + + + + + + + +
CVector2d NLMISC::CVector2d::operator+ const CVector2d &   v const [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 75 of file vector_2d.h. +

+References CVector2d, v, x, and y.

+

+ + + + +
+ + + + + + + + + + +
CVector2d& NLMISC::CVector2d::operator+= const CVector2d &   v [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 71 of file vector_2d.h. +

+References CVector2d, v, x, and y.

+

+ + + + +
+ + + + + + + + + +
CVector2d NLMISC::CVector2d::operator-   const [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 79 of file vector_2d.h. +

+References CVector2d, x, and y.

+

+ + + + +
+ + + + + + + + + + +
CVector2d NLMISC::CVector2d::operator- const CVector2d &   v const [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 76 of file vector_2d.h. +

+References CVector2d, v, x, and y.

+

+ + + + +
+ + + + + + + + + + +
CVector2d& NLMISC::CVector2d::operator-= const CVector2d &   v [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 72 of file vector_2d.h. +

+References CVector2d, v, x, and y.

+

+ + + + +
+ + + + + + + + + + +
CVector2d NLMISC::CVector2d::operator/ double   f const [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 78 of file vector_2d.h. +

+References CVector2d, x, and y.

+

+ + + + +
+ + + + + + + + + + +
CVector2d& NLMISC::CVector2d::operator/= double   f [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 74 of file vector_2d.h. +

+References CVector2d, x, and y.

+

+ + + + +
+ + + + + + + + + + +
bool NLMISC::CVector2d::operator== const CVector2d &   v const [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 109 of file vector_2d.h. +

+References CVector2d, v, x, and y.

+

+ + + + +
+ + + + + + + + + + +
void NLMISC::CVector2d::serial NLMISC::IStream  f [inline]
+
+ + + + + +
+   + + +

+serial. +

+ +

+Definition at line 125 of file vector_2d.h. +

+References NLMISC::IStream::serial, x, and y.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void NLMISC::CVector2d::set double   _x,
double   _y
[inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 108 of file vector_2d.h. +

+References x, and y.

+

+ + + + +
+ + + + + + + + + +
double NLMISC::CVector2d::sqrnorm   const [inline]
+
+ + + + + +
+   + + +

+Return the square of the norm of the vector. +

+ +

+Definition at line 89 of file vector_2d.h. +

+References x, and y. +

+Referenced by norm.

+


Friends And Related Function Documentation

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
CVector2d operator * double   f,
const CVector2d &   v0
[friend]
+
+ + + + + +
+   + + +

+ +

+Definition at line 134 of file vector_2d.h.

+


Member Data Documentation

+

+ + + + +
+ + +
double NLMISC::CVector2d::x +
+
+ + + + + +
+   + + +

+ +

+Definition at line 53 of file vector_2d.h. +

+Referenced by isNull, maxof, minof, operator *, operator *=, operator+, operator+=, operator-, operator-=, operator/, operator/=, operator==, serial, set, and sqrnorm.

+

+ + + + +
+ + +
double NLMISC::CVector2d::y +
+
+ + + + + +
+   + + +

+ +

+Definition at line 53 of file vector_2d.h. +

+Referenced by isNull, maxof, minof, operator *, operator *=, operator+, operator+=, operator-, operator-=, operator/, operator/=, operator==, serial, set, and sqrnorm.

+


The documentation for this class was generated from the following file: + + + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1