Home
last modified time | relevance | path

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

123456

/dports/science/chrono/chrono-7.0.1/src/chrono_sensor/optix/shaders/
H A Dlidar.cu29 …float2 d = (make_float2(idx.x, idx.y) + make_float2(0.5, 0.5)) / make_float2(screen.x, screen.y) *… in __raygen__lidar_single()
30 make_float2(1.f); //[-1,1] in __raygen__lidar_single()
56 lidar.frame_buffer[image_index] = make_float2(prd_lidar.range, prd_lidar.intensity); in __raygen__lidar_single()
77 …(make_float2(beam_index_x, beam_index_y) + make_float2(0.5f, 0.5f)) / make_float2(global_beam_dims… in __raygen__lidar_multi()
78 make_float2(1.f); in __raygen__lidar_multi()
89 …const float2 local_ray_id_fraction = (make_float2(local_ray_index_x, local_ray_index_y) + make_flo… in __raygen__lidar_multi()
90 make_float2(local_beam_dims) * 2.f - in __raygen__lidar_multi()
91 make_float2(1.f); //[-1,1] in __raygen__lidar_multi()
105 … float2 axis = make_float2(lidar.vert_div_angle / 2.0 * ring, lidar.horiz_div_angle / 2.0 * ring); in __raygen__lidar_multi()
144 lidar.frame_buffer[image_index] = make_float2(prd_lidar.range, prd_lidar.intensity); in __raygen__lidar_multi()
H A Dcamera.cu30 …(make_float2(idx.x, idx.y) + make_float2(0.5, 0.5)) / make_float2(screen.x, screen.y) * 2.f - make… in __raygen__camera_pinhole()
80 …(make_float2(idx.x, idx.y) + make_float2(0.5, 0.5)) / make_float2(screen.x, screen.y) * 2.f - make… in __raygen__camera_fov_lens()
137 …(make_float2(idx.x, idx.y) + make_float2(0.5, 0.5)) / make_float2(screen.x, screen.y) * 2.f - make… in __raygen__segmentation_pinhole()
174 …(make_float2(idx.x, idx.y) + make_float2(0.5, 0.5)) / make_float2(screen.x, screen.y) * 2.f - make… in __raygen__segmentation_fov_lens()
H A Dbox.cu59 texcoord = make_float2((p.y + 0.5), (p.z + 0.5) * shading_normal.x); in __intersection__box_intersect()
62 texcoord = make_float2((p.x + 0.5), -(p.z + 0.5) * shading_normal.y); in __intersection__box_intersect()
65 texcoord = make_float2((p.x + 0.5), (p.y + 0.5) * shading_normal.z); in __intersection__box_intersect()
83 texcoord = make_float2((p.y + 0.5), (p.z + 0.5) * shading_normal.x); in __intersection__box_intersect()
86 texcoord = make_float2((p.x + 0.5), -(p.z + 0.5) * shading_normal.y); in __intersection__box_intersect()
89 texcoord = make_float2((p.x + 0.5), (p.y + 0.5) * shading_normal.z); in __intersection__box_intersect()
H A Dradar.cu30 …float2 d = (make_float2(idx.x, idx.y) + make_float2(0.5, 0.5)) / make_float2(screen.x, screen.y) *… in __raygen__radar()
31 make_float2(1.f); //[-1,1] in __raygen__radar()
H A Ddevice_utils.h296 return make_float2(a.x + b.x, a.y + b.y);
300 return make_float2(a.x - b.x, a.y - b.y);
304 return make_float2(-a.x, -a.y);
308 return make_float2(a.x / b.x, a.y / b.y);
315 return make_float2(a * v.x, a * v.y);
319 return make_float2(a * v.x, a * v.y);
324 return make_float2(inv * v.x, inv * v.y);
330 __device__ __inline__ float2 make_float2(const float& a) { in make_float2() function
331 return make_float2(a, a); in make_float2()
334 __device__ __inline__ float2 make_float2(const int2& a) { in make_float2() function
[all …]
H A Dcylinder.cu36 float2 texcoord = make_float2(-p.x / 2.f + .5f, -p.z / 2.f + .5f); in check_ends()
53 float2 texcoord = make_float2(p.x / 2.f + .5f, p.z / 2.f + .5f); in check_ends()
90 …float2 texcoord = make_float2(atan2(p_near.x, p_near.z) / (2 * CUDART_PI_F), p_near.y * 0.5 + 0.5); in __intersection__cylinder_intersect()
104 … float2 texcoord = make_float2(atan2(p_far.x, p_far.z) / (2 * CUDART_PI_F), p_far.y * 0.5 + 0.5); in __intersection__cylinder_intersect()
/dports/graphics/blender/blender-2.91.0/intern/cycles/util/
H A Dutil_math_float2.h78 return make_float2(-a.x, -a.y);
83 return make_float2(a.x * b.x, a.y * b.y);
88 return make_float2(a.x * f, a.y * f);
93 return make_float2(a.x * f, a.y * f);
98 return make_float2(f / a.x, f / a.y);
109 return make_float2(a.x / b.x, a.y / b.y);
114 return a + make_float2(f, f);
119 return make_float2(a.x + b.x, a.y + b.y);
124 return a - make_float2(f, f);
129 return make_float2(a.x - b.x, a.y - b.y);
[all …]
/dports/graphics/blender/blender-2.91.0/intern/cycles/kernel/svm/
H A Dsvm_noisetex.h34 return make_float2(100.0f + hash_float2_to_float(make_float2(seed, 0.0f)) * 100.0f, in random_float2_offset()
35 100.0f + hash_float2_to_float(make_float2(seed, 1.0f)) * 100.0f); in random_float2_offset()
40 return make_float3(100.0f + hash_float2_to_float(make_float2(seed, 0.0f)) * 100.0f, in random_float3_offset()
41 100.0f + hash_float2_to_float(make_float2(seed, 1.0f)) * 100.0f, in random_float3_offset()
42 100.0f + hash_float2_to_float(make_float2(seed, 2.0f)) * 100.0f); in random_float3_offset()
47 return make_float4(100.0f + hash_float2_to_float(make_float2(seed, 0.0f)) * 100.0f, in random_float4_offset()
48 100.0f + hash_float2_to_float(make_float2(seed, 1.0f)) * 100.0f, in random_float4_offset()
49 100.0f + hash_float2_to_float(make_float2(seed, 2.0f)) * 100.0f, in random_float4_offset()
50 100.0f + hash_float2_to_float(make_float2(seed, 3.0f)) * 100.0f); in random_float4_offset()
84 p += make_float2(snoise_2d(p + random_float2_offset(0.0f)) * distortion, in noise_texture_2d()
[all …]
H A Dsvm_voronoi.h229 float2 targetOffset = make_float2(0.0f, 0.0f); in voronoi_f1_2d()
233 float2 cellOffset = make_float2(i, j); in voronoi_f1_2d()
266 float2 cellOffset = make_float2(i, j); in voronoi_smooth_f1_2d()
298 float2 offsetF1 = make_float2(0.0f, 0.0f); in voronoi_f2_2d()
299 float2 positionF1 = make_float2(0.0f, 0.0f); in voronoi_f2_2d()
300 float2 offsetF2 = make_float2(0.0f, 0.0f); in voronoi_f2_2d()
301 float2 positionF2 = make_float2(0.0f, 0.0f); in voronoi_f2_2d()
304 float2 cellOffset = make_float2(i, j); in voronoi_f2_2d()
337 float2 cellOffset = make_float2(i, j); in voronoi_distance_to_edge_2d()
352 float2 cellOffset = make_float2(i, j); in voronoi_distance_to_edge_2d()
[all …]
H A Dsvm_white_noise.h41 color = hash_float2_to_float3(make_float2(vector.x, vector.y)); in svm_node_tex_white_noise()
64 value = hash_float2_to_float(make_float2(vector.x, vector.y)); in svm_node_tex_white_noise()
/dports/graphics/blender/blender-2.91.0/intern/cycles/kernel/geom/
H A Dgeom_primitive.h115 *dx = make_float2(0.0f, 0.0f); in primitive_attribute_float2()
117 *dy = make_float2(0.0f, 0.0f); in primitive_attribute_float2()
118 return make_float2(0.0f, 0.0f); in primitive_attribute_float2()
123 *dx = make_float2(0.0f, 0.0f); in primitive_attribute_float2()
125 *dy = make_float2(0.0f, 0.0f); in primitive_attribute_float2()
126 return make_float2(0.0f, 0.0f); in primitive_attribute_float2()
210 *dx = make_float2(0.0f, 0.0f); in primitive_surface_attribute_float2()
212 *dy = make_float2(0.0f, 0.0f); in primitive_surface_attribute_float2()
213 return make_float2(0.0f, 0.0f); in primitive_surface_attribute_float2()
284 *uv = make_float2(uv3.x, uv3.y); in primitive_ptex()
H A Dgeom_curve.h94 *dx = make_float2(0.0f, 0.0f); in curve_attribute_float2()
96 *dy = make_float2(0.0f, 0.0f); in curve_attribute_float2()
114 *dy = make_float2(0.0f, 0.0f); in curve_attribute_float2()
122 *dx = make_float2(0.0f, 0.0f); in curve_attribute_float2()
124 *dy = make_float2(0.0f, 0.0f); in curve_attribute_float2()
132 *dx = make_float2(0.0f, 0.0f); in curve_attribute_float2()
134 *dy = make_float2(0.0f, 0.0f); in curve_attribute_float2()
137 return make_float2(0.0f, 0.0f); in curve_attribute_float2()
H A Dgeom_curve_intersect.h111 *t_o = make_float2(FLT_MAX, -FLT_MAX); in cylinder_intersect()
119 *t_o = make_float2(-FLT_MAX, FLT_MAX); in cylinder_intersect()
123 *t_o = make_float2(-FLT_MAX, FLT_MAX); in cylinder_intersect()
150 *t_o = make_float2(t0, t1); in cylinder_intersect()
166 return make_float2(lower, upper); in half_plane_intersect()
342 float2 tp = make_float2(-dt, isect->t - dt); in curve_intersect_recursive()
346 tp = make_float2(max(tp.x, h0.x), min(tp.y, h0.y)); in curve_intersect_recursive()
349 tp = make_float2(max(tp.x, h1.x), min(tp.y, h1.y)); in curve_intersect_recursive()
390 float2 tp0 = make_float2(tp.x, min(tp.y, tc_inner.x)); in curve_intersect_recursive()
391 float2 tp1 = make_float2(max(tp.x, tc_inner.y), tp.y); in curve_intersect_recursive()
[all …]
/dports/math/vtk8/VTK-8.2.0/Rendering/OptiX/CUDA/
H A DPerspectiveCamera.cu53 float2 inv_screen = 1.0f/make_float2(screen) * 2.f; in PerspectiveCameraRayGen()
54 float2 pixel = (make_float2(launch_index)) * inv_screen - 1.f; in PerspectiveCameraRayGen()
71 …float2 jitter = (samples_per_pixel > 1) ? make_float2(x-rnd(seed), y-rnd(seed)) : make_float2(x, y… in PerspectiveCameraRayGen()
/dports/graphics/blender/blender-2.91.0/intern/cycles/kernel/
H A Dkernel_montecarlo.h157 return make_float2(0.0f, 0.0f); in concentric_sample_disk()
168 return make_float2(r * cosf(phi), r * sinf(phi)); in concentric_sample_disk()
185 float2 p = make_float2((u + v) * cosf(angle), (u - v) * sinf(angle)); in regular_polygon_sample()
193 return make_float2(cr * p.x - sr * p.y, sr * p.x + cr * p.y); in regular_polygon_sample()
271 float2 N1 = make_float2(safe_sqrtf(1.0f - N1_z2), safe_sqrtf(N1_z2)); in ensure_valid_reflection()
272 float2 N2 = make_float2(safe_sqrtf(1.0f - N2_z2), safe_sqrtf(N2_z2)); in ensure_valid_reflection()
293 N_new = make_float2(safe_sqrtf(1.0f - Nz2), safe_sqrtf(Nz2)); in ensure_valid_reflection()
H A Dkernel_projection.h45 return make_float2(theta, phi); in direction_to_spherical()
59 return make_float2(0.0f, 0.0f); in direction_to_equirectangular_range()
64 return make_float2(u, v); in direction_to_equirectangular_range()
95 return make_float2(u, v); in direction_to_fisheye()
126 return make_float2(u, v); in direction_to_fisheye_equisolid()
183 return make_float2(u, v); in direction_to_mirrorball()
/dports/graphics/opencv/opencv-4.5.3/contrib/modules/cudaimgproc/src/cuda/
H A Dhough_segments.cu86 float2 p0 = make_float2(cosa * radius, sina * radius); in houghLinesProbabilistic()
87 float2 dir = make_float2(-sina, cosa); in houghLinesProbabilistic()
89 …float2 pb[4] = {make_float2(-1, -1), make_float2(-1, -1), make_float2(-1, -1), make_float2(-1, -1)… in houghLinesProbabilistic()
/dports/graphics/blender/blender-2.91.0/intern/cycles/subd/
H A Dsubd_subpatch.h71 c00(make_float2(0.0f, 0.0f)), in patch()
72 c01(make_float2(0.0f, 1.0f)), in patch()
73 c11(make_float2(1.0f, 1.0f)), in patch()
74 c10(make_float2(1.0f, 0.0f)) in patch()
/dports/graphics/colmap/colmap-3.6/lib/FLANN/util/
H A Dcutil_math.h70 return make_float2(s, s); in make_float2()
74 return make_float2(a.x, a.y); in make_float2()
248 return make_float2(-a.x, -a.y);
285 return make_float2(a.x + b, a.y + b);
289 return make_float2(a.x + b, a.y + b);
480 return make_float2(a.x - b, a.y - b);
484 return make_float2(b - a.x, b - a.y);
669 return make_float2(a.x * b, a.y * b);
673 return make_float2(b * a.x, b * a.y);
862 return make_float2(a.x / b, a.y / b);
[all …]
/dports/math/flann/flann-1.9.1-29-g1d04523/src/cpp/flann/util/
H A Dcutil_math.h70 return make_float2(s, s); in make_float2()
74 return make_float2(a.x, a.y); in make_float2()
248 return make_float2(-a.x, -a.y);
285 return make_float2(a.x + b, a.y + b);
289 return make_float2(a.x + b, a.y + b);
480 return make_float2(a.x - b, a.y - b);
484 return make_float2(b - a.x, b - a.y);
669 return make_float2(a.x * b, a.y * b);
673 return make_float2(b * a.x, b * a.y);
862 return make_float2(a.x / b, a.y / b);
[all …]
/dports/misc/openmvg/openMVG-2.0/src/third_party/flann/src/cpp/flann/util/
H A Dcutil_math.h70 return make_float2(s, s); in make_float2()
74 return make_float2(a.x, a.y); in make_float2()
248 return make_float2(-a.x, -a.y);
285 return make_float2(a.x + b, a.y + b);
289 return make_float2(a.x + b, a.y + b);
480 return make_float2(a.x - b, a.y - b);
484 return make_float2(b - a.x, b - a.y);
669 return make_float2(a.x * b, a.y * b);
673 return make_float2(b * a.x, b * a.y);
862 return make_float2(a.x / b, a.y / b);
[all …]
/dports/graphics/open3d/Open3D-0.2/src/External/flann/util/
H A Dcutil_math.h70 return make_float2(s, s); in make_float2()
74 return make_float2(a.x, a.y); in make_float2()
248 return make_float2(-a.x, -a.y);
285 return make_float2(a.x + b, a.y + b);
289 return make_float2(a.x + b, a.y + b);
480 return make_float2(a.x - b, a.y - b);
484 return make_float2(b - a.x, b - a.y);
669 return make_float2(a.x * b, a.y * b);
673 return make_float2(b * a.x, b * a.y);
862 return make_float2(a.x / b, a.y / b);
[all …]
/dports/graphics/mirtk/MIRTK-2.0.0-122-g38210fa/Modules/Common/include/mirtk/
H A DCutilMath.h82 return make_float2(s, s); in make_float2()
86 return make_float2(a.x, a.y); in make_float2()
260 return make_float2(-a.x, -a.y);
297 return make_float2(a.x + b, a.y + b);
301 return make_float2(a.x + b, a.y + b);
492 return make_float2(a.x - b, a.y - b);
496 return make_float2(b - a.x, b - a.y);
681 return make_float2(a.x * b, a.y * b);
685 return make_float2(b * a.x, b * a.y);
874 return make_float2(a.x / b, a.y / b);
[all …]
/dports/graphics/pcl-pointclouds/pcl-pcl-1.12.0/cuda/common/include/pcl/cuda/
H A Dcutil_math.h69 return make_float2(s, s); in make_float2()
73 return make_float2(a.x, a.y); in make_float2()
247 return make_float2(-a.x, -a.y);
284 return make_float2(a.x + b, a.y + b);
288 return make_float2(a.x + b, a.y + b);
479 return make_float2(a.x - b, a.y - b);
483 return make_float2(b - a.x, b - a.y);
668 return make_float2(a.x * b, a.y * b);
672 return make_float2(b * a.x, b * a.y);
861 return make_float2(a.x / b, a.y / b);
[all …]
/dports/graphics/py-open3d-python/Open3D-0.2/src/External/flann/util/
H A Dcutil_math.h70 return make_float2(s, s); in make_float2()
74 return make_float2(a.x, a.y); in make_float2()
248 return make_float2(-a.x, -a.y);
285 return make_float2(a.x + b, a.y + b);
289 return make_float2(a.x + b, a.y + b);
480 return make_float2(a.x - b, a.y - b);
484 return make_float2(b - a.x, b - a.y);
669 return make_float2(a.x * b, a.y * b);
673 return make_float2(b * a.x, b * a.y);
862 return make_float2(a.x / b, a.y / b);
[all …]

123456