Lines Matching refs:x

72                 a.x = points[i].x - points[i - 1].x;  in rt_polycylinder()
88 xoff = ctr.x - (wx / 2.0); in rt_heightfield()
94 v0.x = wx * (xx) / (m * 1.0) + xoff; in rt_heightfield()
98 v1.x = wx * (xx + 1) / (m * 1.0) + xoff; in rt_heightfield()
102 v2.x = wx * (xx + 1) / (m * 1.0) + xoff; in rt_heightfield()
108 v0.x = wx * (xx) / (m * 1.0) + xoff; in rt_heightfield()
112 v1.x = wx * (xx) / (m * 1.0) + xoff; in rt_heightfield()
116 v2.x = wx * (xx + 1) / (m * 1.0) + xoff; in rt_heightfield()
131 int x, y, addr; in rt_sheightfield() local
136 offset.x = ctr.x - (wx / 2.0); in rt_sheightfield()
145 for (x = 0; x < m; x++) { 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()
153 for (x = 1; x < m; x++) { in rt_sheightfield()
154 normals[x] = normals[(n - 1) * m + x] = rt_vector(0.0, 1.0, 0.0); in rt_sheightfield()
160 for (x = 1; x < (m - 1); x++) { in rt_sheightfield()
161 addr = y * m + x; in rt_sheightfield()
173 for (x = 0; x < (m - 1); x++) { in rt_sheightfield()
174 addr = y * m + x; in rt_sheightfield()
204 int x, 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
232 x = (x1 + x2) / 2; in subdivide()
235 adjust(base, xres, yres, wx, wy, x1, y1, x, y1, x2, y1); in subdivide()
237 adjust(base, xres, yres, wx, wy, x1, y2, x, y2, x2, 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
263 for (x = 0; x < m; x++) { in rt_landscape()
264 field[x + y * m] = 0.0; in rt_landscape()