software/MFrame/graphicalFunctions/matrix.cpp
/* 
 *	xformpnt -	
 *		transform a 3D point using a matrix
 */
xformpnt
transform a 3D point using a matrix
xformpnt transform a 3D point using a matrix
void XFormPoint(RGBMatrix matrix, float x, float y, float z, float* tx, float* ty, float* tz)
{
    *tx = x*matrix[0][0] + y*matrix[1][0] + z*matrix[2][0] + matrix[3][0];
    *ty = x*matrix[0][1] + y*matrix[1][1] + z*matrix[2][1] + matrix[3][1];
    *tz = x*matrix[0][2] + y*matrix[1][2] + z*matrix[2][2] + matrix[3][2];
}
void XFormPoint ( RGBMatrix matrix , float x , float y , float z , float * tx , float * ty , float * tz ) { * tx = x * matrix [ 0 ] [ 0 ] + y * matrix [ 1 ] [ 0 ] + z * matrix [ 2 ] [ 0 ] + matrix [ 3 ] [ 0 ] ; * ty = x * matrix [ 0 ] [ 1 ] + y * matrix [ 1 ] [ 1 ] + z * matrix [ 2 ] [ 1 ] + matrix [ 3 ] [ 1 ] ; * tz = x * matrix [ 0 ] [ 2 ] + y * matrix [ 1 ] [ 2 ] + z * matrix [ 2 ] [ 2 ] + matrix [ 3 ] [ 2 ] ; }
xformpnt 
              transform a 3D point using a matrix
xformpnt transform a 3D point using a matrix