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

gslib::glsl_math::DetCalc< Mat > Struct Template Reference

#include <glsl_math.h>

List of all members.

Static Public Member Functions

float calc (const Mat &m)

template<typename Mat>
struct gslib::glsl_math::DetCalc< Mat >


Member Function Documentation

template<typename Mat>
float gslib::glsl_math::DetCalc< Mat >::calc const Mat &  m  )  [inline, static]
 

Definition at line 649 of file glsl_math.h.

References gslib::glsl_math::cofactor().

00649                                               {
00650                 float result = 0;
00651                 for ( Mat::size_type i = 0; i < Mat::columnSize(); ++i ) {
00652                     result += ( ( 0 == ( i & 1 ) ) ? 1 : -1 ) * m[ 0 ][ i ] * cofactor( m, 0, i );
00653                 }
00654                 return result;
00655             }

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:28 2004 for glsl_math by doxygen 1.3.6