src/vec_mat_org.h
// *********************************************************************
// MAT_ functions for various types of matrices typically used in 
// computer graphics (implementations)
// --------------------------------------------------------------------
MAT_ functions for various types of matrices typically used in
computer graphics (implementations)
MAT_ functions for various types of matrices typically used in computer graphics ( implementations )
inline Matriz4f MAT_Ident(  )
{
   Matriz4f res ;
   for( unsigned fil = 0 ; fil < 4 ; fil++ )
   for( unsigned col = 0 ; col < 4 ; col++ )
      res(fil,col) = (col == fil) ? 1.0f : 0.0f ;
   return res ;
}
inline Matriz4f MAT_Ident ( ) { Matriz4f res ; for ( unsigned fil = 0 ; fil < 4 ; fil ++ ) for ( unsigned col = 0 ; col < 4 ; col ++ ) res ( fil , col ) = ( col == fil ) ? 1.0f : 0.0f ; return res ; }
MAT_ functions for various types of matrices typically used in
computer graphics (implementations)
MAT_ functions for various types of matrices typically used in computer graphics ( implementations )