template<int xinc, int offset, int step>
static void FX::TnFXGraph::ReduceE2y ( QMemArray< FXVec3f > &  out,
const QMemArray< FXVec3f > &  in 
) [inline, static, inherited]

Translates a 3d array into a 2d array by elimination of two coordinates.

Definition at line 168 of file TnFXGraph.h.

References FX::QMemArray< type, allocator >::count(), FX::QMemArray< type, allocator >::data(), and FX::QMemArray< type, allocator >::resize().

00169     {
00170         out.resize(in.count()*3/step);
00171         FXfloat x=0;
00172         FXfloat *FXRESTRICT o=(FXfloat *) out.data();
00173         const FXfloat *FXRESTRICT i=(const FXfloat *) in.data();
00174         for(FXuint n=offset; n<in.count()*3; n+=step)
00175         {
00176             *o++=x;
00177             x+=xinc;
00178             *o++=i[n];
00179             *o++=0;
00180         }
00181     }


(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:37:48 2009 for TnFOX by doxygen v1.4.7