graphics.raytrace/src/main/java/org/intranet/graphics/raytrace/primitive/Matrix.java
public static Matrix newRotationX(double d)
	{
		Matrix translation = identity(4);
		translation.matrix[1][1] = Math.cos(d);
		translation.matrix[1][2] = -Math.sin(d);
		translation.matrix[2][1] = Math.sin(d);
		translation.matrix[2][2] = Math.cos(d);
		return translation;
	}
/**
	* @param d And angle in radians
	* @return
	*/
@param d And angle in radians
@return
@param d And angle in radians @return
public static Matrix newRotationX(double d)
	{
		Matrix translation = identity(4);
		translation.matrix[1][1] = Math.cos(d);
		translation.matrix[1][2] = -Math.sin(d);
		translation.matrix[2][1] = Math.sin(d);
		translation.matrix[2][2] = Math.cos(d);
		return translation;
	}
public static Matrix newRotationX ( double d ) { Matrix translation = identity ( 4 ) ; translation . matrix [ 1 ] [ 1 ] = Math . cos ( d ) ; translation . matrix [ 1 ] [ 2 ] = - Math . sin ( d ) ; translation . matrix [ 2 ] [ 1 ] = Math . sin ( d ) ; translation . matrix [ 2 ] [ 2 ] = Math . cos ( d ) ; return translation ; }
@param d And angle in radians
 @return
@param d And angle in radians @return