NLMISC::CUV Class Reference

#include <uv.h>


Detailed Description

2d UV.

Definition at line 46 of file uv.h.

Public Member Functions

 CUV (float u, float v)
 CUV ()
CUVoperator *= (float f)
bool operator!= (const CUV &c) const
CUV operator+ (const CUV &v) const
CUVoperator+= (const CUV &v)
CUV operator- () const
CUV operator- (const CUV &v) const
CUVoperator-= (const CUV &v)
bool operator< (const CUV &o) const
 This operator is here just for map/set insertion (no meaning). comparison order is U,V.

bool operator== (const CUV &c) const
void serial (NLMISC::IStream &f)
void set (float u, float v)

Data Fields

float U
float V


Constructor & Destructor Documentation

NLMISC::CUV::CUV  )  [inline]
 

Definition at line 52 of file uv.h.

Referenced by operator+(), and operator-().

00052 {}

NLMISC::CUV::CUV float  u,
float  v
[inline]
 

Definition at line 53 of file uv.h.

References v.

00053 : U(u), V(v) {}


Member Function Documentation

CUV& NLMISC::CUV::operator *= float  f  )  [inline]
 

Definition at line 66 of file uv.h.

00067                 { U*=f;V*=f; return *this;}

bool NLMISC::CUV::operator!= const CUV c  )  const [inline]
 

Definition at line 80 of file uv.h.

00080 {return !(*this==c);}

CUV NLMISC::CUV::operator+ const CUV v  )  const [inline]
 

Definition at line 57 of file uv.h.

References CUV(), and v.

00058                 { return CUV(U+v.U, V+v.V);}

CUV& NLMISC::CUV::operator+= const CUV v  )  [inline]
 

Definition at line 68 of file uv.h.

References v.

00069                 { U+=v.U;V+=v.V; return *this;}

CUV NLMISC::CUV::operator-  )  const [inline]
 

Definition at line 63 of file uv.h.

References CUV().

00064                 { return CUV(-U, -V); } 

CUV NLMISC::CUV::operator- const CUV v  )  const [inline]
 

Definition at line 60 of file uv.h.

References CUV(), and v.

00061                 { return CUV(U-v.U, V-v.V);}

CUV& NLMISC::CUV::operator-= const CUV v  )  [inline]
 

Definition at line 70 of file uv.h.

References v.

00071                 { U-=v.U;V-=v.V; return *this;}

bool NLMISC::CUV::operator< const CUV o  )  const [inline]
 

This operator is here just for map/set insertion (no meaning). comparison order is U,V.

Definition at line 73 of file uv.h.

References U, and V.

00074         {
00075                 if(U!=o.U)
00076                         return U<o.U;
00077                 return V<o.V;
00078         }

bool NLMISC::CUV::operator== const CUV c  )  const [inline]
 

Definition at line 79 of file uv.h.

References U, and V.

00079 {return (U==c.U) && (V==c.V);}

void NLMISC::CUV::serial NLMISC::IStream f  )  [inline]
 

Definition at line 82 of file uv.h.

References NLMISC::IStream::serial().

00082 {f.serial(U,V);}

void NLMISC::CUV::set float  u,
float  v
[inline]
 

Definition at line 55 of file uv.h.

References v.

Referenced by NL3D::CTextureGrouped::setTextures().

00055 { U = u; V = v; }


Field Documentation

float NLMISC::CUV::U
 

Definition at line 49 of file uv.h.

Referenced by NL3D::CPatch::addTileTrianglesInBBox(), NL3D::CPatch::appendTileLightInfluences(), NL3D::CVegetableShape::build(), NL3D::CMRMBuilder::buildMeshBuildMrm(), NL3D::CPatchQuadBlock::buildTileTriangles(), NL3D::CPatch::computeDisplaceRawCoordinates(), NL3D::CTessFace::computeTesselatedPos(), NL3D::CVisualCollisionEntity::computeUvForPos(), NL3D::CCloud::dispBill(), NL3D::CCloud::dispXYZ(), NL3D::CDriverUser::drawBitmap(), NL3D::CPatch::fillFar0DLMUvOnlyVertexListVB(), NL3D::CPatch::fillFar0VertexVB(), NL3D::CPatch::fillFar1DLMUvOnlyVertexListVB(), NL3D::CPatch::fillFar1VertexVB(), NL3D::CPatch::fillTileVertexVB(), NL3D::CCloud::generate(), NL3D::CPatch::generateTileVegetable(), NL3D::CPatch::getLumel(), NL3D::CTessFace::getTesselatedPos(), NL3D::CPatch::getTesselatedPos(), NL3D::CPatch::getTileElement(), NL3D::CNoise3d::init(), NL3D::CLodCharacterManager::initInstance(), NL3D::CTessFace::initTileUvDLM(), NL3D::CTessFace::initTileUvLightmap(), NL3D::CTessFace::initTileUvRGBA(), NL3D::CCloud::light(), NLMISC::operator *(), operator<(), operator==(), NL3D::CNoise3d::render(), NL3D::CComputedString::render2DClip(), NL3D::CComputedString::render2DUnProjected(), NL3D::CNoise3d::render2passes(), NL3D::CNoise3d::renderGrid(), and NL3D::CNoise3d::renderGrid2passes().

float NLMISC::CUV::V
 

Definition at line 49 of file uv.h.

Referenced by NL3D::CPatch::addTileTrianglesInBBox(), NL3D::CPatch::appendTileLightInfluences(), NL3D::CMRMBuilder::buildMeshBuildMrm(), NL3D::CPatchQuadBlock::buildTileTriangles(), NL3D::CPatch::computeDisplaceRawCoordinates(), NL3D::CTessFace::computeTesselatedPos(), NL3D::CVisualCollisionEntity::computeUvForPos(), NL3D::CCloud::dispBill(), NL3D::CCloud::dispXYZ(), NL3D::CTextureGrouped::doGenerate(), NL3D::CDriverUser::drawBitmap(), NL3D::CPatch::fillFar0DLMUvOnlyVertexListVB(), NL3D::CPatch::fillFar0VertexVB(), NL3D::CPatch::fillFar1DLMUvOnlyVertexListVB(), NL3D::CPatch::fillFar1VertexVB(), NL3D::CPatch::fillTileVertexVB(), NL3D::CCloud::generate(), NL3D::CPatch::generateTileVegetable(), NL3D::CPatch::getLumel(), NL3D::CTessFace::getTesselatedPos(), NL3D::CPatch::getTesselatedPos(), NL3D::CPatch::getTileElement(), NL3D::CNoise3d::init(), NL3D::CLodCharacterManager::initInstance(), NL3D::CTessFace::initTileUvDLM(), NL3D::CTessFace::initTileUvLightmap(), NL3D::CTessFace::initTileUvRGBA(), NL3D::CCloud::light(), NLMISC::operator *(), operator<(), operator==(), NL3D::CNoise3d::render(), NL3D::CComputedString::render2DClip(), NL3D::CComputedString::render2DUnProjected(), NL3D::CNoise3d::render2passes(), NL3D::CNoise3d::renderGrid(), and NL3D::CNoise3d::renderGrid2passes().


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