Home
last modified time | relevance | path

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

12

/oneTBB/examples/parallel_for/tachyon/src/
H A Dimap.cpp74 color ImageMap(rawimage *image, flt u, flt v) { in ImageMap()
76 flt x, y, px, py; in ImageMap()
102 colx.r = (flt)((flt)ptr[0] + px * ((flt)ptr2[0] - (flt)ptr[0])) / 255.0; in ImageMap()
103 colx.g = (flt)((flt)ptr[1] + px * ((flt)ptr2[1] - (flt)ptr[1])) / 255.0; in ImageMap()
104 colx.b = (flt)((flt)ptr[2] + px * ((flt)ptr2[2] - (flt)ptr[2])) / 255.0; in ImageMap()
109 colx2.r = ((flt)ptr[0] + px * ((flt)ptr2[0] - (flt)ptr[0])) / 255.0; in ImageMap()
110 colx2.g = ((flt)ptr[1] + px * ((flt)ptr2[1] - (flt)ptr[1])) / 255.0; in ImageMap()
111 colx2.b = ((flt)ptr[2] + px * ((flt)ptr2[2] - (flt)ptr[2])) / 255.0; in ImageMap()
H A Dtypes.hpp100 flt x; /* X coordinate value */
101 flt y; /* Y coordinate value */
102 flt z; /* Z coordinate value */
106 flt r; /* Red component */
107 flt g; /* Green component */
108 flt b; /* Blue component */
131 flt opacity; /* opacity per unit length */
141 flt ambient; /* ambient lighting */
142 flt diffuse; /* diffuse reflection */
143 flt phong; /* phong specular highlights */
[all …]
H A Dcoordsys.hpp54 void xytopolar(flt, flt, flt, flt *, flt *);
55 void xyztocyl(vector, flt, flt *, flt *);
56 void xyztospr(vector, flt *, flt *);
H A Dextvol.hpp60 flt ambient;
61 flt diffuse;
62 flt opacity;
64 flt (*evaluator)(flt, flt, flt);
71 flt (*evaluator)(flt, flt, flt));
H A Dquadric.hpp53 flt a;
54 flt b;
55 flt c;
56 flt d;
57 flt e;
58 flt f;
59 flt g;
60 flt h;
61 flt i;
62 flt j;
H A Dcoordsys.cpp54 void xytopolar(flt x, flt y, flt rad, flt* u, flt* v) { in xytopolar()
55 flt r1; in xytopolar()
64 void xyztocyl(vector pnt, flt height, flt* u, flt* v) { in xyztocyl()
65 flt r1; in xyztocyl()
76 void xyztospr(vector pnt, flt* u, flt* v) { in xyztospr()
77 flt r1, phi, theta; in xyztospr()
H A Dvector.hpp52 flt VDot(vector *, vector *);
54 flt VLength(vector *);
58 void VAddS(flt, vector *, vector *, vector *);
59 vector Raypnt(ray *, flt);
60 void VScale(vector *a, flt s);
62 void ColorAddS(color *a, color *b, flt s);
64 void ColorScale(color *a, flt s);
H A Dvector.cpp54 flt VDot(vector *a, vector *b) { in VDot()
64 flt VLength(vector *a) { in VLength()
65 return (flt)sqrt((a->x * a->x) + (a->y * a->y) + (a->z * a->z)); in VLength()
69 flt len; in VNorm()
91 void VAddS(flt a, vector *A, vector *B, vector *C) { in VAddS()
97 vector Raypnt(ray *a, flt t) { in Raypnt()
107 void VScale(vector *a, flt s) { in VScale()
113 void ColorAddS(color *a, color *b, flt s) { in ColorAddS()
125 void ColorScale(color *a, flt s) { in ColorScale()
H A Dshade.hpp56 color shade_reflection(ray *, vector *, vector *, flt);
57 color shade_transmission(ray *, vector *, flt);
58 flt shade_phong(ray *incident, vector *hit, vector *N, vector *L, flt specpower);
H A Dring.hpp52 object *newring(void *tex, vector ctr, vector norm, flt in, flt out);
62 flt inrad;
63 flt outrad;
H A Dtexture.cpp67 flt u, v; in image_cyl_texture()
93 flt u, v; in image_sphere_texture()
119 flt u, v; in image_plane_texture()
150 flt fnum; in grit_texture()
165 flt xh, yh, zh; in checker_texture()
195 flt u, v; in cyl_checker_texture()
227 flt x, y, z; in wood_texture()
287 int Noise(flt x, flt y, flt z) { in Noise()
337 flt i, d; in marble_texture()
338 flt x, y, z; in marble_texture()
[all …]
H A Dintersect.hpp60 void add_intersection(flt, object *, ray *);
61 int closest_intersection(flt *, object **, intersectstruct *);
63 int shadow_intersection(intersectstruct *intstruct, flt maxdist);
H A Dcylinder.hpp52 object *newcylinder(void *, vector, vector, flt);
53 object *newfcylinder(void *, vector, vector, flt);
64 flt rad;
H A Dextvol.cpp83 flt (*evaluator)(flt, flt, flt)) { in newextvol() argument
127 color ExtVoxelColor(flt scalar) { in ExtVoxelColor()
153 flt a, tx1, tx2, ty1, ty2, tz1, tz2; in ext_volume_texture()
154 flt tnear, tfar; in ext_volume_texture()
155 flt t, tdist, dt, ddt, sum, tt; in ext_volume_texture()
157 flt scalar, transval; in ext_volume_texture()
162 flt inten; in ext_volume_texture()
H A Dtexture.hpp64 int Noise(flt, flt, flt);
H A Dshade.cpp73 flt inten, t, Llen; in shader()
140 flt phongval; in shader()
181 color shade_reflection(ray* incident, vector* hit, vector* N, flt specular) { in shade_reflection()
210 color shade_transmission(ray* incident, vector* hit, flt trans) { in shade_transmission()
233 flt shade_phong(ray* incident, vector* hit, vector* N, vector* L, flt specpower) { in shade_phong()
235 flt inten; in shade_phong()
H A Dring.cpp65 object *newring(void *tex, vector ctr, vector norm, flt inrad, flt outrad) { in newring()
95 flt d; in ring_intersect()
96 flt t, td; in ring_intersect()
H A Dvol.cpp130 color VoxelColor(flt scalar) { in VoxelColor()
163 flt a, tx1, tx2, ty1, ty2, tz1, tz2; in scalar_volume_texture()
164 flt tnear, tfar; in scalar_volume_texture()
165 flt t, tdist, dt, sum, tt; in scalar_volume_texture()
168 flt scalar, transval; in scalar_volume_texture()
251 tdist = sqrt((flt)(vol->xres * vol->xres + vol->yres * vol->yres + vol->zres * vol->zres)); in scalar_volume_texture()
278 scalar = (flt)((flt)1.0 * ((int)ptr[0])) / 255.0; in scalar_volume_texture()
H A Dcamera.cpp61 flt px, py, sx, sy; in camray()
63 sx = (flt)scene->hres; in camray()
64 sy = (flt)scene->vres; in camray()
H A Dimap.hpp54 color ImageMap(rawimage *, flt, flt);
H A Dutil.cpp86 flt timertime(timer st, timer fn) { in timertime()
107 flt timertime(timer st, timer fn) { in timertime()
124 flt timertime(timer st, timer fn) { in timertime()
H A Dlight.hpp58 flt rad;
61 point_light *newlight(void *, vector, flt);
H A Dsphere.hpp52 object *newsphere(void *, vector, flt);
62 flt rad;
H A Dintersect.cpp118 void add_intersection(flt t, object *obj, ray *ry) { in add_intersection()
138 int closest_intersection(flt *t, object **obj, intersectstruct *intstruct) { in closest_intersection()
152 int shadow_intersection(intersectstruct *intstruct, flt maxdist) { in shadow_intersection()
H A Dgrid.cpp93 g->voxsize.x /= (flt)g->xsize; in newgrid()
94 g->voxsize.y /= (flt)g->ysize; in newgrid()
95 g->voxsize.z /= (flt)g->zsize; in newgrid()
334 flt len; in engrid_cell()
356 xs = (int)((flt)numcbrt * gsize.x); in engrid_cell()
359 ys = (int)((flt)numcbrt * gsize.y); in engrid_cell()
362 zs = (int)((flt)numcbrt * gsize.z); in engrid_cell()
471 flt tnear, tfar, offset; in grid_intersect()
633 static int grid_bounds_intersect(grid *g, ray *ry, flt *nr, flt *fr) { in grid_bounds_intersect()
634 flt a, tx1, tx2, ty1, ty2, tz1, tz2; in grid_bounds_intersect()
[all …]

12