Home
last modified time | relevance | path

Searched refs:z (Results 1 – 25 of 43) sorted by relevance

12

/oneTBB/examples/parallel_for/tachyon/src/
H A Dapitrigeom.cpp66 vector x, y, z, tmp; in rt_tri_fcylinder() local
72 z = axis; in rt_tri_fcylinder()
73 MyVNorm(&z); in rt_tri_fcylinder()
75 tmp.y = -z.z + 3.14159267; in rt_tri_fcylinder()
76 tmp.z = z.x - 3.915292342341; in rt_tri_fcylinder()
77 MyVNorm(&z); in rt_tri_fcylinder()
124 z = norm; in rt_tri_ring()
125 MyVNorm(&z); in rt_tri_ring()
127 tmp.y = -z.z + 3.14159267; in rt_tri_ring()
128 tmp.z = z.x - 3.915292342341; in rt_tri_ring()
[all …]
H A Dgrid.cpp165 gmin->z = MYMIN(gmin->z, min.z); in globalbound()
169 gmax->z = MYMAX(gmax->z, max.z); in globalbound()
192 cellmax.z = cellmin.z + g->voxsize.z; in cellbound()
214 cmin->z = MYMIN(cmin->z, min.z); in cellbound()
218 cmax->z = MYMAX(cmax->z, max.z); in cellbound()
429 for (z = low.z; z <= high.z; z++) { in engrid_object()
449 index->z = (int)((pos->z - g->min.z) / g->voxsize.z); in pos2grid()
463 pos->z < g->min.z || pos->z > g->max.z) in pos2grid()
537 tdelta.z = g->voxsize.z / -ry->d.z; in grid_intersect()
542 tdelta.z = g->voxsize.z / ry->d.z; in grid_intersect()
[all …]
H A Dvector.cpp55 return (a->x * b->x + a->y * b->y + a->z * b->z); in VDot()
59 c->x = (a->y * b->z) - (a->z * b->y); in VCross()
60 c->y = (a->z * b->x) - (a->x * b->z); in VCross()
65 return (flt)sqrt((a->x * a->x) + (a->y * a->y) + (a->z * a->z)); in VLength()
71 len = sqrt((a->x * a->x) + (a->y * a->y) + (a->z * a->z)); in VNorm()
75 a->z /= len; in VNorm()
82 c->z = (a->z + b->z); in VAdd()
88 c->z = (a->z - b->z); in VSub()
94 C->z = (a * A->z) + B->z; in VAddS()
102 temp.z = a->o.z + (a->d.z * t); in Raypnt()
[all …]
H A Dquadric.cpp75 q->ctr.z = 0.0; in newquadric()
93 ro.z = ry->o.z - q->ctr.z; in quadric_intersect()
97 (2.0 * q->mat.f * rd.y * rd.z) + (q->mat.h * (rd.z * rd.z)); in quadric_intersect()
100 (q->mat.c * ((ro.x * rd.z) + (rd.x * ro.z))) + (q->mat.d * rd.x) + in quadric_intersect()
101 (q->mat.e * ro.y * rd.y) + (q->mat.f * ((ro.y * rd.z) + (rd.y * ro.z))) + in quadric_intersect()
102 (q->mat.g * rd.y) + (q->mat.h * ro.z * rd.z) + (q->mat.i * rd.z)); in quadric_intersect()
106 (2.0 * q->mat.f * ro.y * ro.z) + (2.0 * q->mat.g * ro.y) + (q->mat.h * (ro.z * ro.z)) + in quadric_intersect()
127 q->mat.c * (pnt->z - q->ctr.z) + q->mat.d); in quadric_normal()
130 q->mat.f * (pnt->z - q->ctr.z) + q->mat.g); in quadric_normal()
133 q->mat.h * (pnt->z - q->ctr.z) + q->mat.i); in quadric_normal()
[all …]
H A Dtexture.cpp71 rh.y = hit->z - tex->ctr.z; in image_cyl_texture()
97 rh.z = hit->z - tex->ctr.z; in image_sphere_texture()
123 pnt.z = hit->z - tex->ctr.z; in image_plane_texture()
174 zh = hit->z - tex->ctr.z; in checker_texture()
176 z = z % 2; in checker_texture()
200 rh.z = hit->z - tex->ctr.z; in cyl_checker_texture()
231 z = (hit->z - tex->ctr.z) * 1000; in wood_texture()
263 for (z = 0; z < NMAX; z++) { in InitNoise()
299 z = fabs(z); in Noise()
307 oz = (z - ((int)z)); in Noise()
[all …]
H A Dcylinder.cpp96 rc.z = ry->o.z - cyl->ctr.z; in cylinder_intersect()
107 D.z = rc.z - d * cyl->axis.z; in cylinder_intersect()
148 b.z = c.z * t + cyl->ctr.z; in cylinder_normal()
156 N->z = -N->z; in cylinder_normal()
181 mintmp.z = c->ctr.z; in fcylinder_bbox()
184 maxtmp.z = c->ctr.z + c->axis.z; in fcylinder_bbox()
188 min->z = MYMIN(mintmp.z, maxtmp.z); in fcylinder_bbox()
195 max->z = MYMAX(mintmp.z, maxtmp.z); in fcylinder_bbox()
209 rc.z = ry->o.z - cyl->ctr.z; in fcylinder_intersect()
241 tmp2.z = hit.z - cyl->ctr.z; in fcylinder_intersect()
[all …]
H A Dmacros.hpp56 #define VDOT(return, a, b) return = (a.x * b.x + a.y * b.y + a.z * b.z);
61 c.z = a.o.z + (a.d.z * b);
66 c.z = (a.z - b.z);
69 c->x = (a->y * b->z) - (a->z * b->y); \
70 c->y = (a->z * b->x) - (a->x * b->z); \
71 c->z = (a->x * b->y) - (a->y * b->x);
H A Dbox.cpp136 if (ry->d.z == 0.0) { in box_intersect()
137 if ((ry->o.z < bx->min.z) || (ry->o.z > bx->max.z)) in box_intersect()
141 tz1 = (bx->min.z - ry->o.z) / ry->d.z; in box_intersect()
142 tz2 = (bx->max.z - ry->o.z) / ry->d.z; in box_intersect()
168 c.z = (bx->max.z + bx->min.z) / 2.0; in box_normal()
175 a.z = fabs(N->z); in box_normal()
179 N->z = 0.0; in box_normal()
181 t = MYMAX(a.x, MYMAX(a.y, a.z)); in box_normal()
189 if (t == a.z) in box_normal()
190 N->z = b.z; in box_normal()
H A Dextvol.cpp107 xvol->tex->ctr.z = 0.0; in newextvol()
218 if (ry->d.z == 0.0) { in ext_volume_texture()
219 if ((ry->o.z < bx->min.z) || (ry->o.z > bx->max.z)) in ext_volume_texture()
223 tz1 = (bx->min.z - ry->o.z) / ry->d.z; in ext_volume_texture()
224 tz2 = (bx->max.z - ry->o.z) / ry->d.z; in ext_volume_texture()
249 bln.z = fabs(bx->min.z - bx->max.z); in ext_volume_texture()
259 pnt.z = ((ry->o.z + (ry->d.z * t)) - bx->min.z) / bln.z; in ext_volume_texture()
262 scalar = xvol->evaluator(pnt.x, pnt.y, pnt.z); in ext_volume_texture()
278 N.x = (xvol->evaluator(pnt.x - ddt, pnt.y, pnt.z) - in ext_volume_texture()
286 N.z = (xvol->evaluator(pnt.x, pnt.y, pnt.z - ddt) - in ext_volume_texture()
[all …]
H A Dobjbound.cpp68 gmin->z = FHUGE; in globalbound()
86 gmin->z = MYMIN(gmin->z, min.z); in globalbound()
90 gmax->z = MYMAX(gmax->z, max.z); in globalbound()
104 (max->y >= omax.y) && (max->z >= omax.z)) { in objinside()
158 gctr.z = ((gmax.z - gmin.z) / 2.0) + gmin.z; in octreespace()
168 cmax2.z = gctr.z; in octreespace()
175 cmax3.z = gctr.z; in octreespace()
182 cmax4.z = gctr.z; in octreespace()
186 cmin5.z = gctr.z; in octreespace()
188 cmax5.z = gmax.z; in octreespace()
[all …]
H A Dbndbox.cpp116 if ((ry->s.z > bx->max.z) && (ry->e.z > bx->max.z)) in bndbox_intersect()
118 if ((ry->s.z < bx->min.z) && (ry->e.z < bx->min.z)) in bndbox_intersect()
169 if (ry->d.z == 0.0) { in bndbox_intersect()
170 if ((ry->o.z < bx->min.z) || (ry->o.z > bx->max.z)) in bndbox_intersect()
174 tz1 = (bx->min.z - ry->o.z) / ry->d.z; in bndbox_intersect()
175 tz2 = (bx->max.z - ry->o.z) / ry->d.z; in bndbox_intersect()
H A Dtriangle.cpp128 dest.x = v1.y * v2.z - v1.z * v2.y; \
129 dest.y = v1.z * v2.x - v1.x * v2.z; \
130 dest.z = v1.x * v2.y - v1.y * v2.x;
132 #define DOT(v1, v2) (v1.x * v2.x + v1.y * v2.y + v1.z * v2.z)
137 dest.z = v1.z - v2.z;
148 min->z = MYMIN(t->v0.z, MYMIN(v1.z, v2.z)); in tri_bbox()
152 max->z = MYMAX(t->v0.z, MYMAX(v1.z, v2.z)); in tri_bbox()
202 N->z = -N->z; in tri_normal()
225 N->z = W * trn->n0.z + U * trn->n1.z + V * trn->n2.z; in stri_normal()
H A Dvol.cpp107 tx->ctr.z = 0.0; in newscalarvol()
169 int x, y, z; in scalar_volume_texture() local
226 if (ry->d.z == 0.0) { in scalar_volume_texture()
227 if ((ry->o.z < bx->min.z) || (ry->o.z > bx->max.z)) in scalar_volume_texture()
231 tz1 = (bx->min.z - ry->o.z) / ry->d.z; in scalar_volume_texture()
232 tz2 = (bx->max.z - ry->o.z) / ry->d.z; in scalar_volume_texture()
256 bln.z = fabs(bx->min.z - bx->max.z); in scalar_volume_texture()
258 dt = sqrt(bln.x * bln.x + bln.y * bln.y + bln.z * bln.z) / tdist; in scalar_volume_texture()
270 pnt.z = ((ry->o.z + (ry->d.z * t)) - bx->min.z) / bln.z; in scalar_volume_texture()
274 z = (int)((vol->zres - 1.5) * pnt.z + 0.5); in scalar_volume_texture()
[all …]
H A Dgrid.hpp81 int z; /* Voxel Z address */ member
89 #define voxel2z(g, Z) ((Z) * (g->voxsize.z) + (g->min.z))
96 #define z2voxel(g, z) (((z)-g->min.z) / g->voxsize.z) argument
H A Dparse.cpp146 tmp.z = degtorad(degvec->z); in degvectoradvec()
152 rot->rx2 = sin(x) * sin(y) * cos(z) - cos(x) * sin(z); in InitRot3d()
153 rot->rx3 = sin(x) * sin(z) + cos(x) * cos(z) * sin(y); in InitRot3d()
156 rot->ry2 = cos(x) * cos(z) + sin(x) * sin(y) * sin(z); in InitRot3d()
157 rot->ry3 = cos(x) * sin(y) * sin(z) - sin(x) * cos(z); in InitRot3d()
175 vec->z = vec->z * scale->z; in Scale3d()
181 vec->z += trans->z; in Trans3d()
286 Cview.z = c; in GetScenedefs()
292 Cup.z = c; in GetScenedefs()
367 v1->z = c; in GetVector()
[all …]
H A Dsphere.cpp84 min->z = s->ctr.z - s->rad; in sphere_bbox()
87 max->z = s->ctr.z + s->rad; in sphere_bbox()
124 N->z = -N->z; in sphere_normal()
H A Dring.cpp86 min->z = r->ctr.z - r->outrad; in ring_bbox()
89 max->z = r->ctr.z + r->outrad; in ring_bbox()
122 N->z = -N->z; in ring_normal()
H A Dapigeom.cpp74 a.z = points[i].z - points[i - 1].z; in rt_polycylinder()
89 yoff = ctr.z - (wy / 2.0); in rt_heightfield()
96 v0.z = wy * (yy) / (n * 1.0) + yoff; in rt_heightfield()
100 v1.z = wy * (yy) / (n * 1.0) + yoff; in rt_heightfield()
104 v2.z = wy * (yy + 1) / (n * 1.0) + yoff; in rt_heightfield()
110 v0.z = wy * (yy) / (n * 1.0) + yoff; in rt_heightfield()
114 v1.z = wy * (yy + 1) / (n * 1.0) + yoff; in rt_heightfield()
118 v2.z = wy * (yy + 1) / (n * 1.0) + yoff; in rt_heightfield()
137 offset.y = ctr.z - (wy / 2.0); in rt_sheightfield()
138 offset.z = ctr.y; in rt_sheightfield()
[all …]
H A Dcoordsys.cpp69 *v = pnt.z / height; in xyztocyl()
79 r1 = sqrt(pnt.x * pnt.x + pnt.y * pnt.y + pnt.z * pnt.z); in xyztospr()
86 if (pnt.z > 0.0) in xyztospr()
H A Dcamera.cpp76 projcent.z = scene->camcent.z + scene->camviewvec.z; in camray()
/oneTBB/src/tbb/tools_api/
H A Dittnotify.h2141 #define __itt_region_begin(d,x,y,z) ITTNOTIFY_VOID_D3(region_begin,d,x,y,z) argument
2255 #define __itt_task_group(d,x,y,z) ITTNOTIFY_VOID_D3(task_group,d,x,y,z) argument
2340 #define __itt_task_begin(d,x,y,z) ITTNOTIFY_VOID_D3(task_begin,d,x,y,z) argument
2342 #define __itt_task_begin_fn(d,x,y,z) ITTNOTIFY_VOID_D3(task_begin_fn,d,x,y,z) argument
2417 #define __itt_marker(d,x,y,z) ITTNOTIFY_VOID_D3(marker,d,x,y,z) argument
2475 #define __itt_metadata_add(d,x,y,z,a,b) ITTNOTIFY_VOID_D5(metadata_add,d,x,y,z,a,b) argument
2524 #define __itt_metadata_str_add(d,x,y,z,a) ITTNOTIFY_VOID_D4(metadata_str_add,d,x,y,z,a)
2701 #define __itt_relation_add(d,x,y,z) ITTNOTIFY_VOID_D3(relation_add,d,x,y,z) argument
2830 #define __itt_id_create_ex(d,x,y,z) ITTNOTIFY_VOID_D3(id_create_ex,d,x,y,z) argument
2832 #define __itt_id_destroy_ex(d,x,y,z) ITTNOTIFY_VOID_D3(id_destroy_ex,d,x,y,z) argument
[all …]
/oneTBB/src/tbbmalloc_proxy/
H A Dproxy_overload_osx.h166 malloc_zone_t* z = zone_array[i]; in DoMallocReplacement() local
167 if (z && z->size(z,ptr)>0) { // the right one is found in DoMallocReplacement()
168 system_zone = z; in DoMallocReplacement()
/oneTBB/src/tbb/tools_api/legacy/
H A Dittnotify.h201 …TIFY_VOID_D3(n,d,x,y,z) (d == NULL) ? (void)0 : (!(d)->flags) ? (void)0 : (!ITTNOTIFY_NAME(n)) ? (… argument
202 …Y_VOID_D4(n,d,x,y,z,a) (d == NULL) ? (void)0 : (!(d)->flags) ? (void)0 : (!ITTNOTIFY_NAME(n)) … argument
203 …Y_VOID_D5(n,d,x,y,z,a,b) (d == NULL) ? (void)0 : (!(d)->flags) ? (void)0 : (!ITTNOTIFY_NAME(n)) … argument
204 …Y_VOID_D6(n,d,x,y,z,a,b,c) (d == NULL) ? (void)0 : (!(d)->flags) ? (void)0 : (!ITTNOTIFY_NAME(n)) … argument
208 …TNOTIFY_DATA_D3(n,d,x,y,z) (d == NULL) ? 0 : (!(d)->flags) ? 0 : (!ITTNOTIFY_NAME(n)) ? … argument
209 …TNOTIFY_DATA_D4(n,d,x,y,z,a) (d == NULL) ? 0 : (!(d)->flags) ? 0 : (!ITTNOTIFY_NAME(n)) ? … argument
210 …TNOTIFY_DATA_D5(n,d,x,y,z,a,b) (d == NULL) ? 0 : (!(d)->flags) ? 0 : (!ITTNOTIFY_NAME(n)) ? … argument
211 …TNOTIFY_DATA_D6(n,d,x,y,z,a,b,c) (d == NULL) ? 0 : (!(d)->flags) ? 0 : (!ITTNOTIFY_NAME(n)) ? … argument
/oneTBB/test/tbb/
H A Dtest_tagged_msg.cpp117 int z; in RunTests() local
120 z = cast_to<int>(def); // disallowed (non-array returning int) in RunTests()
127 z = cast_to<int>(i); in RunTests()
130 z = 5; in RunTests()
131 z = cast_to<int>(i); in RunTests()
139 CHECK_MESSAGE( ( z == 3), "Error retrieving value from i"); in RunTests()
/oneTBB/test/conformance/
H A Dconformance_parallel_scan.cpp39 const std::vector<T>& z; member in Body
41 …Body( const std::vector<T>& z_, std::vector<T>& y_, T id ) : identity(id), sum(id), y(y_), z(z_) {} in Body()
48 temp = Op()(temp, z[i]); in operator ()()
54 Body( Body& b, oneapi::tbb::split ): identity(b.identity), sum(b.identity), y(b.y), z(b.z) {} in Body()

12