Lines Matching defs:rhw
3405 float x, y, z, rhw;
3412 rhw = (p[0] * mat.u.s._14) + (p[1] * mat.u.s._24) + (p[2] * mat.u.s._34) + (1.0f * mat.u.s._44);
3414 TRACE("x=%f y=%f z=%f rhw=%f\n", x, y, z, rhw);
3423 * -rhw < x <= rhw
3424 * -rhw < y <= rhw
3425 * 0 < z <= rhw
3426 * 0 < rhw ( Not in d3d7, but tested in d3d7)
3434 ( (-rhw -eps < x) && (-rhw -eps < y) && ( -eps < z) &&
3435 (x <= rhw + eps) && (y <= rhw + eps ) && (z <= rhw + eps) &&
3436 ( rhw > eps ) ) ) {
3439 * 1) The values are divided by rhw
3447 * 7) rhw = 1 / rhw Reciprocal of Homogeneous W....
3453 x /= rhw;
3454 y /= rhw;
3455 z /= rhw;
3467 rhw = 1 / rhw;
3474 x += rhw;
3475 y += rhw;
3486 TRACE("Writing (%f %f %f) %f\n", x, y, z, rhw);
3492 ( (float *) dest_ptr)[3] = rhw; /* SIC, see ddraw test! */