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_1CVector2f.html | 1212 ++++++++++++++++++++++++ 1 file changed, 1212 insertions(+) create mode 100644 docs/doxygen/nel/classNLMISC_1_1CVector2f.html (limited to 'docs/doxygen/nel/classNLMISC_1_1CVector2f.html') diff --git a/docs/doxygen/nel/classNLMISC_1_1CVector2f.html b/docs/doxygen/nel/classNLMISC_1_1CVector2f.html new file mode 100644 index 00000000..f22b748f --- /dev/null +++ b/docs/doxygen/nel/classNLMISC_1_1CVector2f.html @@ -0,0 +1,1212 @@ + + + + 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::CVector2f Class Reference

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

+#include <vector_2f.h> +

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

Public Methods

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

 CVector2f (float _x, float _y)
 Constructor. More...

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

 CVector2f (const CVector &v)
 Constructor that uses the (x,y) coordinates of a CVector. More...

 operator CVector () const
CVector asVector () const
Base Maths.
CVector2f & operator+= (const CVector2f &v)
CVector2f & operator-= (const CVector2f &v)
CVector2f & operator *= (float f)
CVector2f & operator/= (float f)
CVector2f operator+ (const CVector2f &v) const
CVector2f operator- (const CVector2f &v) const
CVector2f operator * (float f) const
CVector2f operator/ (float f) const
CVector2f operator- () const
Advanced Maths.
float operator * (const CVector2f &v) const
 Dot product. More...

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

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

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

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

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

void maxof (const CVector2f &a, const CVector2f &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

float x
float y

Static Public Attributes

Constants
const CVector2f Null

Friends

CVector2f operator * (float f, const CVector2f &v0)
+


Detailed Description

+A 2D vector of float. +

+

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

+ +

+Definition at line 47 of file vector_2f.h.


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + +
NLMISC::CVector2f::CVector2f   [inline]
+
+ + + + + +
+   + + +

+Constructor wich do nothing. +

+ +

+Definition at line 58 of file vector_2f.h. +

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

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
NLMISC::CVector2f::CVector2f float   _x,
float   _y
[inline]
+
+ + + + + +
+   + + +

+Constructor. +

+ +

+Definition at line 60 of file vector_2f.h.

+

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

+Copy Constructor. +

+ +

+Definition at line 62 of file vector_2f.h.

+

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

+Constructor that uses the (x,y) coordinates of a CVector. +

+ +

+Definition at line 64 of file vector_2f.h.

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + +
CVector NLMISC::CVector2f::asVector   const [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 68 of file vector_2f.h. +

+References x, and y. +

+Referenced by operator CVector.

+

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

+ +

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

+References x, and y.

+

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

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

+ +

+Definition at line 121 of file vector_2f.h. +

+References CVector2f, x, and y. +

+Referenced by NL3D::CWaterShape::computeBBox.

+

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

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

+ +

+Definition at line 115 of file vector_2f.h. +

+References CVector2f, min, x, and y. +

+Referenced by NL3D::CWaterShape::computeBBox.

+

+ + + + +
+ + + + + + + + + +
float NLMISC::CVector2f::norm   const [inline]
+
+ + + + + +
+   + + +

+Return the norm of the vector. +

+ +

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

+References sqrnorm. +

+Referenced by normalize.

+

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

+Normalize the vector. +

+ +

+Definition at line 93 of file vector_2f.h. +

+References norm.

+

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

+Return the vector normalized. +

+ +

+Definition at line 100 of file vector_2f.h. +

+References CVector2f, and v.

+

+ + + + +
+ + + + + + + + + + +
float NLMISC::CVector2f::operator * const CVector2f &   v const [inline]
+
+ + + + + +
+   + + +

+Dot product. +

+ +

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

+References CVector2f, v, x, and y.

+

+ + + + +
+ + + + + + + + + + +
CVector2f NLMISC::CVector2f::operator * float   f const [inline]
+
+ + + + + +
+   + + +

+ +

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

+References CVector2f, x, and y.

+

+ + + + +
+ + + + + + + + + + +
CVector2f& NLMISC::CVector2f::operator *= float   f [inline]
+
+ + + + + +
+   + + +

+ +

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

+References CVector2f, x, and y.

+

+ + + + +
+ + + + + + + + + +
NLMISC::CVector2f::operator CVector   const [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 66 of file vector_2f.h. +

+References asVector.

+

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

+ +

+Definition at line 112 of file vector_2f.h. +

+References CVector2f, and v.

+

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

+ +

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

+References CVector2f, v, x, and y.

+

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

+ +

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

+References CVector2f, v, x, and y.

+

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

+ +

+Definition at line 81 of file vector_2f.h. +

+References CVector2f, x, and y.

+

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

+ +

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

+References CVector2f, v, x, and y.

+

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

+ +

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

+References CVector2f, v, x, and y.

+

+ + + + +
+ + + + + + + + + + +
CVector2f NLMISC::CVector2f::operator/ float   f const [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 80 of file vector_2f.h. +

+References CVector2f, x, and y.

+

+ + + + +
+ + + + + + + + + + +
CVector2f& NLMISC::CVector2f::operator/= float   f [inline]
+
+ + + + + +
+   + + +

+ +

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

+References CVector2f, x, and y.

+

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

+ +

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

+References CVector2f, v, x, and y.

+

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

+serial. +

+ +

+Definition at line 127 of file vector_2f.h. +

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

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void NLMISC::CVector2f::set float   _x,
float   _y
[inline]
+
+ + + + + +
+   + + +

+ +

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

+References x, and y. +

+Referenced by NL3D::CWaterShape::CWaterShape, NL3D::CPSMultiTexturedParticle::enableAlternateTex, and NL3D::CPSMultiTexturedParticle::enableMultiTexture.

+

+ + + + +
+ + + + + + + + + +
float NLMISC::CVector2f::sqrnorm   const [inline]
+
+ + + + + +
+   + + +

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

+ +

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

+References x, and y. +

+Referenced by norm.

+


Friends And Related Function Documentation

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
CVector2f operator * float   f,
const CVector2f &   v0
[friend]
+
+ + + + + +
+   + + +

+ +

+Definition at line 140 of file vector_2f.h.

+


Member Data Documentation

+

+ + + + +
+ + +
const CVector2f NLMISC::CVector2f::Null [static] +
+
+ + + + + +
+   + + +

+

+

+ + + + +
+ + +
float NLMISC::CVector2f::x +
+
+ + + + + +
+   + + +

+ +

+Definition at line 52 of file vector_2f.h. +

+Referenced by asVector, NL3D::CWaterShape::computeBBox, NL3D::CWaterModel::getAttenuatedHeight, NL3D::CWaterHeightMap::getHeight, NLMISC::CPolygon2D::getLineEquation, NL3D::CPSQuad::getNeededVB, NL3D::CSurfaceLightGrid::getStaticLightSetup, isNull, NL3D::CZoneLighter::lightWater, maxof, minof, NL3D::CPatchUVLocator::CUVBasis::mulPoint, operator *, operator *=, operator+, operator+=, operator-, operator-=, operator/, operator/=, operator==, NLPACS::CVector2s::pack, NL3D::CWaterHeightMap::perturbate, NL3D::CWaterHeightMap::perturbatePoint, serial, set, sqrnorm, and NL3D::CPSQuad::updateVbColNUVForRender.

+

+ + + + +
+ + +
float NLMISC::CVector2f::y +
+
+ + + + + +
+   + + +

+ +

+Definition at line 52 of file vector_2f.h. +

+Referenced by asVector, NL3D::CEdge::CEdge, NL3D::CWaterShape::computeBBox, NL3D::CWaterModel::getAttenuatedHeight, NL3D::CWaterHeightMap::getHeight, NLMISC::CPolygon2D::getLineEquation, NL3D::CPSQuad::getNeededVB, NL3D::CSurfaceLightGrid::getStaticLightSetup, isNull, NL3D::CZoneLighter::lightWater, maxof, minof, NL3D::CPatchUVLocator::CUVBasis::mulPoint, operator *, operator *=, operator+, operator+=, operator-, operator-=, operator/, operator/=, operator==, NLPACS::CVector2s::pack, NL3D::CWaterHeightMap::perturbate, NL3D::CWaterHeightMap::perturbatePoint, serial, set, sqrnorm, and NL3D::CPSQuad::updateVbColNUVForRender.

+


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