Home
last modified time | relevance | path

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

/oneTBB/examples/parallel_for/tachyon/src/
H A Dcylinder.cpp80 c->ctr = ctr; in newcylinder()
94 rc.x = ry->o.x - cyl->ctr.x; in cylinder_intersect()
95 rc.y = ry->o.y - cyl->ctr.y; in cylinder_intersect()
96 rc.z = ry->o.z - cyl->ctr.z; in cylinder_intersect()
146 b.x = c.x * t + cyl->ctr.x; in cylinder_normal()
147 b.y = c.y * t + cyl->ctr.y; in cylinder_normal()
148 b.z = c.z * t + cyl->ctr.z; in cylinder_normal()
168 c->ctr = ctr; in newfcylinder()
179 mintmp.x = c->ctr.x; in fcylinder_bbox()
180 mintmp.y = c->ctr.y; in fcylinder_bbox()
[all …]
H A Dsphere.cpp65 object *newsphere(void *tex, vector ctr, flt rad) { in newsphere() argument
73 s->ctr = ctr; in newsphere()
82 min->x = s->ctr.x - s->rad; in sphere_bbox()
83 min->y = s->ctr.y - s->rad; in sphere_bbox()
84 min->z = s->ctr.z - s->rad; in sphere_bbox()
85 max->x = s->ctr.x + s->rad; in sphere_bbox()
86 max->y = s->ctr.y + s->rad; in sphere_bbox()
87 max->z = s->ctr.z + s->rad; in sphere_bbox()
96 VSUB(spr->ctr, ry->o, V); in sphere_intersect()
117 VSub((vector *)pnt, &(spr->ctr), N); in sphere_normal()
H A Dring.cpp65 object *newring(void *tex, vector ctr, vector norm, flt inrad, flt outrad) { in newring() argument
73 r->ctr = ctr; in newring()
84 min->x = r->ctr.x - r->outrad; in ring_bbox()
85 min->y = r->ctr.y - r->outrad; in ring_bbox()
86 min->z = r->ctr.z - r->outrad; in ring_bbox()
87 max->x = r->ctr.x + r->outrad; in ring_bbox()
88 max->y = r->ctr.y + r->outrad; in ring_bbox()
89 max->z = r->ctr.z + r->outrad; in ring_bbox()
99 d = -VDot(&(rng->ctr), &(rng->norm)); in ring_intersect()
107 VSUB(hit, rng->ctr, pnt); in ring_intersect()
H A Dquadric.cpp73 q->ctr.x = 0.0; in newquadric()
74 q->ctr.y = 0.0; in newquadric()
75 q->ctr.z = 0.0; in newquadric()
91 ro.x = ry->o.x - q->ctr.x; in quadric_intersect()
92 ro.y = ry->o.y - q->ctr.y; in quadric_intersect()
93 ro.z = ry->o.z - q->ctr.z; in quadric_intersect()
126 N->x = (q->mat.a * (pnt->x - q->ctr.x) + q->mat.b * (pnt->y - q->ctr.y) + in quadric_normal()
127 q->mat.c * (pnt->z - q->ctr.z) + q->mat.d); in quadric_normal()
129 N->y = (q->mat.b * (pnt->x - q->ctr.x) + q->mat.e * (pnt->y - q->ctr.y) + in quadric_normal()
130 q->mat.f * (pnt->z - q->ctr.z) + q->mat.g); in quadric_normal()
[all …]
H A Dtexture.cpp69 rh.x = hit->x - tex->ctr.x; in image_cyl_texture()
70 rh.z = hit->y - tex->ctr.y; in image_cyl_texture()
71 rh.y = hit->z - tex->ctr.z; in image_cyl_texture()
95 rh.x = hit->x - tex->ctr.x; in image_sphere_texture()
96 rh.y = hit->y - tex->ctr.y; in image_sphere_texture()
97 rh.z = hit->z - tex->ctr.z; in image_sphere_texture()
168 xh = hit->x - tex->ctr.x; in checker_texture()
171 yh = hit->y - tex->ctr.y; in checker_texture()
174 zh = hit->z - tex->ctr.z; in checker_texture()
198 rh.x = hit->x - tex->ctr.x; in cyl_checker_texture()
[all …]
H A Dapi.cpp277 tex->ctr = apitex->ctr; in apitextotex()
315 void rt_light(void *tex, vector ctr, apiflt rad) { in rt_light() argument
318 li = newlight(tex, (vector)ctr, rad); in rt_light()
351 add_object(newcylinder(tex, (vector)ctr, (vector)axis, rad)); in rt_cylinder()
358 void rt_plane(void *tex, vector ctr, vector norm) { in rt_plane() argument
359 add_object(newplane(tex, (vector)ctr, (vector)norm)); in rt_plane()
363 add_object(newring(tex, (vector)ctr, (vector)norm, a, b)); in rt_ring()
366 void rt_sphere(void *tex, vector ctr, apiflt rad) { in rt_sphere() argument
367 add_object(newsphere(tex, (vector)ctr, rad)); in rt_sphere()
390 void rt_quadsphere(void *tex, vector ctr, apiflt rad) { in rt_quadsphere() argument
[all …]
H A Dapitrigeom.cpp97 MyVAddS(1.0, &ctr, &p1, &p1); in rt_tri_fcylinder()
103 MyVAddS(1.0, &ctr, &p2, &p2); in rt_tri_fcylinder()
113 void rt_tri_cylinder(void *tex, vector ctr, vector axis, apiflt rad) { in rt_tri_cylinder() argument
114 rt_fcylinder(tex, ctr, axis, rad); in rt_tri_cylinder()
149 MyVAddS(a, &n1, &ctr, &p1); in rt_tri_ring()
150 MyVAddS(b, &n1, &ctr, &p3); in rt_tri_ring()
156 MyVAddS(a, &n2, &ctr, &p2); in rt_tri_ring()
157 MyVAddS(b, &n2, &ctr, &p4); in rt_tri_ring()
226 void rt_tri_sphere(void *tex, vector ctr, apiflt rad) {} in rt_tri_sphere() argument
228 void rt_tri_plane(void *tex, vector ctr, vector norm) { in rt_tri_plane() argument
[all …]
H A Dapitrigeom.hpp52 void rt_tri_fcylinder(void* tex, vector ctr, vector axis, apiflt rad);
53 void rt_tri_cylinder(void* tex, vector ctr, vector axis, apiflt rad);
54 void rt_tri_ring(void* tex, vector ctr, vector norm, apiflt a, apiflt b);
55 void rt_tri_plane(void* tex, vector ctr, vector norm);
H A Dparse.cpp499 vector ctr; in GetLight() local
533 vector ctr, axis; in GetCylinder() local
554 vector ctr, axis; in GetFCylinder() local
565 ctr = pnt1; in GetFCylinder()
611 vector ctr; in GetSphere() local
631 vector ctr; in GetPlane() local
686 vector ctr; in GetRing() local
759 vector ctr; in GetLandScape() local
785 vector ctr, rot, scale; in GetTPolyFile() local
838 Trans3d(&ctr, &v0); in GetTPolyFile()
[all …]
H A Dlight.cpp65 point_light *newlight(void *tex, vector ctr, flt rad) { in newlight() argument
73 l->ctr = ctr; in newlight()
91 VSUB(l->ctr, ry->o, V); in light_intersect()
112 VSub((vector *)pnt, &(l->ctr), N); in light_normal()
H A Dapigeom.cpp83 void rt_heightfield(void *tex, vector ctr, int m, int n, apiflt *field, apiflt wx, apiflt wy) { in rt_heightfield() argument
88 xoff = ctr.x - (wx / 2.0); in rt_heightfield()
89 yoff = ctr.z - (wy / 2.0); in rt_heightfield()
90 zoff = ctr.y; in rt_heightfield()
126 rt_sheightfield(void *tex, vector ctr, int m, int n, apiflt *field, apiflt wx, apiflt wy) { in rt_sheightfield() argument
136 offset.x = ctr.x - (wx / 2.0); in rt_sheightfield()
137 offset.y = ctr.z - (wy / 2.0); in rt_sheightfield()
138 offset.z = ctr.y; in rt_sheightfield()
252 void rt_landscape(void *tex, int m, int n, vector ctr, apiflt wx, apiflt wy) { in rt_landscape() argument
275 rt_sheightfield(tex, ctr, m, n, field, wx, wy); in rt_landscape()
H A Dextvol.cpp105 xvol->tex->ctr.x = 0.0; in newextvol()
106 xvol->tex->ctr.y = 0.0; in newextvol()
107 xvol->tex->ctr.z = 0.0; in newextvol()
108 xvol->tex->rot = xvol->tex->ctr; in newextvol()
109 xvol->tex->scale = xvol->tex->ctr; in newextvol()
110 xvol->tex->uaxs = xvol->tex->ctr; in newextvol()
111 xvol->tex->vaxs = xvol->tex->ctr; in newextvol()
299 VSUB(li->ctr, (*hit), L) in ext_volume_texture()
H A Dvol.cpp105 tx->ctr.x = 0.0; in newscalarvol()
106 tx->ctr.y = 0.0; in newscalarvol()
107 tx->ctr.z = 0.0; in newscalarvol()
108 tx->rot = tx->ctr; in newscalarvol()
109 tx->scale = tx->ctr; in newscalarvol()
110 tx->uaxs = tx->ctr; in newscalarvol()
111 tx->vaxs = tx->ctr; in newscalarvol()
H A Dring.hpp52 object *newring(void *tex, vector ctr, vector norm, flt in, flt out);
60 vector ctr; member
H A Dplane.cpp65 object *newplane(void *tex, vector ctr, vector norm) { in newplane() argument
75 p->d = -VDot(&ctr, &p->norm); in newplane()
H A Dlight.hpp57 vector ctr; member
H A Dsphere.hpp61 vector ctr; member
H A Dplane.hpp52 object *newplane(void *tex, vector ctr, vector norm);
H A Dquadric.hpp70 vector ctr; member
H A Dcylinder.hpp62 vector ctr; member
H A Dshade.cpp106 VSUB(li->ctr, hit, L) /* find the light vector */ in shader()
129 shadowray.e = li->ctr; in shader()
H A Dapi.hpp77 vector ctr; /* origin of texture */ member
H A Dtypes.hpp148 vector ctr; /* origin of texture */ member
/oneTBB/src/tbbmalloc/
H A DStatistics.h59 static inline int STAT_increment(int thread, int bin, int ctr) in STAT_increment() argument
61 …n reportAllocationStatistics && thread < MAX_THREADS ? ++(statistic[thread][bin].counter[ctr]) : 0; in STAT_increment()
H A Dfrontend.cpp165 friend int STAT_increment(ThreadId tid, int bin, int ctr);
173 int STAT_increment(ThreadId tid, int bin, int ctr) in STAT_increment() argument
175 return ::STAT_increment(tid.id, bin, ctr); in STAT_increment()