public double noise(double xin, double yin){
		double s = (xin + yin) * F2;
		int i = fastFloor(xin + s);
		int j = fastFloor(yin + s);
		double t = (i+j) * G2;
		double X0 = i - t;
		double Y0 = j - t;
		double x0 = xin - X0;
		double y0 = yin - Y0;
		
		int i1, j1;
		if(x0 > y0){
			i1 = 1;
			j1 = 0;
		}else{
			i1 = 0;
			j1 = 1;
		}
		double x1 = x0 - i1 + G2;
		double y1 = y0 - j1 + G2;
		double x2 = x0 - 1 + (2 * G2);
		double y2 = y0 - 1 + (2 * G2);
		
		int ii = i&255;
		int jj = j&255;
		
		int gi0 = permMod12[ii + perm[jj]];
		int gi1 = permMod12[ii +i1 + perm[jj +j1]];
		int gi2 = permMod12[ii + 1 + perm[jj + 1]];
		
		double n0, n1, n2;
		double t0 = 0.5 - x0*x0 - y0*y0;
		if(t0 < 0){
			n0 = 0;
		}else{
			t0 *= t0;
			n0 = t0 * t0 *dot(points[gi0], x0, y0);
		}
		double t1 = 0.5 - x1*x1 - y1*y1;
		if(t1 < 0){
			n1 = 0;
		}else{
			t1 *= t1;
			n1 = t1 * t1 * dot(points[gi1], x1, y1);
		}
		double t2 = 0.5 - x2*x2 - y2*y2;
		if(t2 < 0){
			n2 = 0;
		}else{
			t2 *= t2;
			n2 = t2 * t2 * dot(points[gi2], x2, y2);
		}
		
		return 70 * (n0 + n1 + n2);
	}