NLMISC::CUVW Class Reference

#include <uv.h>


Detailed Description

3d UV.
Author:
Lionel Berenguier

Nevrax France

Date:
2000

Definition at line 106 of file uv.h.

Public Member Functions

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

bool operator== (const CUVW &c) const
void serial (NLMISC::IStream &f)

Data Fields

float U
float V
float W


Constructor & Destructor Documentation

NLMISC::CUVW::CUVW  )  [inline]
 

Definition at line 112 of file uv.h.

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

00112 {}

NLMISC::CUVW::CUVW float  u,
float  v,
float  w
[inline]
 

Definition at line 113 of file uv.h.

References v, and w.

00113 : U(u), V(v), W(w) {}


Member Function Documentation

CUVW NLMISC::CUVW::operator * float  f  )  const [inline]
 

Definition at line 119 of file uv.h.

References CUVW().

00120                 { return CUVW(U*f, V*f, W*f);}

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

Definition at line 122 of file uv.h.

00123                 { U*=f;V*=f; W*=f; return *this;}

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

Definition at line 143 of file uv.h.

00143 { return CUV(U, V); }

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

Definition at line 138 of file uv.h.

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

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

Definition at line 115 of file uv.h.

References CUVW(), and v.

00116                 { return CUVW(U+v.U, V+v.V, W+v.W);}

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

Definition at line 124 of file uv.h.

References v.

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

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

Definition at line 117 of file uv.h.

References CUVW(), and v.

00118                 { return CUVW(U-v.U, V-v.V, W-v.W);}

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

Definition at line 126 of file uv.h.

References v.

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

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

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

Definition at line 129 of file uv.h.

References U, V, and W.

00130         {
00131                 if(U!=o.U)
00132                         return U<o.U;
00133                 if(V!=o.V)
00134                         return V<o.V;
00135                 return W<o.W;
00136         }

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

Definition at line 137 of file uv.h.

References U, V, and W.

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

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

Definition at line 140 of file uv.h.

References NLMISC::IStream::serial().

00140 {f.serial(U,V,W);}


Field Documentation

float NLMISC::CUVW::U
 

Definition at line 109 of file uv.h.

Referenced by NL3D::CMRMBuilder::buildBlendShapes(), NL3D::CMRMBuilder::buildMeshBuildMrm(), NL3D::BuildTGSpaceVect(), NL3D::CMRMBuilder::findInsertUvwInBaseMesh(), operator<(), and operator==().

float NLMISC::CUVW::V
 

Definition at line 109 of file uv.h.

Referenced by NL3D::CMRMBuilder::buildBlendShapes(), NL3D::CMRMBuilder::buildMeshBuildMrm(), NL3D::BuildTGSpaceVect(), NL3D::CMRMBuilder::findInsertUvwInBaseMesh(), operator<(), and operator==().

float NLMISC::CUVW::W
 

Definition at line 109 of file uv.h.

Referenced by NL3D::CMRMBuilder::buildBlendShapes(), NL3D::CMRMBuilder::buildMeshBuildMrm(), NL3D::BuildTGSpaceVect(), NL3D::CMRMBuilder::findInsertUvwInBaseMesh(), operator<(), and operator==().


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