/dports/x11/3ddesktop/3ddesktop-0.2.9/ |
H A D | camera.cpp | 50 float cos_theta = (float)cos(angle); in RotateView() local 53 new_view.x = (cos_theta + (1 - cos_theta) * x * x) * view.x; in RotateView() 54 new_view.x += ((1 - cos_theta) * x * y - z * sin_theta) * view.y; in RotateView() 55 new_view.x += ((1 - cos_theta) * x * z + y * sin_theta) * view.z; in RotateView() 57 new_view.y = ((1 - cos_theta) * x * y + z * sin_theta) * view.x; in RotateView() 58 new_view.y += (cos_theta + (1 - cos_theta) * y * y) * view.y; in RotateView() 63 new_view.z += (cos_theta + (1 - cos_theta) * z * z) * view.z; in RotateView() 75 float cos_theta = (float)cos(angle); in RotateAroundPoint() local 78 new_position.x = (cos_theta + (1.0f - cos_theta) * x * x) * pos.x; in RotateAroundPoint() 83 new_position.y += (cos_theta + (1.0f - cos_theta) * y * y) * pos.y; in RotateAroundPoint() [all …]
|
/dports/graphics/wdune/wdune-1.926/vcglib/vcg/math/ |
H A D | legendre.h | 122 if(m == 0) return legendre_P_l(l, cos_theta); //OK in legendre_P_l_m() 129 ScalarType p_m_mplusone = legendre_P_m_mplusone(m, p_m_m, cos_theta); //OK in legendre_P_l_m() 138 p_m_mplusone = legendre_next(n, m, p_m_m, p_m_mplusone, cos_theta); in legendre_P_l_m() 162 assert (m <= l && cos_theta <= 1 && cos_theta >= -1 && sin_theta <= 1 && sin_theta >= -1); in AssociatedPolynomial() 163 return legendre_P_l_m(l, m, cos_theta, Abs(sin_theta)); in AssociatedPolynomial() 177 void generate(ScalarType cos_theta, ScalarType sin_theta) in generate() argument 182 matrix[0][1] = cos_theta; in generate() 201 _x = cos_theta; in generate() 220 assert (m <= l && cos_theta <= 1 && cos_theta >= -1 && sin_theta <= 1 && sin_theta >= -1); in AssociatedPolynomial() 221 if (cos_theta != _x){ in AssociatedPolynomial() [all …]
|
/dports/devel/vcglib/vcglib-2020.09/vcg/math/ |
H A D | legendre.h | 122 if(m == 0) return legendre_P_l(l, cos_theta); //OK in legendre_P_l_m() 129 ScalarType p_m_mplusone = legendre_P_m_mplusone(m, p_m_m, cos_theta); //OK in legendre_P_l_m() 138 p_m_mplusone = legendre_next(n, m, p_m_m, p_m_mplusone, cos_theta); in legendre_P_l_m() 162 assert (m <= l && cos_theta <= 1 && cos_theta >= -1 && sin_theta <= 1 && sin_theta >= -1); in AssociatedPolynomial() 163 return legendre_P_l_m(l, m, cos_theta, Abs(sin_theta)); in AssociatedPolynomial() 177 void generate(ScalarType cos_theta, ScalarType sin_theta) in generate() argument 182 matrix[0][1] = cos_theta; in generate() 201 _x = cos_theta; in generate() 220 assert (m <= l && cos_theta <= 1 && cos_theta >= -1 && sin_theta <= 1 && sin_theta >= -1); in AssociatedPolynomial() 221 if (cos_theta != _x){ in AssociatedPolynomial() [all …]
|
/dports/science/nwchem-data/nwchem-7.0.2-release/src/nwpw/nwpwlib/utilities/paw_utilities/ |
H A D | nwpw_gaunt.F | 998 double precision cos_theta 1312 cos_theta = z/r 1392 cos_theta = z(k)/r 1661 cos_theta = z/r 1707 cos_theta = z/r 1753 cos_theta = z/r 1828 cos_theta = z/r 1966 real*8 cos_theta,phi 2010 real*8 cos_theta,phi local 2173 sin_theta = dsqrt(1.0d0-cos_theta*cos_theta) [all …]
|
/dports/science/nwchem/nwchem-7b21660b82ebd85ef659f6fba7e1e73433b0bd0a/src/nwpw/nwpwlib/utilities/paw_utilities/ |
H A D | nwpw_gaunt.F | 1326 cos_theta = z/r 1675 cos_theta = z/r 1721 cos_theta = z/r 1767 cos_theta = z/r 1842 cos_theta = z/r 1980 real*8 cos_theta,phi 2019 real*8 cos_theta,phi 2051 real*8 cos_theta,phi local 2098 real*8 cos_theta,phi local 2259 sin_theta = dsqrt(1.0d0-cos_theta*cos_theta) [all …]
|
H A D | nwpw_WGaussian.F | 35 real*8 cos_theta,phi,R 49 cos_theta = Rab(3)/R 132 cos_theta = Rab(3)/R 292 cos_theta = Rab(3)/R 389 cos_theta = Rab(3)/R 490 cos_theta = Rab(3)/R 608 cos_theta = Rab(3)/R 704 cos_theta = Rab(3)/R 812 cos_theta = Rab(3)/R 919 cos_theta = Rab(3)/R [all …]
|
/dports/science/nwchem/nwchem-7b21660b82ebd85ef659f6fba7e1e73433b0bd0a/src/nwpw/paw/paw_special_functions/ |
H A D | paw_spher_func.F | 371 double precision cos_theta,phi 378 find_Y_lm = theta_lm(l,m,cos_theta) 408 real*8 cos_theta 423 f1 = dtheta_lm(l,m,cos_theta) 430 f2 = theta_lm_div(l,m,cos_theta) 438 Y_lm_z = -f1*dsqrt(1.0d0-cos_theta**2) 455 double precision cos_theta local 489 tmp = coeff*dlegendre_lm(l,mod_m,cos_theta) 514 double precision cos_theta local 547 tmp = coeff*ddlegendre_lm(l,mod_m,cos_theta) [all …]
|
/dports/graphics/appleseed/appleseed-2.1.0-beta/src/appleseed/foundation/math/ |
H A D | microfacet.cpp | 194 if (cos_theta == 0.0f) in D() 237 if (cos_theta == 0.0f) in lambda() 385 if (cos_theta == 0.0f) in D() 429 if (cos_theta == 0.0f) in lambda() 508 if (cos_theta == 0.0f) in D() 543 if (cos_theta == 0.0f) in lambda() 592 if (cos_theta == 0.0f) in D() 595 const float cos_theta_2 = cos_theta * cos_theta; in D() 699 if (cos_theta == 0.0f) in lambda() 762 if (cos_theta == 0.0f) in D() [all …]
|
/dports/science/nwchem-data/nwchem-7.0.2-release/src/nwpw/paw/paw_special_functions/ |
H A D | paw_spher_func.F | 371 double precision cos_theta,phi 378 find_Y_lm = theta_lm(l,m,cos_theta) 408 real*8 cos_theta 423 f1 = dtheta_lm(l,m,cos_theta) 430 f2 = theta_lm_div(l,m,cos_theta) 438 Y_lm_z = -f1*dsqrt(1.0d0-cos_theta**2) 455 double precision cos_theta local 489 tmp = coeff*dlegendre_lm(l,mod_m,cos_theta) 514 double precision cos_theta local 547 tmp = coeff*ddlegendre_lm(l,mod_m,cos_theta) [all …]
|
/dports/science/py-dlib/dlib-19.22/dlib/image_keypoint/ |
H A D | poly_image.h | 322 double cos_theta, in rotate_order_1() argument 333 x = cos_theta, in rotate_order_1() 341 double cos_theta, in rotate_order_2() argument 354 x = std::pow(cos_theta,2.0), in rotate_order_2() 355 cos_theta*sin_theta, in rotate_order_2() 363 double cos_theta, in rotate_order_3() argument 378 x = std::pow(cos_theta,3.0), in rotate_order_3() 388 double cos_theta, in rotate_order_4() argument 405 x = std::pow(cos_theta,4.0), in rotate_order_4() 416 double cos_theta, in rotate_order_5() argument [all …]
|
/dports/science/dlib-cpp/dlib-19.22/dlib/image_keypoint/ |
H A D | poly_image.h | 322 double cos_theta, in rotate_order_1() argument 333 x = cos_theta, in rotate_order_1() 341 double cos_theta, in rotate_order_2() argument 354 x = std::pow(cos_theta,2.0), in rotate_order_2() 355 cos_theta*sin_theta, in rotate_order_2() 363 double cos_theta, in rotate_order_3() argument 378 x = std::pow(cos_theta,3.0), in rotate_order_3() 388 double cos_theta, in rotate_order_4() argument 405 x = std::pow(cos_theta,4.0), in rotate_order_4() 416 double cos_theta, in rotate_order_5() argument [all …]
|
/dports/graphics/open3d/Open3D-0.2/src/Visualization/Shader/GLSL/ |
H A D | PhongFragmentShader.glsl | 20 vec4 cos_theta; 28 cos_theta[0] = clamp(dot(n, l), 0, 1); 33 cos_theta[1] = clamp(dot(n, l), 0, 1); 38 cos_theta[2] = clamp(dot(n, l), 0, 1); 43 cos_theta[3] = clamp(dot(n, l), 0, 1); 47 diffuse_color * light_color_4[0].xyz * light_diffuse_power_4[0] * cos_theta[0] + 49 diffuse_color * light_color_4[1].xyz * light_diffuse_power_4[1] * cos_theta[1] + 51 diffuse_color * light_color_4[2].xyz * light_diffuse_power_4[2] * cos_theta[2] + 53 diffuse_color * light_color_4[3].xyz * light_diffuse_power_4[3] * cos_theta[3] +
|
/dports/graphics/py-open3d-python/Open3D-0.2/src/Visualization/Shader/GLSL/ |
H A D | PhongFragmentShader.glsl | 20 vec4 cos_theta; 28 cos_theta[0] = clamp(dot(n, l), 0, 1); 33 cos_theta[1] = clamp(dot(n, l), 0, 1); 38 cos_theta[2] = clamp(dot(n, l), 0, 1); 43 cos_theta[3] = clamp(dot(n, l), 0, 1); 47 diffuse_color * light_color_4[0].xyz * light_diffuse_power_4[0] * cos_theta[0] + 49 diffuse_color * light_color_4[1].xyz * light_diffuse_power_4[1] * cos_theta[1] + 51 diffuse_color * light_color_4[2].xyz * light_diffuse_power_4[2] * cos_theta[2] + 53 diffuse_color * light_color_4[3].xyz * light_diffuse_power_4[3] * cos_theta[3] +
|
/dports/graphics/blender/blender-2.91.0/intern/cycles/kernel/closure/ |
H A D | volume.h | 49 ccl_device float single_peaked_henyey_greenstein(float cos_theta, float g) in single_peaked_henyey_greenstein() argument 51 return ((1.0f - g * g) / safe_powf(1.0f + g * g - 2.0f * g * cos_theta, 1.5f)) * in single_peaked_henyey_greenstein() 86 float cos_theta = dot(-I, omega_in); in volume_henyey_greenstein_eval_phase() local 87 *pdf = single_peaked_henyey_greenstein(cos_theta, g); in volume_henyey_greenstein_eval_phase() 97 float cos_theta; in henyey_greenstrein_sample() local 101 cos_theta = (1.0f - 2.0f * randu); in henyey_greenstrein_sample() 108 cos_theta = (1.0f + g * g - k * k) / (2.0f * g); in henyey_greenstrein_sample() 110 *pdf = single_peaked_henyey_greenstein(cos_theta, g); in henyey_greenstrein_sample() 114 float sin_theta = safe_sqrtf(1.0f - cos_theta * cos_theta); in henyey_greenstrein_sample() 116 float3 dir = make_float3(sin_theta * cosf(phi), sin_theta * sinf(phi), cos_theta); in henyey_greenstrein_sample()
|
H A D | bsdf_ashikhmin_shirley.h | 132 float n_x, float n_y, float randu, float randv, float *phi, float *cos_theta) in bsdf_ashikhmin_shirley_sample_first_quadrant() argument 137 *cos_theta = powf(randv, 1.0f / (n_x * cos_phi * cos_phi + n_y * sin_phi * sin_phi + 1.0f)); in bsdf_ashikhmin_shirley_sample_first_quadrant() 173 float cos_theta; in bsdf_ashikhmin_shirley_sample() local 177 cos_theta = powf(randv, 1.0f / (n_x + 1.0f)); in bsdf_ashikhmin_shirley_sample() 184 n_x, n_y, remapped_randu, randv, &phi, &cos_theta); in bsdf_ashikhmin_shirley_sample() 189 n_x, n_y, remapped_randu, randv, &phi, &cos_theta); in bsdf_ashikhmin_shirley_sample() 195 n_x, n_y, remapped_randu, randv, &phi, &cos_theta); in bsdf_ashikhmin_shirley_sample() 201 n_x, n_y, remapped_randu, randv, &phi, &cos_theta); in bsdf_ashikhmin_shirley_sample() 207 float sin_theta = sqrtf(fmaxf(0.0f, 1.0f - cos_theta * cos_theta)); in bsdf_ashikhmin_shirley_sample() 210 float3 h = make_float3(sin_theta * cos_phi, sin_theta * sin_phi, cos_theta); in bsdf_ashikhmin_shirley_sample()
|
/dports/science/chrono/chrono-7.0.1/src/chrono/utils/ |
H A D | ChUtilsGeometry.h | 92 double cos_theta = (radius - 0.5 * delta) / radius; in CalcBiSphereVolume() local 93 return (4.0 / 3.0) * CH_C_PI * radius * radius * radius * (1 + cos_theta); in CalcBiSphereVolume() 194 double cos_theta = (radius - 0.5 * delta) / radius; variable 197 double comp1 = 0.4 * radius * radius * (1 + cos_theta); 198 …le comp2 = -0.2 * radius * radius * (1. / 3. * (-cos_theta * cos_theta * cos_theta - 1) + (1 + cos… 199 double comp3 = 2. / 3. * z_prim * z_prim * (1 + cos_theta); 200 double comp4 = 0.5 * radius * z_prim * sqrt(1 - cos_theta * cos_theta); 202 double denominator = 4. / 3. * (1 + cos_theta); 204 …ouble Jyy = 0.6 * radius * radius * (1. / 3. * (-cos_theta * cos_theta * cos_theta - 1) + (1 + cos… 205 (1 + cos_theta);
|
/dports/cad/PrusaSlicer/PrusaSlicer-version_2.3.3/src/libigl/igl/ |
H A D | dihedral_angles.cpp | 20 Eigen::PlainObjectBase<Derivedcos_theta>& cos_theta) in dihedral_angles() argument 40 Eigen::PlainObjectBase<Derivedcos_theta>& cos_theta) in dihedral_angles_intrinsic() argument 66 cos_theta.resize(m,6); in dihedral_angles_intrinsic() 67 cos_theta.col(0) = (H_sqr.col(0).array() - in dihedral_angles_intrinsic() 70 cos_theta.col(1) = (H_sqr.col(1).array() - in dihedral_angles_intrinsic() 73 cos_theta.col(2) = (H_sqr.col(2).array() - in dihedral_angles_intrinsic() 76 cos_theta.col(3) = (H_sqr.col(3).array() - in dihedral_angles_intrinsic() 79 cos_theta.col(4) = (H_sqr.col(4).array() - in dihedral_angles_intrinsic() 82 cos_theta.col(5) = (H_sqr.col(5).array() - in dihedral_angles_intrinsic() 86 theta = cos_theta.array().acos(); in dihedral_angles_intrinsic() [all …]
|
/dports/biology/garlic/garlic-1.6/ |
H A D | project_membranes.c | 69 double cos_theta, cos_phi, angle; in ProjectMembranes_() local 210 cos_theta = 0.0; in ProjectMembranes_() 215 cos_theta = scalar_product / abs_value; in ProjectMembranes_() 217 else if (cos_theta >= 1.0) angle = 0.0; in ProjectMembranes_() 218 else angle = acos (cos_theta); in ProjectMembranes_() 273 fabs (cos_theta); in ProjectMembranes_() 328 cos_theta = 0.0; in ProjectMembranes_() 333 cos_theta = scalar_product / abs_value; in ProjectMembranes_() 335 else if (cos_theta >= 1.0) angle = 0.0; in ProjectMembranes_() 336 else angle = acos (cos_theta); in ProjectMembranes_() [all …]
|
H A D | project_planes.c | 59 double cos_theta, cos_phi, angle; in ProjectPlanes_() local 142 cos_theta = 0.0; in ProjectPlanes_() 147 cos_theta = scalar_product / abs_value; in ProjectPlanes_() 148 if (cos_theta <= -1.0) angle = 3.1415927; in ProjectPlanes_() 149 else if (cos_theta >= 1.0) angle = 0.0; in ProjectPlanes_() 150 else angle = acos (cos_theta); in ProjectPlanes_() 156 if (cos_theta <= 0.0) curr_planeSP->visible_sideI[imageI] = 0; in ProjectPlanes_() 205 fabs (cos_theta); in ProjectPlanes_()
|
/dports/graphics/blender/blender-2.91.0/source/blender/gpu/shaders/material/ |
H A D | gpu_shader_material_world_normals.glsl | 7 float cos_theta; 11 cos_theta = rand.x * 2.0 - 1.0; 15 cos_theta = hairThickTime / hairThickness; 17 float sin_theta = sqrt(max(0.0, 1.0 - cos_theta * cos_theta)); 18 N = normalize(worldNormal * sin_theta + B * cos_theta);
|
/dports/graphics/opencv/opencv-4.5.3/contrib/modules/xfeatures2d/src/ |
H A D | latch.cpp | 109 float cos_theta = cos(angle); in pixelTests1() local 140 float cos_theta = cos(angle); in pixelTests2() local 171 float cos_theta = cos(angle); in pixelTests4() local 203 float cos_theta = cos(angle); in pixelTests8() local 234 float cos_theta = cos(angle); in pixelTests16() local 264 float cos_theta = cos(angle); in pixelTests32() local 295 float cos_theta = cos(angle); in pixelTests64() local 335 ax2 =(int)(((float)ax)*cos_theta - ((float)ay)*sin_theta); in CalcuateSums() 336 ay2 = (int)(((float)ax)*sin_theta + ((float)ay)*cos_theta); in CalcuateSums() 337 bx2 = (int)(((float)bx)*cos_theta - ((float)by)*sin_theta); in CalcuateSums() [all …]
|
/dports/graphics/wings/libigl-2.1.0/include/igl/ |
H A D | dihedral_angles.cpp | 23 Eigen::PlainObjectBase<Derivedcos_theta>& cos_theta) in dihedral_angles() argument 43 Eigen::PlainObjectBase<Derivedcos_theta>& cos_theta) in dihedral_angles_intrinsic() argument 69 cos_theta.resize(m,6); in dihedral_angles_intrinsic() 70 cos_theta.col(0) = (H_sqr.col(0).array() - in dihedral_angles_intrinsic() 73 cos_theta.col(1) = (H_sqr.col(1).array() - in dihedral_angles_intrinsic() 76 cos_theta.col(2) = (H_sqr.col(2).array() - in dihedral_angles_intrinsic() 79 cos_theta.col(3) = (H_sqr.col(3).array() - in dihedral_angles_intrinsic() 82 cos_theta.col(4) = (H_sqr.col(4).array() - in dihedral_angles_intrinsic() 85 cos_theta.col(5) = (H_sqr.col(5).array() - in dihedral_angles_intrinsic() 89 theta = cos_theta.array().acos(); in dihedral_angles_intrinsic() [all …]
|
/dports/math/saga/saga-8.1.3/saga-gis/src/tools/projection/pj_geotrans/geotrans/ |
H A D | eckert4.c | 264 double sin_theta, cos_theta; in Convert_Geodetic_To_Eckert4() local 297 cos_theta = cos(theta); in Convert_Geodetic_To_Eckert4() 298 num = NUM(theta, sin_theta, cos_theta); in Convert_Geodetic_To_Eckert4() 300 (2.0 * cos_theta * (1.0 + cos_theta)); in Convert_Geodetic_To_Eckert4() 332 double sin_theta, cos_theta; in Convert_Eckert4_To_Geodetic() local 362 cos_theta = cos(theta); in Convert_Eckert4_To_Geodetic() 363 num = NUM(theta, sin_theta, cos_theta); in Convert_Eckert4_To_Geodetic() 366 *Longitude = Eck4_Origin_Long + dx / (Ra0 * (1 + cos_theta)); in Convert_Eckert4_To_Geodetic()
|
/dports/graphics/appleseed/appleseed-2.1.0-beta/src/appleseed/renderer/modeling/bsdf/ |
H A D | microfacethelper.cpp | 116 const float cos_theta = static_cast<float>(i) / (table_size - 1); in directional_albedo() local 117 values[i] = directional_albedo<MDF>(cos_theta, alpha, sample_count); in directional_albedo() 123 const float cos_theta, in directional_albedo() argument 128 if (cos_theta == 0.0f || alpha == 0.0f) in directional_albedo() 132 const float sin_theta = sqrt(1.0f - square(cos_theta)); in directional_albedo() 133 const Vector3f wo(sin_theta, cos_theta, 0.0f); in directional_albedo() 202 const float cos_theta, in get_directional_albedo() argument 206 cos_theta, in get_directional_albedo()
|
/dports/graphics/ossim/ossim-OrchidIsland-2.11.1/src/projection/ |
H A D | ossimEckert4Projection.cpp | 311 double sin_theta, cos_theta; in Convert_Geodetic_To_Eckert4() local 344 cos_theta = cos(theta); in Convert_Geodetic_To_Eckert4() 345 num = NUM(theta, sin_theta, cos_theta); in Convert_Geodetic_To_Eckert4() 347 (2.0 * cos_theta * (1.0 + cos_theta)); in Convert_Geodetic_To_Eckert4() 379 double sin_theta, cos_theta; in Convert_Eckert4_To_Geodetic() local 409 cos_theta = cos(theta); in Convert_Eckert4_To_Geodetic() 410 num = NUM(theta, sin_theta, cos_theta); in Convert_Eckert4_To_Geodetic() 413 *Longitude = Eck4_Origin_Long + dx / (Ra0 * (1 + cos_theta)); in Convert_Eckert4_To_Geodetic()
|