NLMISC::CVectorH Class Reference

#include <vector_h.h>


Detailed Description

Homogeneus vector. A CVectorH has a fourth value, w.
Author:
Olivier Cado

Nevrax France

Date:
2000

Definition at line 43 of file vector_h.h.

Public Member Functions

 CVectorH (const CVector &v)
 Constructor using a vector.

 CVectorH (const CVectorH &v)
 Copy Constructor.

 CVectorH (float _x, float _y, float _z, float _w)
 Constructor .

 CVectorH ()
 Constructor.

 operator CVector () const
 Cast operator to a vector (ignoring w).

void set (float _x, float _y, float _z, float _w)
 Set.

Misc.
bool operator!= (const CVectorH &v) const
bool operator< (const CVectorH &v) const
 This operator is here just for map/set insertion (no meaning). comparison order is x,y,z,w.

bool operator== (const CVectorH &v) const

Data Fields

float w
 Attributes.

float x
 Attributes.

float y
 Attributes.

float z
 Attributes.


Constructor & Destructor Documentation

NLMISC::CVectorH::CVectorH  )  [inline]
 

Constructor.

Definition at line 51 of file vector_h.h.

00051 {}

NLMISC::CVectorH::CVectorH float  _x,
float  _y,
float  _z,
float  _w
[inline]
 

Constructor .

Definition at line 53 of file vector_h.h.

References w, x, y, and z.

00053 : x(_x), y(_y), z(_z), w(_w) {}

NLMISC::CVectorH::CVectorH const CVectorH v  )  [inline]
 

Copy Constructor.

Definition at line 55 of file vector_h.h.

References v, w, x, y, and z.

00055 : x(v.x), y(v.y), z(v.z), w(v.w) {}

NLMISC::CVectorH::CVectorH const CVector v  )  [inline]
 

Constructor using a vector.

Definition at line 57 of file vector_h.h.

References v, w, x, y, and z.

00057 : x(v.x), y(v.y), z(v.z), w(1.0f) {}


Member Function Documentation

NLMISC::CVectorH::operator CVector  )  const [inline]
 

Cast operator to a vector (ignoring w).

Definition at line 66 of file vector_h.h.

References x, y, and z.

00067         {
00068                 return CVector( x, y, z );
00069         }

bool NLMISC::CVectorH::operator!= const CVectorH v  )  const [inline]
 

Definition at line 78 of file vector_h.h.

References v.

00079         {
00080                 return !(*this==v);
00081         }

bool NLMISC::CVectorH::operator< const CVectorH v  )  const [inline]
 

This operator is here just for map/set insertion (no meaning). comparison order is x,y,z,w.

Definition at line 83 of file vector_h.h.

References v, w, x, y, and z.

00084         {
00085                 if(x!=v.x)
00086                         return x<v.x;
00087                 if(y!=v.y)
00088                         return y<v.y;
00089                 if(z!=v.z)
00090                         return z<v.z;
00091                 return w<v.w;
00092         }

bool NLMISC::CVectorH::operator== const CVectorH v  )  const [inline]
 

Definition at line 74 of file vector_h.h.

References v, w, x, y, and z.

00075         {
00076                 return x==v.x && y==v.y && z==v.z && w==v.w;
00077         }

void NLMISC::CVectorH::set float  _x,
float  _y,
float  _z,
float  _w
[inline]
 

Set.

Definition at line 60 of file vector_h.h.

References w, x, y, and z.

Referenced by NL3D::CMRMMeshFinal::CWedge::CWedge(), and NL3D::CWaterModel::setupMaterialNVertexShader().

00061         {
00062                 x=_x; y=_y; z=_z; w=_w;
00063         }


Field Documentation

float NLMISC::CVectorH::w
 

Attributes.

Definition at line 48 of file vector_h.h.

Referenced by NL3D::CVegetableManager::addInstance(), NL3D::CMRMBuilder::attToColor(), NL3D::CMRMBuilder::buildBlendShapes(), NL3D::CMRMBuilder::buildMeshBuildMrm(), NL3D::CMRMBuilder::collapseEdge(), NL3D::CMRMBuilder::findInsertColorInBaseMesh(), NL3D::CMRMBuilder::findInsertNormalInBaseMesh(), NL3D::CMRMBuilder::findInsertUvwInBaseMesh(), and NLMISC::CMatrix::operator *().

float NLMISC::CVectorH::x
 

Attributes.

Definition at line 48 of file vector_h.h.

Referenced by NL3D::CMRMBuilder::attToColor(), NL3D::CMRMBuilder::attToUvw(), NL3D::CMRMBuilder::buildBlendShapes(), NL3D::CMRMBuilder::buildMeshBuildMrm(), NL3D::CMRMBuilder::collapseEdge(), NL3D::CMRMBuilder::findInsertColorInBaseMesh(), NL3D::CMRMBuilder::findInsertUvwInBaseMesh(), and NLMISC::CMatrix::operator *().

float NLMISC::CVectorH::y
 

Attributes.

Definition at line 48 of file vector_h.h.

Referenced by NL3D::CMRMBuilder::attToColor(), NL3D::CMRMBuilder::attToUvw(), NL3D::CMRMBuilder::buildBlendShapes(), NL3D::CMRMBuilder::buildMeshBuildMrm(), NL3D::CMRMBuilder::collapseEdge(), NL3D::CMRMBuilder::findInsertColorInBaseMesh(), NL3D::CMRMBuilder::findInsertUvwInBaseMesh(), and NLMISC::CMatrix::operator *().

float NLMISC::CVectorH::z
 

Attributes.

Definition at line 48 of file vector_h.h.

Referenced by NL3D::CMRMBuilder::attToColor(), NL3D::CMRMBuilder::attToUvw(), NL3D::CMRMBuilder::buildBlendShapes(), NL3D::CMRMBuilder::buildMeshBuildMrm(), NL3D::CMRMBuilder::collapseEdge(), NL3D::CMRMBuilder::findInsertColorInBaseMesh(), NL3D::CMRMBuilder::findInsertUvwInBaseMesh(), and NLMISC::CMatrix::operator *().


The documentation for this class was generated from the following file:
Generated on Tue Mar 16 13:42:57 2004 for NeL by doxygen 1.3.6