
// lg3dmatg.cpp
//
// Copyright (c) 1996 by Toshiaki Tsuji, all rights reserved.

#include "stdgfx.h"
#include "lg3dmat.h"

// VOID _FLPMultMatrix ( G3DMATRIX Mat1, G3DMATRIX Mat2, G3DMATRIX Result )
//
// EAX = Mat1, EDX = Mat2, EBX = Result

VOID _FLPMultMatrix ( G3DMATRIX Mat1, G3DMATRIX Mat2, G3DMATRIX Result )
{
  INT i,j,k;
	float Val;

	for (i=0;i<4;i++)
		{
  	  for (j=0;j<4;j++)
		    {
          Val = 0;
	        for (k=0;k<4;k++)
		        {
						  Val += Mat1[i][k]*Mat2[k][j];
		        } // End for 
					Result[i][j] = Val;
		    } // End for 
		} // End for 
} // End of _FLPMultMatrix

