QColorMatrix.cpp
// phi is in degree
// x and y are the indices of the value to receive the sin(phi) value

phi is in degree
x and y are the indices of the value to receive the sin(phi) value
phi is in degree x and y are the indices of the value to receive the sin ( phi ) value
Status QColorMatrix::RotateColor(REAL phi, int x, int y, MatrixOrder order )
{
	phi *= rad;
	QColorMatrix m;
	m.m[x][x] = m.m[y][y] = (REAL) cos(phi);
	REAL s = (REAL) sin(phi);
	m.m[y][x] = s;
	m.m[x][y] = - s;
	return Multiply(& m, order);
}
Status QColorMatrix :: RotateColor ( REAL phi , int x , int y , MatrixOrder order ) { phi *= rad ; QColorMatrix m ; m . m [ x ] [ x ] = m . m [ y ] [ y ] = ( REAL ) cos ( phi ) ; REAL s = ( REAL ) sin ( phi ) ; m . m [ y ] [ x ] = s ; m . m [ x ] [ y ] = - s ; return Multiply ( & m , order ) ; }
phi is in degree
x and y are the indices of the value to receive the sin(phi) value
phi is in degree x and y are the indices of the value to receive the sin ( phi ) value
/* = MatrixOrderPrepend */