public boolean collision(double x, double y, Entity other)
	{
		Point loc=new Point(x,y);
		/*AffineTransform af=new AffineTransform();
		if(loc!=null)
			af.translate(loc.x,loc.y);
		else
			af.translate(point.x,point.y);
		Area myarea=mask.createTransformedArea(af);*/
		
		AffineTransform af=new AffineTransform();
		af.translate(other.x,other.y);
		Area otherarea=other.mask.area().createTransformedArea(af);
		
		/*myarea.intersect(otherarea);
		return(!myarea.isEmpty());*/
		return(collision(loc, otherarea));
	}