Home
last modified time | relevance | path

Searched refs:rand_x (Results 1 – 13 of 13) sorted by relevance

/dports/devel/love/love-11.3/src/modules/graphics/
H A DParticleSystem.cpp277 float rand_x, rand_y; in initParticle() local
297 rand_x = (float) rng.random(-1, 1); in initParticle()
307 min = cosf(rand_x) * emissionArea.x; in initParticle()
308 max = sinf(rand_x) * emissionArea.y; in initParticle()
316 if (rand_x < -rand_y) in initParticle()
318 min = rand_x + rand_y + emissionArea.x; in initParticle()
322 else if (rand_x < 0) in initParticle()
324 max = rand_x + emissionArea.y; in initParticle()
328 else if (rand_x < rand_y) in initParticle()
330 max = rand_x - emissionArea.y; in initParticle()
[all …]
/dports/math/ogdf/OGDF/src/ogdf/energybased/fmmm/
H A Dnumexcept.cpp49 double rand_x,rand_y; in choose_distinct_random_point_in_disque() local
62 rand_x = 2*(double(randomNumber(1,BILLION)+1)/(BILLION+2)-0.5); in choose_distinct_random_point_in_disque()
64 new_point.m_x = old_point.m_x+mindist*rand_x*epsilon; in choose_distinct_random_point_in_disque()
83 rand_x = double(randomNumber(1,BILLION)+1)/(BILLION+2); in choose_distinct_random_point_in_disque()
85 new_point.m_x = old_point.m_x+mindist_x*rand_x*epsilon; in choose_distinct_random_point_in_disque()
/dports/x11/pixman/pixman-0.40.0/test/
H A Dstress-test.c206 rand_x (pixman_image_t *image) in rand_x() function
464 x = rand_x (image) - image->bits.width / 2; in set_general_properties()
933 rand_x (source), rand_y (source), in run_test()
934 rand_x (dest), rand_y (dest), in run_test()
942 rand_x (dest), rand_y (dest)); in run_test()
947 dest, rand_x (dest), rand_y (dest), n_traps, trapezoids); in run_test()
967 rand_x (source), rand_y (source), in run_test()
968 rand_x (mask), rand_y (mask), in run_test()
/dports/misc/openmvg/openMVG-2.0/src/openMVG/cameras/
H A DCamera_Unit_Test.inl23 rand_x(0, cam.w()-1), \
32 const Vec2 ptImage = {rand_x(gen), rand_y(gen)}; \
/dports/games/gnome-robots/gnome-robots-40.0/src/
H A Dgame.vala262 int rand_x = rand.int_range (0, arena.width);
264 foreach (var p in arena.iterate_from (rand_x, rand_y)) {
629 int rand_x = rand.int_range (0, arena.width);
631 foreach (var p in arena.iterate_from (rand_x, rand_y)) {
663 int rand_x = rand.int_range (0, arena.width);
665 foreach (var p in arena.iterate_from (rand_x, rand_y)) {
/dports/math/ogdf/OGDF/test/src/layout/
H A Dlayout_helpers.h97 std::uniform_real_distribution<> rand_x(0.0,max_x); in getRandomLayout()
101 GA.x(v) = rand_x(rng); in getRandomLayout()
/dports/graphics/blender/blender-2.91.0/source/blender/draw/engines/eevee/shaders/
H A Dlights_lib.glsl261 float rand_x,
300 -1, ray_ori, ray_dir, sd.sh_contact_thickness, rand_x, 0.1, 0.001, false);
322 float rand_x,
334 rand_x,
/dports/graphics/geomorph/geomorph-0.60.1/src/hf/
H A Dimg_process.c1126 gint *rand_y, *rand_x; in hf_city() local
1142 rand_x = (gint *) x_malloc((nblocks+2)*sizeof(gint), "gint (rand_x in hf_city)"); in hf_city()
1145 *(rand_x) = 0; in hf_city()
1150 *(rand_x+i) = ((i-1)*radius) + ((rand()%var) - (var/2)); in hf_city()
1157 *(rand_x+i) = (i-1)*radius; in hf_city()
1160 *(rand_x+nblocks+1) = hf->max_x; in hf_city()
1164 for (l= *(rand_x+j); (l<*(rand_x+j+1)) ; l++) in hf_city()
1166 (l<(*(rand_x+j) + str_w)) || (l>*(rand_x+j+1)-str_w) ) in hf_city()
1177 if (rand_x) in hf_city()
1178 x_free(rand_x); in hf_city()
/dports/cad/meshlab/meshlab-Meshlab-2020.05/src/meshlabplugins/edit_quality/common/
H A Dtransferfunction.cpp257 float rand_x = 0.0f; in testInitChannel() local
265 rand_x = ((rand() % 100) + 1) / 100.0f; in testInitChannel()
270 this->addKey(rand_x, in testInitChannel()
/dports/devel/love10/love-0.10.2/src/modules/graphics/
H A DParticleSystem.cpp245 float rand_x, rand_y; in initParticle() local
257 rand_x = (float) rng.random(-1, 1); in initParticle()
259 p->position.x += areaSpread.getX() * (rand_x * sqrt(1 - 0.5f*pow(rand_y, 2))); in initParticle()
260 p->position.y += areaSpread.getY() * (rand_y * sqrt(1 - 0.5f*pow(rand_x, 2))); in initParticle()
/dports/games/entombed/entombed-2007.07.04/src/
H A Dentombed.c295 int x, y, which_credit, rand_x; in title() local
430 rand_x = (rand() % 3) - 1; in title()
434 SDL_GetRGB(getpixel(credits_orig, x - 1 + rand_x, y + 1), in title()
437 SDL_GetRGB(getpixel(credits_orig, x + 0 + rand_x, y + 1), in title()
440 SDL_GetRGB(getpixel(credits_orig, x + 1 + rand_x, y + 1), in title()
/dports/math/ogdf/OGDF/src/ogdf/energybased/
H A DSpringEmbedderGridVariant.cpp176 uniform_real_distribution<> rand_x(m_xmin ,m_xmax); in initialize() local
180 m_vInfo[j].m_pos.m_x = rand_x(rng); in initialize()
/dports/math/py-sympy/sympy-1.9/sympy/integrals/rubi/
H A Dutility_function.py5537 rand_x = randint(1, 40)
5538 substitutions = {s: rand_x for s in args}
5553 rand_x = randint(1, 40)
5554 substitutions = {s: rand_x for s in args}