NL3D::CFSquareDot3AddIterator< TBaseIter > Struct Template Reference

#include <ps_attrib_maker_iterators.h>

Inheritance diagram for NL3D::CFSquareDot3AddIterator< TBaseIter >:

NL3D::CDistIterator< TBaseIter > NL3D::CPSBaseIterator< TBaseIter >

Detailed Description

template<class TBaseIter>
struct NL3D::CFSquareDot3AddIterator< TBaseIter >

this iterator perform a dot prod with a vector, add an offset and take the square of the result

Definition at line 109 of file ps_attrib_maker_iterators.h.

Public Member Functions

void advance ()
 CFSquareDot3AddIterator (const TBaseIter &it)
float get () const

Data Fields

TBaseIter Iter
float Offset
NLMISC::CVector V


Constructor & Destructor Documentation

template<class TBaseIter>
NL3D::CFSquareDot3AddIterator< TBaseIter >::CFSquareDot3AddIterator const TBaseIter &  it  )  [inline]
 

Definition at line 117 of file ps_attrib_maker_iterators.h.

00117 : CDistIterator<TBaseIter>(it) {}


Member Function Documentation

template<typename TBaseIter>
void NL3D::CPSBaseIterator< TBaseIter >::advance  )  [inline, inherited]
 

Definition at line 50 of file ps_attrib_maker_iterators.h.

00050 { Iter.advance(); }     

template<class TBaseIter>
float NL3D::CFSquareDot3AddIterator< TBaseIter >::get  )  const [inline]
 

Reimplemented from NL3D::CPSBaseIterator< TBaseIter >.

Definition at line 111 of file ps_attrib_maker_iterators.h.

References NL3D::MaxInputValue, and r.

00112                 { 
00113                         float r = Iter.get() * V + Offset;
00114                         r *= r;
00115                         return r > MaxInputValue ? MaxInputValue : r;
00116                 }


Field Documentation

template<typename TBaseIter>
TBaseIter NL3D::CPSBaseIterator< TBaseIter >::Iter [inherited]
 

Definition at line 45 of file ps_attrib_maker_iterators.h.

template<class TBaseIter>
float NL3D::CDistIterator< TBaseIter >::Offset [inherited]
 

Definition at line 89 of file ps_attrib_maker_iterators.h.

Referenced by NL3D::CPSAttribMakerT< uint32, CPSValueBlendFunc< uint32 > >::make(), NL3D::CPSAttribMakerT< uint32, CPSValueBlendFunc< uint32 > >::make4(), and NL3D::CPSAttribMakerT< uint32, CPSValueBlendFunc< uint32 > >::makeN().

template<class TBaseIter>
NLMISC::CVector NL3D::CDistIterator< TBaseIter >::V [inherited]
 

Definition at line 88 of file ps_attrib_maker_iterators.h.

Referenced by NL3D::CPSAttribMakerT< uint32, CPSValueBlendFunc< uint32 > >::make(), NL3D::CPSAttribMakerT< uint32, CPSValueBlendFunc< uint32 > >::make4(), and NL3D::CPSAttribMakerT< uint32, CPSValueBlendFunc< uint32 > >::makeN().


The documentation for this struct was generated from the following file:
Generated on Tue Mar 16 06:47:00 2004 for NeL by doxygen 1.3.6