NL3D::CLinearEquation Struct Reference

#include <mrm_internal.h>


Public Member Functions

void add (CLinearEquation &eq, float factor)
void clear ()
void init (uint32 ii)
void mul (float factor)

Data Fields

std::vector< ElementElts


Member Function Documentation

void NL3D::CLinearEquation::add CLinearEquation eq,
float  factor
[inline]
 

Definition at line 60 of file mrm_internal.h.

References Elts, NL3D::CLinearEquation::Element::factor, NL3D::CLinearEquation::Element::index, and uint32.

00061         {
00062                 Element tmp(0, 0.0f);
00063 
00064                 for (uint32 i = 0; i < eq.Elts.size(); ++i)
00065                 {
00066                         tmp.index = eq.Elts[i].index;
00067                         tmp.factor = factor * eq.Elts[i].factor;
00068                         Elts.push_back (tmp);
00069                 }
00070         }

void NL3D::CLinearEquation::clear  )  [inline]
 

Definition at line 79 of file mrm_internal.h.

References NLMISC::contReset(), and Elts.

Referenced by init().

00080         {
00081                 NLMISC::contReset (Elts);
00082         }

void NL3D::CLinearEquation::init uint32  ii  )  [inline]
 

Definition at line 53 of file mrm_internal.h.

References clear(), Elts, and uint32.

00054         {
00055                 clear();
00056                 Elts.push_back (Element(ii, 1.0f));
00057         }

void NL3D::CLinearEquation::mul float  factor  )  [inline]
 

Definition at line 73 of file mrm_internal.h.

References Elts, and uint32.

00074         {
00075                 for (uint32 i = 0; i < Elts.size(); ++i)
00076                         Elts[i].factor *= factor;
00077         }


Field Documentation

std::vector<Element> NL3D::CLinearEquation::Elts
 

Definition at line 51 of file mrm_internal.h.

Referenced by add(), clear(), init(), and mul().


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