import org.lwjgl.opengl.GL11;

public class Rectangle {
  
	private double _xcor;
	private double _ycor;
	private double _height;
	private double _width;
	
	private double _xvel;
	private double _yvel;
	private double _xacc;
	private double _yacc;
	
	public Rectangle(double x, double y, double h, double w) {
		GL11.glColor3d(1,1,1);
		GL11.glBegin(GL11.GL_QUADS);
		GL11.glVertex2d(x	 , y	);
		GL11.glVertex2d(x + w, y	);
		GL11.glVertex2d(x + w, y + h);
		GL11.glVertex2d(x	 , y + h);
		GL11.glEnd();
		
		_xcor = x;
		_ycor = y;
		_height = h;
		_width = w;
	}
	
	public void draw(){
		GL11.glColor3d(1,1,1);
		GL11.glBegin(GL11.GL_QUADS);
		GL11.glVertex2d(_xcor	      , _ycor	);
		GL11.glVertex2d(_xcor + _width, _ycor	);
		GL11.glVertex2d(_xcor + _width, _ycor + _height);
		GL11.glVertex2d(_xcor		  , _ycor + _height);
		GL11.glEnd();
	}
	
	
	
	public double getXvel(){return _xvel;}
	public double setXvel(double xvel){
		double temp = _xvel;
		_xvel = xvel;
		return temp;}
	public double getYvel(){return _yvel;}
	public double setYvel(double yvel){
		double temp = _yvel;
		_yvel = yvel;
		return temp;}
	
	
	public void update(int delta){
		_xvel += _xacc * (double) delta / 1000;
		_yvel += _yacc * (double) delta / 1000;
		
		_xcor += _xvel * (double) delta / 1000;
		_ycor += _yvel * (double) delta / 1000;
	}
}

@@ -49,18 +49,17 @@
 angle %7B%0A
-  
+%09
 %0A%09privat
@@ -841,16 +841,565 @@
 ;%0A%09%7D%0A%09%0A%09
+public double getWidth()%7Breturn _width;%7D%0A%09public double setWidth(double Width)%7B%0A%09%09double temp = _width;%0A%09%09_width = Width;%0A%09%09return temp;%7D%0A%09public double getHeight()%7Breturn _height;%7D%0A%09public double setHeight(double height)%7B%0A%09%09double temp = _height;%0A%09%09_height = height;%0A%09%09return temp;%7D%0A%09%0A%09public double getXcor()%7Breturn _xcor;%7D%0A%09public double setXcor(double xcor)%7B%0A%09%09double temp = _xcor;%0A%09%09_xcor = xcor;%0A%09%09return temp;%7D%0A%09public double getYcor()%7Breturn _ycor;%7D%0A%09public double setYcor(double ycor)%7B%0A%09%09double temp = _ycor;%0A%09%09_ycor = ycor;%0A%09%09return temp;%7D
 %0A%09%0A%09publ
@@ -1659,16 +1659,280 @@
 emp;%7D%0A%09%0A
+%09public double getXacc()%7Breturn _xacc;%7D%0A%09public double setXacc(double xacc)%7B%0A%09%09double temp = _xacc;%0A%09%09_xacc = xacc;%0A%09%09return temp;%7D%0A%09public double getYacc()%7Breturn _yacc;%7D%0A%09public double setYacc(double yacc)%7B%0A%09%09double temp = _yacc;%0A%09%09_yacc = yacc;%0A%09%09return temp;%7D%0A
 %09%0A%09publi

Update Rectangle.java