Home
last modified time | relevance | path

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

123

/dports/devel/libflatarray/libflatarray-0.3.0/examples/smoothed_particle_hydrodynamics/
H A Dkernels.hpp19 float dist_squared = 0, in InteractionBuffer() argument
30 dist_squared(dist_squared), in InteractionBuffer()
43 float dist_squared; member in InteractionBuffer
57 ((float)(dist_squared))
104 FLOAT dist_squared = delta_x * delta_x + delta_y * delta_y; in compute_density_lfa() local
105 FLOAT overlap = h_squared_vec - dist_squared; in compute_density_lfa()
130 FLOAT q = sqrt(FLOAT(&interaction_buf[f].dist_squared())) / h; in handle_interactions()
211 FLOAT dist_squared = delta_x * delta_x + delta_y * delta_y; in compute_accel_lfa() local
213 if (LibFlatArray::any(dist_squared < FLOAT(h_squared))) { in compute_accel_lfa()
215 if (get(dist_squared, e) < h_squared) { in compute_accel_lfa()
[all …]
H A Dkernels.c24 float dist_squared = delta_x * delta_x + delta_y * delta_y; in compute_density() local
25 float overlap = h_squared - dist_squared; in compute_density()
68 float dist_squared = delta_x * delta_x + delta_y * delta_y; in compute_accel() local
70 if (dist_squared < h_squared) { in compute_accel()
71 float q = sqrt(dist_squared) / h; in compute_accel()
/dports/graphics/pcl-pointclouds/pcl-pcl-1.12.0/gpu/octree/src/cuda/
H A Dapprox_nsearch.cu163 float dist_squared = std::numeric_limits<float>::max(); in NearestWarpKernel() local
173 if (dist_squared > d2) { in NearestWarpKernel()
174 dist_squared = d2; in NearestWarpKernel()
186 const float next = __shfl_down_sync(FULL_MASK, dist_squared, bit_offset); in NearestWarpKernel()
189 if (dist_squared > next) { in NearestWarpKernel()
190 dist_squared = next; in NearestWarpKernel()
197 dist_squared = __shfl_sync(FULL_MASK, dist_squared, 0); in NearestWarpKernel()
199 return {index, dist_squared}; in NearestWarpKernel()
H A Dknn_search.cu221 float dist_squared = std::numeric_limits<float>::max(); in NearestWarpKernel() local
231 if (dist_squared > d2) { in NearestWarpKernel()
232 dist_squared = d2; in NearestWarpKernel()
243 const float next = __shfl_down_sync(FULL_MASK, dist_squared, bit_offset); in NearestWarpKernel()
246 if (dist_squared > next) { in NearestWarpKernel()
247 dist_squared = next; in NearestWarpKernel()
254 dist_squared = __shfl_sync(FULL_MASK, dist_squared, 0); in NearestWarpKernel()
256 return {index, dist_squared}; in NearestWarpKernel()
/dports/math/octave-forge-stk/stk/src/
H A Dstk_mindist_mex.c42 double diff, dist_squared, mindist_squared; in compute_mindist() local
50 dist_squared = 0.0; in compute_mindist()
53 dist_squared += diff * diff; in compute_mindist()
57 if ((dist_squared < mindist_squared) || (mindist_squared < 0)) in compute_mindist()
58 mindist_squared = dist_squared; in compute_mindist()
/dports/games/uqm/uqm-0.8.0/src/uqm/
H A Dgravity.c89 DWORD dist_squared; in CalculateGravity() local
91 dist_squared = (DWORD)(abs_dx * abs_dx) in CalculateGravity()
93 if (dist_squared <= (DWORD)(GRAVITY_THRESHOLD in CalculateGravity()
100 dist_squared += (DWORD)abs_dx * (DIFUSE_GRAVITY << 1) in CalculateGravity()
104 * GRAVITY_THRESHOLD) / dist_squared)) == 0) in CalculateGravity()
115 log_add (log_Debug, "dist_squared = %lu", dist_squared); in CalculateGravity()
/dports/biology/garlic/garlic-1.6/
H A Dselect_sphere.c52 double delta_x, delta_y, delta_z, dist_squared; in SelectSphere_() local
135 dist_squared = delta_x * delta_x + in SelectSphere_()
141 if (dist_squared > radius_squared) sphereF = 0; in SelectSphere_()
/dports/graphics/blender/blender-2.91.0/source/blender/gpu/shaders/
H A Dgpu_shader_point_uniform_color_frag.glsl9 float dist_squared = dot(centered, centered);
13 if (dist_squared > rad_squared) {
H A Dgpu_shader_point_varying_color_frag.glsl8 float dist_squared = dot(centered, centered);
12 if (dist_squared > rad_squared) {
/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/lighting/
H A Dlighting.cpp549 float dist_squared, max_dist_squared; in setLightFilter() local
551 dist_squared = vm_vec_mag_squared(&to_light); in setLightFilter()
556 if ( dist_squared < max_dist_squared ) { in setLightFilter()
562 float dist_squared, max_dist_squared; in setLightFilter() local
564 dist_squared = vm_vec_mag_squared(&to_light); in setLightFilter()
569 if ( dist_squared < max_dist_squared ) { in setLightFilter()
578 float dist_squared, max_dist_squared; in setLightFilter() local
579 vm_vec_dist_squared_to_line(pos,&l.vec,&l.vec2,&nearest,&dist_squared); in setLightFilter()
584 if ( dist_squared < max_dist_squared ) { in setLightFilter()
/dports/databases/grass7/grass-7.8.6/lib/vector/diglib/
H A Dplus_node.c22 static double dist_squared(double, double, double, double);
165 dist = dist_squared(x, y, node->x, node->y); in dig_which_node()
219 static double dist_squared(double x1, double y1, double x2, double y2) in dist_squared() function
/dports/games/diaspora/Diaspora_R1_Linux/Diaspora/fs2_open/code/object/
H A Dobjectdock.cpp489 float dist_squared; in dock_calc_max_cross_sectional_radius_squared_perpendicular_to_line_helper() local
520 vm_vec_dist_squared_to_line(&world_point, line_start, line_end, &nearest, &dist_squared); in dock_calc_max_cross_sectional_radius_squared_perpendicular_to_line_helper()
523 if (dist_squared > infop->maintained_variables.float_value) in dock_calc_max_cross_sectional_radius_squared_perpendicular_to_line_helper()
524 infop->maintained_variables.float_value = dist_squared; in dock_calc_max_cross_sectional_radius_squared_perpendicular_to_line_helper()
538 float temp, dist_squared; in dock_calc_max_semilatus_rectum_squared_parallel_to_directrix_helper() local
572 dist_squared = vm_vec_dist_squared(line_start, &nearest); in dock_calc_max_semilatus_rectum_squared_parallel_to_directrix_helper()
575 if (dist_squared > infop->maintained_variables.float_value) in dock_calc_max_semilatus_rectum_squared_parallel_to_directrix_helper()
576 infop->maintained_variables.float_value = dist_squared; in dock_calc_max_semilatus_rectum_squared_parallel_to_directrix_helper()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/ppapi/examples/scaling/
H A Dscaling.cc185 float dist_squared = static_cast<float>((dx * dx) + (dy * dy)); in Paint() local
189 } else if (dist_squared < circle_1_radius * circle_1_radius) { in Paint()
191 } else if (dist_squared < circle_2_radius * circle_2_radius) { in Paint()
/dports/www/chromium-legacy/chromium-88.0.4324.182/ppapi/examples/scaling/
H A Dscaling.cc185 float dist_squared = static_cast<float>((dx * dx) + (dy * dy)); in Paint() local
189 } else if (dist_squared < circle_1_radius * circle_1_radius) { in Paint()
191 } else if (dist_squared < circle_2_radius * circle_2_radius) { in Paint()
/dports/math/fcl/fcl-0.7.0/include/fcl/narrowphase/detail/convexity_based_algorithm/
H A Dgjk_libccd-inl.h408 if (isAbsValueLessThanEpsSquared(dist_squared)) { in doSimplex3()
501 ccd_real_t dist_squared = ccdVec3PointTriDist2( in doSimplex4() local
503 if (isAbsValueLessThanEpsSquared(dist_squared)) { in doSimplex4()
847 ccd_real_t dist_squared = in simplexToPolytope4() local
849 if (isAbsValueLessThanEpsSquared(dist_squared)) { in simplexToPolytope4()
853 dist_squared = in simplexToPolytope4()
855 if (isAbsValueLessThanEpsSquared(dist_squared)) { in simplexToPolytope4()
862 dist_squared = in simplexToPolytope4()
864 if (isAbsValueLessThanEpsSquared(dist_squared)) { in simplexToPolytope4()
870 dist_squared = in simplexToPolytope4()
[all …]
/dports/games/diaspora/Diaspora_R1_Linux/Diaspora/fs2_open/code/lighting/
H A Dlighting.cpp429 float dist_squared, max_dist_squared; in light_filter_push() local
431 dist_squared = vm_vec_mag_squared(&to_light); in light_filter_push()
436 if ( dist_squared < max_dist_squared ) { in light_filter_push()
444 float dist_squared, max_dist_squared; in light_filter_push() local
446 dist_squared = vm_vec_mag_squared(&to_light); in light_filter_push()
451 if ( dist_squared < max_dist_squared ) { in light_filter_push()
463 float dist_squared, max_dist_squared; in light_filter_push() local
464 vm_vec_dist_squared_to_line(pos,&l->vec,&l->vec2,&nearest,&dist_squared); in light_filter_push()
469 if ( dist_squared < max_dist_squared ) in light_filter_push()
/dports/games/alephone/alephone-release-20190331/Source_Files/GameWorld/
H A Dworld.cpp480 const Sint64 dist_squared = 1LL*dx*dx + 1LL*dy*dy + 1LL*dz*dz; // [0, ~2^33.6] in distance3d() local
481 return dist_squared < 1L*INT16_MAX*INT16_MAX ? isqrt(dist_squared) : INT16_MAX; in distance3d()
491 const Sint64 dist_squared = 1LL*dx*dx + 1LL*dy*dy; // [0, ~2^33] in m2_distance2d_int32() local
492 return isqrt(uint32(dist_squared)); in m2_distance2d_int32()
/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/object/
H A Dobjectdock.cpp712 float dist_squared; in dock_calc_max_cross_sectional_radius_squared_perpendicular_to_line_helper() local
743 vm_vec_dist_squared_to_line(&world_point, line_start, line_end, &nearest, &dist_squared); in dock_calc_max_cross_sectional_radius_squared_perpendicular_to_line_helper()
746 if (dist_squared > infop->maintained_variables.float_value) in dock_calc_max_cross_sectional_radius_squared_perpendicular_to_line_helper()
747 infop->maintained_variables.float_value = dist_squared; in dock_calc_max_cross_sectional_radius_squared_perpendicular_to_line_helper()
761 float temp, dist_squared; in dock_calc_max_semilatus_rectum_squared_parallel_to_directrix_helper() local
795 dist_squared = vm_vec_dist_squared(line_start, &nearest); in dock_calc_max_semilatus_rectum_squared_parallel_to_directrix_helper()
798 if (dist_squared > infop->maintained_variables.float_value) in dock_calc_max_semilatus_rectum_squared_parallel_to_directrix_helper()
799 infop->maintained_variables.float_value = dist_squared; in dock_calc_max_semilatus_rectum_squared_parallel_to_directrix_helper()
/dports/x11/mate-panel/mate-panel-1.26.1/mate-panel/
H A Dpanel-multimonitor.c587 int dist_squared; in panel_multimonitor_get_monitor_at_point() local
595 dist_squared = dist_x * dist_x + dist_y * dist_y; in panel_multimonitor_get_monitor_at_point()
597 if (dist_squared < min_dist_squared) { in panel_multimonitor_get_monitor_at_point()
598 min_dist_squared = dist_squared; in panel_multimonitor_get_monitor_at_point()
/dports/lang/parrot/parrot-8.1.0/examples/opengl/
H A Dshapes.p6396 my $dist_squared = [+] @pos >>*<< @pos;
397 $dist_squared = min_dist2 unless $dist_squared > min_dist2;
398 my $distance = sqrt($dist_squared);
404 my $gravity = G / $dist_squared;
/dports/games/gtkradiant/GPL/GtkRadiant/radiant/
H A Dwinding.cpp307 double dist_squared = ray_squared_distance_to_point(edge, winding[i].vertex); in Winding_Opposite() local
309 if(dist_squared > dist_best) in Winding_Opposite()
311 dist_best = dist_squared; in Winding_Opposite()
/dports/games/netradiant/netradiant-20150621-src/radiant/
H A Dwinding.cpp279 double dist_squared = ray_squared_distance_to_point( edge, winding[i].vertex ); in Winding_Opposite() local
281 if ( dist_squared > dist_best ) { in Winding_Opposite()
282 dist_best = dist_squared; in Winding_Opposite()
/dports/games/ufoai/ufoai-2.5-source/src/tools/radiant/radiant/brush/
H A Dwinding.cpp277 double dist_squared = ray_squared_distance_to_point(edge, winding[i].vertex); in Winding_Opposite() local
279 if (dist_squared > dist_best) { in Winding_Opposite()
280 dist_best = dist_squared; in Winding_Opposite()
/dports/graphics/opencv/opencv-4.5.3/samples/dnn/
H A Dvirtual_try_on.py326 dist_squared = np.power(delta_X, 2) + np.power(delta_Y, 2)
327 dist_squared[dist_squared == 0] = 1
328 U = np.multiply(dist_squared, np.log(dist_squared))
/dports/graphics/mypaint/mypaint-2.0.1/gui/
H A Dcurve.py138 def dist_squared(p): function
141 dsq, pos = min((dist_squared(p), i) for i, p in enumerate(points))

123