Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

gslib::glsl_math::CofactorCalc< Mat, SmallMat > Struct Template Reference

#include <glsl_math.h>

List of all members.

Static Public Member Functions

float calc (const Mat &m, typename Mat::size_type col, typename Mat::size_type row)

template<typename Mat, typename SmallMat>
struct gslib::glsl_math::CofactorCalc< Mat, SmallMat >


Member Function Documentation

template<typename Mat, typename SmallMat>
float gslib::glsl_math::CofactorCalc< Mat, SmallMat >::calc const Mat &  m,
typename Mat::size_type  col,
typename Mat::size_type  row
[inline, static]
 

Definition at line 631 of file glsl_math.h.

References gslib::glsl_math::det().

00631                                                                                                     {
00632                 SmallMat    result;
00633                 float* f = result.array;
00634                 for ( Mat::size_type i = 0; i < Mat::columnSize(); ++i ) {
00635                     if ( i != col ) {
00636                         for ( Mat::size_type j = 0; j < Mat::rowSize(); ++j ) {
00637                             if ( j != row ) {
00638                                 *f = m[ i ][ j ];
00639                                 ++f;
00640                             }
00641                         }
00642                     }
00643                 }
00644                 return det( result );
00645             }

Here is the call graph for this function:


The documentation for this struct was generated from the following file:
Generated on Fri Dec 24 00:52:26 2004 for glsl_math by doxygen 1.3.6