| /oneTBB/examples/parallel_for/tachyon/src/ |
| H A D | sphere.cpp | 65 object *newsphere(void *tex, vector ctr, flt rad) { in newsphere() argument 74 s->rad = rad; 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() 100 disc = b * b + spr->rad * spr->rad - temp; in sphere_intersect()
|
| H A D | cylinder.cpp | 82 c->rad = rad; in newcylinder() 119 if (d <= cyl->rad) { /* ray intersects cylinder.. */ in cylinder_intersect() 126 s = fabs(sqrt(cyl->rad * cyl->rad - d * d) / s); in cylinder_intersect() 170 c->rad = rad; in newfcylinder() 189 min->x -= c->rad; in fcylinder_bbox() 190 min->y -= c->rad; in fcylinder_bbox() 191 min->z -= c->rad; in fcylinder_bbox() 196 max->x += c->rad; in fcylinder_bbox() 197 max->y += c->rad; in fcylinder_bbox() 198 max->z += c->rad; in fcylinder_bbox() [all …]
|
| H A D | light.cpp | 65 point_light *newlight(void *tex, vector ctr, flt rad) { in newlight() argument 74 l->rad = rad; in newlight() 95 disc = b * b + l->rad * l->rad - temp; in light_intersect()
|
| H A D | api.cpp | 315 void rt_light(void *tex, vector ctr, apiflt rad) { in rt_light() argument 318 li = newlight(tex, (vector)ctr, rad); in rt_light() 350 void rt_cylinder(void *tex, vector ctr, vector axis, apiflt rad) { in rt_cylinder() argument 351 add_object(newcylinder(tex, (vector)ctr, (vector)axis, rad)); in rt_cylinder() 354 void rt_fcylinder(void *tex, vector ctr, vector axis, apiflt rad) { in rt_fcylinder() argument 355 add_object(newfcylinder(tex, (vector)ctr, (vector)axis, rad)); in rt_fcylinder() 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 394 factor = 1.0 / (rad * rad); in rt_quadsphere()
|
| H A D | apitrigeom.cpp | 65 void rt_tri_fcylinder(void *tex, vector ctr, vector axis, apiflt rad) { in rt_tri_fcylinder() argument 85 u = rad * sin((6.28 * j) / (CYLFACETS - 1.0)); in rt_tri_fcylinder() 86 v = rad * cos((6.28 * j) / (CYLFACETS - 1.0)); in rt_tri_fcylinder() 87 u2 = rad * sin((6.28 * (j + 1.0)) / (CYLFACETS - 1.0)); in rt_tri_fcylinder() 88 v2 = rad * cos((6.28 * (j + 1.0)) / (CYLFACETS - 1.0)); 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() 226 void rt_tri_sphere(void *tex, vector ctr, apiflt rad) {} in rt_tri_sphere() argument
|
| H A D | coordsys.cpp | 54 void xytopolar(flt x, flt y, flt rad, flt* u, flt* v) { in xytopolar() argument 57 *v = sqrt(r1 / (rad * rad)); in xytopolar()
|
| H A D | parse.cpp | 498 apiflt rad; in GetLight() local 510 rad = a; in GetLight() 532 apiflt rad; in GetCylinder() local 544 rad = a; in GetCylinder() 553 apiflt rad; in GetFCylinder() local 572 rad = a; in GetFCylinder() 581 apiflt rad; in GetPolyCylinder() local 599 rad = a; in GetPolyCylinder() 610 apiflt rad; in GetSphere() local 620 rad = a; in GetSphere() [all …]
|
| H A D | apitrigeom.hpp | 52 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);
|
| H A D | apigeom.cpp | 59 void rt_polycylinder(void *tex, vector *points, int numpts, apiflt rad) { in rt_polycylinder() argument 68 rt_sphere(tex, points[0], rad); in rt_polycylinder() 76 rt_fcylinder(tex, points[i - 1], a, rad); in rt_polycylinder() 77 rt_sphere(tex, points[i], rad); in rt_polycylinder()
|
| H A D | light.hpp | 58 flt rad; member
|
| H A D | sphere.hpp | 62 flt rad; member
|
| H A D | cylinder.hpp | 64 flt rad; member
|