Subversion Repositories ps3ware

Compare Revisions

Ignore whitespace Rev 210 → Rev 211

/trunk/libps3rsx/include/matrix.h
44,6 → 44,19
}
 
 
void scalef( float x, float *matrix )
{
float a[16];
float b[16];
identity( b );
M( b, 0, 0 ) = x;
M( b, 1, 1 ) = x;
M( b, 2, 2 ) = x;
M( b, 3, 3 ) = 1.0f;
multiply( matrix, b, a );
memcpy( matrix, a, sizeof( a ) );
}
 
void rotatef( float angle, float x, float y, float z, float *matrix )
{
float a[16];