public void intersectWithBullets()
	{
		Point2D.Double cornerP1=null,cornerP2=null,cornerP3=null,cornerP4=null;
		float width = getWidth(),height = getHeight(),radians = getRotation();
		// first set of Points
		 double diagHalfLength = Math.sqrt(width*width + height*height)/2;
		 double innerHalfAngle = Math.atan(height/width);
		 double innerAngle = radians-innerHalfAngle;
		 
		 double yAdd = Math.sin(innerAngle) * diagHalfLength;
		 double xAdd = Math.cos(innerAngle) * diagHalfLength;
		 
		 double startX1 = centerX + xAdd;
		 double startY1 = centerY + yAdd;
		 cornerP1 = new Point2D.Double(startX1,startY1);
		 		 
		 //second set of Points
		 innerAngle = radians + innerHalfAngle;
		 
		 yAdd = Math.sin(innerAngle) * diagHalfLength;
		 xAdd = Math.cos(innerAngle) * diagHalfLength;
		 
		 double endX1 = centerX + xAdd;
		 double endY1 = centerY + yAdd;
		 cornerP2 = new Point2D.Double(endX1,endY1);
		
		 
		          // CHECKING FOR INTERSECT IN SIDE 2
		 // first set of Points
		 innerAngle = radians + Math.toRadians(180)-innerHalfAngle;
		 yAdd = Math.sin(innerAngle) * diagHalfLength;
		 xAdd = Math.cos(innerAngle) * diagHalfLength;
		 
		 double startX2 = centerX + xAdd;
		 double startY2 = centerY + yAdd;
		 cornerP3 = new Point2D.Double(startX2,startY2);
		 
					 //second set of Points
		 innerAngle = radians + Math.toRadians(180)+innerHalfAngle;
		 
		 yAdd = Math.sin(innerAngle) * diagHalfLength;
		 xAdd = Math.cos(innerAngle) * diagHalfLength;
		 
		 double endX2 = centerX + xAdd;
		 double endY2 = centerY + yAdd;
		 cornerP4 = new Point2D.Double(endX2,endY2);
			 
		ArrayList<Bullet> bullets = getGameWorld().getDrawableActorGroup().getBulletGroup().getList();
		
		for(int i = 0;i<bullets.size();i++)
		{
			if(bullets.get(i).getTeam()==getTeam())
				continue;	
			 Line2D.Double line = bullets.get(i).getLineCoord();
			 if(line.intersectsLine(cornerP1.getX(),cornerP1.getY(),cornerP2.getX(),cornerP2.getY()))     
			 {
				 bullets.remove(i);
				 i--;
				 changeLife(-1);
				 continue;
			 }
			 if(line.intersectsLine(cornerP3.getX(),cornerP3.getY(),cornerP4.getX(),cornerP4.getY()))
			 {
				 bullets.remove(i);
				 i--;
				 changeLife(-1);
				 continue;
			 }
			 		
			 if(line.intersectsLine(cornerP1.getX(),cornerP1.getY(),cornerP4.getX(),cornerP4.getY()))
			 {
				 bullets.remove(i);
				 i--;
				 changeLife(-1);
				 continue;
			 }
			 		
			 if(line.intersectsLine(cornerP2.getX(),cornerP2.getY(),cornerP3.getX(),cornerP3.getY()))
			 {
				 bullets.remove(i);
				 i--;
				 changeLife(-1);
				 continue;
			 }
		}
		
		
	}