static void FX::TnFXGraph::ReduceZ ( QMemArray< FXVec3f > &  out,
const QMemArray< FXVec3f > &  in 
) [inline, static, inherited]

Translates a 3d array into a 2d array by division of Z.

Definition at line 183 of file TnFXGraph.h.

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

00184     {
00185         out.resize(in.count());
00186         for(FXuint n=0; n<in.count(); n++)
00187         {
00188             out[n].x=in[n].x/in[n].z;
00189             out[n].y=in[n].y/in[n].z;
00190             out[n].z=0;
00191         }
00192     }


(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