NLMISC::CLineColorUV Class Reference

#include <geom_ext.h>

Inheritance diagram for NLMISC::CLineColorUV:

NLMISC::CLine

Detailed Description

A line with 2 color and 2 uvs.
Author:
Lionel Berenguier

Nevrax France

Date:
2000

Definition at line 106 of file geom_ext.h.

Public Member Functions

 CLineColorUV ()
 Constructor.

CLineColorUVoperator= (const CLine &line)
void project (const CVector &inV, CVector &outV)
 Project a vector on this line.


Data Fields

CRGBA Color0
CRGBA Color1
CUV Uv0
CUV Uv1
CVector V0
CVector V1


Constructor & Destructor Documentation

NLMISC::CLineColorUV::CLineColorUV  )  [inline]
 

Constructor.

Definition at line 115 of file geom_ext.h.

00115 {}


Member Function Documentation

CLineColorUV& NLMISC::CLineColorUV::operator= const CLine line  )  [inline]
 

Definition at line 117 of file geom_ext.h.

00118         {
00119                 *((CLine*)this)= line;
00120                 return *this;
00121         }

void NLMISC::CLine::project const CVector inV,
CVector outV
[inherited]
 

Project a vector on this line.

Definition at line 34 of file line.cpp.

References NLMISC::CVector::sqrnorm().

00035 {
00036         CVector seg = V1 - V0;  
00037         float n = seg.sqrnorm();
00038         if (n == 0.f)
00039         {
00040                 outV = V0;
00041         }
00042         else
00043         {
00044                 float dp = (inV - V0) * seg;
00045                 outV = V0 + (dp /  n) * seg;
00046         }
00047 }


Field Documentation

CRGBA NLMISC::CLineColorUV::Color0
 

Definition at line 109 of file geom_ext.h.

Referenced by NL3D::CDriverUser::drawLine().

CRGBA NLMISC::CLineColorUV::Color1
 

Definition at line 109 of file geom_ext.h.

Referenced by NL3D::CDriverUser::drawLine().

CUV NLMISC::CLineColorUV::Uv0
 

Definition at line 110 of file geom_ext.h.

Referenced by NL3D::CDriverUser::drawLine().

CUV NLMISC::CLineColorUV::Uv1
 

Definition at line 110 of file geom_ext.h.

Referenced by NL3D::CDriverUser::drawLine().

CVector NLMISC::CLine::V0 [inherited]
 

Definition at line 48 of file line.h.

Referenced by NL3D::CPSLocatedBindable::displayIcon2d(), and NL3D::CDriverUser::drawLine().

CVector NLMISC::CLine::V1 [inherited]
 

Definition at line 48 of file line.h.

Referenced by NL3D::CPSLocatedBindable::displayIcon2d(), and NL3D::CDriverUser::drawLine().


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