Home | History | Annotate | Download | only in program

Lines Matching defs:X0

217    float x0 = x - i0;
218 float x1 = x0 - 1.0f;
222 float t0 = 1.0f - x0 * x0;
225 n0 = t0 * t0 * grad1(perm[i0 & 0xff], x0);
254 float X0 = i - t; /* Unskew the cell origin back to (x,y) space */
256 float x0 = x - X0; /* The x,y distances from the cell origin */
266 if (x0 > y0) {
279 x1 = x0 - i1 + G2; /* Offsets for middle corner in (x,y) unskewed coords */
281 x2 = x0 - 1.0f + 2.0f * G2; /* Offsets for last corner in (x,y) unskewed coords */
289 t0 = 0.5f - x0 * x0 - y0 * y0;
294 n0 = t0 * t0 * grad2(perm[ii + perm[jj]], x0, y0);
339 float X0 = i - t; /* Unskew the cell origin back to (x,y,z) space */
342 float x0 = x - X0; /* The x,y,z distances from the cell origin */
356 if (x0 >= y0) {
365 else if (x0 >= z0) {
382 else { /* x0<y0 */
391 else if (x0 < z0) {
415 x1 = x0 - i1 + G3; /* Offsets for second corner in (x,y,z) coords */
418 x2 = x0 - i2 + 2.0f * G3; /* Offsets for third corner in (x,y,z) coords */
421 x3 = x0 - 1.0f + 3.0f * G3;/* Offsets for last corner in (x,y,z) coords */
431 t0 = 0.6f - x0 * x0 - y0 * y0 - z0 * z0;
436 n0 = t0 * t0 * grad3(perm[ii + perm[jj + perm[kk]]], x0, y0, z0);
498 float X0 = i - t; /* Unskew the cell origin back to (x,y,z,w) space */
503 float x0 = x - X0; /* The x,y,z,w distances from the cell origin */
510 * determine the magnitude ordering of x0, y0, z0 and w0.
517 int c1 = (x0 > y0) ? 32 : 0;
518 int c2 = (x0 > z0) ? 16 : 0;
520 int c4 = (x0 > w0) ? 4 : 0;
558 x1 = x0 - i1 + G4; /* Offsets for second corner in (x,y,z,w) coords */
562 x2 = x0 - i2 + 2.0f * G4; /* Offsets for third corner in (x,y,z,w) coords */
566 x3 = x0 - i3 + 3.0f * G4; /* Offsets for fourth corner in (x,y,z,w) coords */
570 x4 = x0 - 1.0f + 4.0f * G4; /* Offsets for last corner in (x,y,z,w) coords */
582 t0 = 0.6f - x0 * x0 - y0 * y0 - z0 * z0 - w0 * w0;
588 t0 * t0 * grad4(perm[ii + perm[jj + perm[kk + perm[ll]]]], x0, y0,