graphics.raytrace/src/main/java/org/intranet/graphics/raytrace/primitive/Matrix.java
public static Matrix newRotationZ(double d)
	{
		Matrix translation = identity(4);
		translation.matrix[0][0] = Math.cos(d);
		translation.matrix[0][1] = -Math.sin(d);
		translation.matrix[1][0] = Math.sin(d);
		translation.matrix[1][1] = 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 newRotationZ(double d)
	{
		Matrix translation = identity(4);
		translation.matrix[0][0] = Math.cos(d);
		translation.matrix[0][1] = -Math.sin(d);
		translation.matrix[1][0] = Math.sin(d);
		translation.matrix[1][1] = Math.cos(d);
		return translation;
	}
public static Matrix newRotationZ ( double d ) { Matrix translation = identity ( 4 ) ; translation . matrix [ 0 ] [ 0 ] = Math . cos ( d ) ; translation . matrix [ 0 ] [ 1 ] = - Math . sin ( d ) ; translation . matrix [ 1 ] [ 0 ] = Math . sin ( d ) ; translation . matrix [ 1 ] [ 1 ] = Math . cos ( d ) ; return translation ; }
@param d And angle in radians
 @return
@param d And angle in radians @return