00001 // This is core/vgui/internals/vgui_multiply_4x4.cxx 00002 #ifdef VCL_NEEDS_PRAGMA_INTERFACE 00003 #pragma implementation 00004 #endif 00005 //: 00006 // \file 00007 // \author fsm 00008 00009 #include "vgui_multiply_4x4.h" 00010 00011 void vgui_multiply_4x4(double const A[4][4], double const B[4][4], double M[4][4]) 00012 { 00013 for (unsigned i=0; i<4; ++i) { 00014 for (unsigned k=0; k<4; ++k) { 00015 M[i][k] = 0; 00016 for (unsigned j=0; j<4; ++j) 00017 M[i][k] += A[i][j] * B[j][k]; 00018 } 00019 } 00020 }