Lines Matching refs:y
73 a.y = points[i].y - points[i - 1].y; in rt_polycylinder()
90 zoff = ctr.y; in rt_heightfield()
95 v0.y = field[(yy)*m + (xx)] + zoff; in rt_heightfield()
99 v1.y = field[(yy)*m + (xx + 1)] + zoff; in rt_heightfield()
103 v2.y = field[(yy + 1) * m + (xx + 1)] + zoff; in rt_heightfield()
109 v0.y = field[(yy)*m + (xx)] + zoff; in rt_heightfield()
113 v1.y = field[(yy + 1) * m + (xx)] + zoff; in rt_heightfield()
117 v2.y = field[(yy + 1) * m + (xx + 1)] + zoff; in rt_heightfield()
131 int x, y, addr; in rt_sheightfield() local
137 offset.y = ctr.z - (wy / 2.0); in rt_sheightfield()
138 offset.z = ctr.y; in rt_sheightfield()
144 for (y = 0; y < n; y++) { in rt_sheightfield()
146 addr = y * m + x; in rt_sheightfield()
148 rt_vector(x * xinc + offset.x, field[addr] + offset.z, y * yinc + offset.y); in rt_sheightfield()
156 for (y = 1; y < n; y++) { in rt_sheightfield()
157 normals[y * m] = normals[y * m + (m - 1)] = rt_vector(0.0, 1.0, 0.0); in rt_sheightfield()
159 for (y = 1; y < (n - 1); y++) { in rt_sheightfield()
161 addr = y * m + x; in rt_sheightfield()
172 for (y = 0; y < (n - 1); y++) { in rt_sheightfield()
174 addr = y * m + x; in rt_sheightfield()
205 int y, in adjust() argument
210 if (base[x + (xres * y)] == 0.0) { in adjust()
220 base[x + (xres * y)] = v; in adjust()
226 long x, y; in subdivide() local
233 y = (y1 + y2) / 2; in subdivide()
236 adjust(base, xres, yres, wx, wy, x2, y1, x2, y, x2, y2); in subdivide()
238 adjust(base, xres, yres, wx, wy, x1, y1, x1, y, x1, y2); in subdivide()
240 if (base[x + xres * y] == 0.0) { in subdivide()
241 base[x + (xres * y)] = (base[x1 + xres * y1] + base[x2 + xres * y1] + base[x2 + xres * y2] + in subdivide()
246 subdivide(base, xres, yres, wx, wy, x1, y1, x, y); in subdivide()
247 subdivide(base, xres, yres, wx, wy, x, y1, x2, y); in subdivide()
248 subdivide(base, xres, yres, wx, wy, x, y, x2, y2); in subdivide()
249 subdivide(base, xres, yres, wx, wy, x1, y, x, y2); in subdivide()
253 int totalsize, x, y; in rt_landscape() local
262 for (y = 0; y < n; y++) { in rt_landscape()
264 field[x + y * m] = 0.0; in rt_landscape()