bit of help converting?

could someone help me convert this code to generate a modelview/projection matrix?


package com.google.sites.lvgeeks.deepthought.utils.opengl.lwjgl;
import org.lwjgl.opengl.*;
import org.lwjgl.util.glu.*;
public class AnotherBloodyCamera {

   

public static void look(int FOV,float aspectratio, float atx, float aty, float atz,float yaw, float pitch,float roll)
	{
		yaw+=180;
		while(pitch>360||pitch<0)
		{
		if(pitch>360)
		{
			pitch-=360;
		}
		if(pitch<0)
		{
			pitch+=360;
			
		}
		}
		
		while(yaw>360||yaw<0)
		{
		if(yaw>360)
		{
			yaw-=360;
		}
		if(yaw<0)
		{
			yaw+=360;
		}
		}
		
		
		while(roll>360||roll<0)
		{
		if(roll>360)
		{
			roll-=360;
		}
		if(roll<0)
		{
			roll+=360;
		}
		}
		
		
		
		double yawrad = (Math.PI*yaw)/180;
		double pitchrad = (Math.PI*pitch)/180;
		
		float lookz=(float) (atz+(30*Math.cos(yawrad)));
		float lookx=(float) (atx+(30*Math.sin(yawrad)));
		float looky=(float) (aty+(30*Math.tan(pitchrad)));
		
		 
		GL11.glMatrixMode(GL11.GL_PROJECTION);
        GL11.glLoadIdentity();
		
		GLU.gluPerspective(FOV, aspectratio, 1f, 9000f);
		
		  GL11.glMatrixMode(GL11.GL_MODELVIEW);
		  GL11.glLoadIdentity();
		 
		  GL11.glRotatef(-roll, 0, 0, 1);
		  
		  
		  GLU.gluLookAt(atx, aty, atz, lookx, looky, lookz, 0, 1, 0);
		
		
        //System.out.println(lookx+" "+ looky+" "+ lookz);
      
	}
	
}



Thanks!