static byte[] Start() { var ap = new ak(); ap.al = new[] { new s(new d(), 1, new d()) }; ap.am = new[] { new af(new d(), new d()) }; int pixelsLength = v; byte[] pixels = new byte[pixelsLength]; y(ap, pixels); return(pixels); }
static d ao(p ai, ak ap, int aq) { s ar = ap.al[0]; var point_of_hit = ai.q; var normal = s.ac(ar, point_of_hit); if (d.ab(normal, point_of_hit) > 0) { normal = -normal; } Console.WriteLine(d.ab(normal, point_of_hit)); return(new d()); }
static byte[] y(ak ap, byte[] pixels) { for (int k = 0; k != an; ++k) { d dir; dir.e = dir.f = dir.g = 1.0f; p r; r.w = r.q = dir; var pixel = ao(r, ap, 0); int i = k; pixels[i] = (byte)Math.Min(pixel.e, 5); } return(pixels); }