Home
last modified time | relevance | path

Searched refs:sin_theta (Results 1 – 25 of 327) sorted by relevance

12345678910>>...14

/dports/x11/3ddesktop/3ddesktop-0.2.9/
H A Dcamera.cpp51 float sin_theta = (float)sin(angle); in RotateView() local
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()
59 new_view.y += ((1 - cos_theta) * y * z - x * sin_theta) * view.z; in RotateView()
61 new_view.z = ((1 - cos_theta) * x * z - y * sin_theta) * view.x; in RotateView()
62 new_view.z += ((1 - cos_theta) * y * z + x * sin_theta) * view.y; in RotateView()
76 float sin_theta = (float)sin(angle); in RotateAroundPoint() local
79 new_position.x += ((1.0f - cos_theta) * x * y - z * sin_theta) * pos.y; in RotateAroundPoint()
80 new_position.x += ((1.0f - cos_theta) * x * z + y * sin_theta) * pos.z; in RotateAroundPoint()
[all …]
/dports/graphics/wdune/wdune-1.926/vcglib/vcg/math/
H A Dlegendre.h76 static inline double legendre_P_m_m(unsigned m, ScalarType sin_theta) in legendre_P_m_m() argument
85 p_m_m *= fact * sin_theta; //raising sin_theta to the power of m/2 in legendre_P_m_m()
125 ScalarType p_m_m = legendre_P_m_m(m, sin_theta); //OK in legendre_P_l_m()
160 …tic double AssociatedPolynomial(unsigned l, unsigned m, ScalarType cos_theta, ScalarType sin_theta) in AssociatedPolynomial() argument
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
193 if (l == m) matrix[m][m] = legendre_P_m_m(m, sin_theta); in generate()
218 double AssociatedPolynomial(unsigned l, unsigned m, ScalarType cos_theta, ScalarType sin_theta) in AssociatedPolynomial() argument
220 assert (m <= l && cos_theta <= 1 && cos_theta >= -1 && sin_theta <= 1 && sin_theta >= -1); in AssociatedPolynomial()
[all …]
/dports/devel/vcglib/vcglib-2020.09/vcg/math/
H A Dlegendre.h76 static inline double legendre_P_m_m(unsigned m, ScalarType sin_theta) in legendre_P_m_m() argument
85 p_m_m *= fact * sin_theta; //raising sin_theta to the power of m/2 in legendre_P_m_m()
125 ScalarType p_m_m = legendre_P_m_m(m, sin_theta); //OK in legendre_P_l_m()
160 …tic double AssociatedPolynomial(unsigned l, unsigned m, ScalarType cos_theta, ScalarType sin_theta) in AssociatedPolynomial() argument
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
193 if (l == m) matrix[m][m] = legendre_P_m_m(m, sin_theta); in generate()
218 double AssociatedPolynomial(unsigned l, unsigned m, ScalarType cos_theta, ScalarType sin_theta) in AssociatedPolynomial() argument
220 assert (m <= l && cos_theta <= 1 && cos_theta >= -1 && sin_theta <= 1 && sin_theta >= -1); in AssociatedPolynomial()
[all …]
/dports/science/py-dlib/dlib-19.22/dlib/image_keypoint/
H A Dpoly_image.h323 double sin_theta in rotate_order_1() argument
334 sin_theta; in rotate_order_1()
342 double sin_theta in rotate_order_2() argument
355 cos_theta*sin_theta, in rotate_order_2()
356 std::pow(sin_theta,2.0); in rotate_order_2()
364 double sin_theta in rotate_order_3() argument
381 std::pow(sin_theta,3.0); in rotate_order_3()
389 double sin_theta in rotate_order_4() argument
409 std::pow(sin_theta,4.0); in rotate_order_4()
417 double sin_theta in rotate_order_5() argument
[all …]
/dports/science/dlib-cpp/dlib-19.22/dlib/image_keypoint/
H A Dpoly_image.h323 double sin_theta in rotate_order_1() argument
334 sin_theta; in rotate_order_1()
342 double sin_theta in rotate_order_2() argument
355 cos_theta*sin_theta, in rotate_order_2()
356 std::pow(sin_theta,2.0); in rotate_order_2()
364 double sin_theta in rotate_order_3() argument
381 std::pow(sin_theta,3.0); in rotate_order_3()
389 double sin_theta in rotate_order_4() argument
409 std::pow(sin_theta,4.0); in rotate_order_4()
417 double sin_theta in rotate_order_5() argument
[all …]
/dports/graphics/appleseed/appleseed-2.1.0-beta/src/appleseed/foundation/math/
H A Dmicrofacet.cpp75 const float sin_theta, in stretched_roughness() argument
89 const float sin_theta, in projected_roughness() argument
205 sin_theta, in D()
243 if (sin_theta == 0.0f) in lambda()
249 sin_theta, in lambda()
396 sin_theta, in D()
438 sin_theta, in lambda()
707 if (sin_theta == 0.0f) in lambda()
773 sin_theta, in D()
825 if (sin_theta == 0.0f) in lambda()
[all …]
/dports/databases/grass7/grass-7.8.6/raster/r.watershed/ram/
H A Dsg_factor.c12 double height, length, S, sin_theta; in sg_factor() local
33 sin_theta = height / sqrt(height * height + length * length); in sg_factor()
35 S = 10.8 * sin_theta + .03; in sg_factor()
37 S = 16.8 * sin_theta - .50; in sg_factor()
42 len_slp_equ(length, sin_theta, S, r, c); in sg_factor()
56 int len_slp_equ(double slope_length, double sin_theta, double S, int r, int c) in len_slp_equ() argument
62 rill_ratio = (sin_theta / 0.0896) / (3.0 * pow(sin_theta, 0.8) + 0.56); in len_slp_equ()
/dports/databases/grass7/grass-7.8.6/raster/r.watershed/seg/
H A Dsg_factor.c10 double height, length, S, sin_theta; in sg_factor() local
31 sin_theta = height / sqrt(height * height + length * length); in sg_factor()
33 S = 10.8 * sin_theta + .03; in sg_factor()
35 S = 16.8 * sin_theta - .50; in sg_factor()
38 len_slp_equ(length, sin_theta, S, r, c); in sg_factor()
50 int len_slp_equ(double slope_length, double sin_theta, double S, int r, int c) in len_slp_equ() argument
56 rill_ratio = (sin_theta / 0.0896) / (3.0 * pow(sin_theta, 0.8) + 0.56); in len_slp_equ()
/dports/misc/vxl/vxl-3.3.2/contrib/rpl/rtvl/
H A Drtvl_weight_original.hxx67 theta = std::asin(terms.sin_theta); in compute_curved()
70 arclen = terms.vlen * theta / terms.sin_theta; in compute_curved()
73 kappa = 2*terms.sin_theta / terms.vlen; in compute_curved()
89 darclen = (terms.vhat*(theta/terms.sin_theta) + in compute_curved_d()
90 terms.dtheta*((terms.vlen/terms.sin_theta) - in compute_curved_d()
92 (terms.sin_theta*terms.sin_theta)))); in compute_curved_d()
94 terms.vhat*(2*terms.sin_theta/terms.vlen_squared)); in compute_curved_d()
/dports/graphics/opencv/opencv-4.5.3/contrib/modules/xfeatures2d/src/
H A Dlatch.cpp110 float sin_theta = sin(angle); in pixelTests1() local
141 float sin_theta = sin(angle); in pixelTests2() local
172 float sin_theta = sin(angle); in pixelTests4() local
204 float sin_theta = sin(angle); in pixelTests8() local
235 float sin_theta = sin(angle); in pixelTests16() local
265 float sin_theta = sin(angle); in pixelTests32() local
296 float sin_theta = sin(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/cad/PrusaSlicer/PrusaSlicer-version_2.3.3/src/libigl/igl/
H A Dcotmatrix_entries.cpp77 Matrix<typename DerivedC::Scalar,Dynamic,6> sin_theta(m,6); in cotmatrix_entries() local
78sin_theta.col(0) = vol.array() / ((2./(3.*l.col(0).array())).array() * s.col(1).array() * s.col(2)… in cotmatrix_entries()
79sin_theta.col(1) = vol.array() / ((2./(3.*l.col(1).array())).array() * s.col(2).array() * s.col(0)… in cotmatrix_entries()
80sin_theta.col(2) = vol.array() / ((2./(3.*l.col(2).array())).array() * s.col(0).array() * s.col(1)… in cotmatrix_entries()
81sin_theta.col(3) = vol.array() / ((2./(3.*l.col(3).array())).array() * s.col(3).array() * s.col(0)… in cotmatrix_entries()
82sin_theta.col(4) = vol.array() / ((2./(3.*l.col(4).array())).array() * s.col(3).array() * s.col(1)… in cotmatrix_entries()
83sin_theta.col(5) = vol.array() / ((2./(3.*l.col(5).array())).array() * s.col(3).array() * s.col(2)… in cotmatrix_entries()
87 C = (1./6.) * l.array() * cos_theta.array() / sin_theta.array(); in cotmatrix_entries()
/dports/comms/gpredict/gpredict-2.2.1/src/sgpsdp/
H A Dsgp_obs.c104 sin_theta,cos_theta, in Calculate_Obs() local
125 sin_theta = sin(geodetic->theta); in Calculate_Obs()
128 + sin_lat * sin_theta * range.y in Calculate_Obs()
130 top_e = -sin_theta * range.x in Calculate_Obs()
133 + cos_lat * sin_theta * range.y in Calculate_Obs()
174 double phi,theta,sin_theta,cos_theta,sin_phi,cos_phi, in Calculate_RADec_and_Obs() local
188 sin_theta = sin(theta); in Calculate_RADec_and_Obs()
196 Ex = -sin_theta; in Calculate_RADec_and_Obs()
198 Sy = sin_phi * sin_theta; in Calculate_RADec_and_Obs()
200 Zy = sin_theta*cos_phi; in Calculate_RADec_and_Obs()
/dports/astro/oskar/OSKAR-2.8.0/oskar/convert/src/
H A Doskar_convert_theta_phi_to_enu_directions.c76 const double sin_theta = sin(theta[i]); in oskar_convert_theta_phi_to_enu_directions_d() local
77 x[i] = sin_theta * cos(phi[i]); in oskar_convert_theta_phi_to_enu_directions_d()
78 y[i] = sin_theta * sin(phi[i]); in oskar_convert_theta_phi_to_enu_directions_d()
90 const float sin_theta = sinf(theta[i]); in oskar_convert_theta_phi_to_enu_directions_f() local
91 x[i] = sin_theta * cosf(phi[i]); in oskar_convert_theta_phi_to_enu_directions_f()
92 y[i] = sin_theta * sinf(phi[i]); in oskar_convert_theta_phi_to_enu_directions_f()
/dports/games/tuxracer/tuxracer-0.61/src/
H A Dtux_shadow.c102 scalar_t cos_theta, sin_theta; in draw_shadow_sphere() local
117 sin_theta = sin( theta ); in draw_shadow_sphere()
121 y = sin_theta * sin_phi_d_phi; in draw_shadow_sphere()
138 sin_theta = sin( theta ); in draw_shadow_sphere()
142 y = sin_theta * sin_phi; in draw_shadow_sphere()
157 sin_theta = sin( theta ); in draw_shadow_sphere()
161 y = sin_theta * sin_phi; in draw_shadow_sphere()
166 y = sin_theta * sin_phi_d_phi; in draw_shadow_sphere()
/dports/astro/xplanet/xplanet-1.3.1/src/libsgp4sdp4/
H A Dsgp_obs.c103 sin_theta,cos_theta, in Calculate_Obs() local
124 sin_theta = sin(geodetic->theta); in Calculate_Obs()
127 + sin_lat*sin_theta*range.y in Calculate_Obs()
129 top_e = -sin_theta*range.x in Calculate_Obs()
132 + cos_lat*sin_theta*range.y in Calculate_Obs()
174 phi,theta,sin_theta,cos_theta,sin_phi,cos_phi, in Calculate_RADec() local
186 sin_theta = sin(theta); in Calculate_RADec()
194 Ex = -sin_theta; in Calculate_RADec()
196 Sy = sin_phi*sin_theta; in Calculate_RADec()
198 Zy = sin_theta*cos_phi; in Calculate_RADec()
/dports/games/flightgear-data/fgdata/Aircraft/c172p/Nasal/generic/
H A Dmath_ext.nas40 var sin_theta = sin(theta);
47 -sin_theta
51 cos_psi*sin_theta*sin_phi - sin_psi*cos_phi,
52 sin_psi*sin_theta*sin_phi + cos_psi*cos_phi,
57 cos_psi*sin_theta*cos_phi + sin_psi*sin_phi,
58 sin_psi*sin_theta*cos_phi - cos_psi*sin_phi,
82 var sin_theta = sin(theta);
88 cos_psi*sin_theta*sin_phi - sin_psi*cos_phi,
89 cos_psi*sin_theta*cos_phi + sin_psi*sin_phi
95 sin_psi*sin_theta*cos_phi - cos_psi*sin_phi
[all …]
/dports/science/rdkit/rdkit-Release_2021_03_5/Code/GraphMol/MolDraw2D/Qt/Demo/
H A Dstddefs.H121 T sin_theta; in sin_angle() local
126 sin_theta = len_cp / ( len1 * len2 ); in sin_angle()
128 return sin_theta; in sin_angle()
144 if( sin_theta > 1.0 ) { in angle()
145 sin_theta = 1.0; in angle()
146 } else if( sin_theta < -1.0 ) { in angle()
147 sin_theta = -1.0; in angle()
150 T theta = fabs( asin( sin_theta ) ); in angle()
153 if( sin_theta > 0.0 && cos_theta < 0.0 ) in angle()
156 else if( sin_theta < 0.0 && cos_theta < 0.0 ) in angle()
[all …]
/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/source/base/
H A Dfunction_spherical.cc102 const double sin_theta, in set_unit_vectors() argument
110 unit_r[1] = sin_theta * sin_phi; in set_unit_vectors()
113 unit_theta[0] = -sin_theta; in set_unit_vectors()
118 unit_phi[1] = sin_theta * cos_phi; in set_unit_vectors()
203 const double sin_theta = std::sin(sp[1]); in gradient() local
209 cos_theta, sin_theta, cos_phi, sin_phi, unit_r, unit_theta, unit_phi); in gradient()
260 const double sin_theta = std::sin(sp[1]); in hessian() local
267 cos_theta, sin_theta, cos_phi, sin_phi, unit_r, unit_theta, unit_phi); in hessian()
/dports/graphics/wings/libigl-2.1.0/include/igl/
H A Dcotmatrix_entries.cpp79 Matrix<typename DerivedC::Scalar,Dynamic,6> sin_theta(m,6); in cotmatrix_entries() local
80sin_theta.col(0) = vol.array() / ((2./(3.*l.col(0).array())).array() * s.col(1).array() * s.col(2)… in cotmatrix_entries()
81sin_theta.col(1) = vol.array() / ((2./(3.*l.col(1).array())).array() * s.col(2).array() * s.col(0)… in cotmatrix_entries()
82sin_theta.col(2) = vol.array() / ((2./(3.*l.col(2).array())).array() * s.col(0).array() * s.col(1)… in cotmatrix_entries()
83sin_theta.col(3) = vol.array() / ((2./(3.*l.col(3).array())).array() * s.col(3).array() * s.col(0)… in cotmatrix_entries()
84sin_theta.col(4) = vol.array() / ((2./(3.*l.col(4).array())).array() * s.col(3).array() * s.col(1)… in cotmatrix_entries()
85sin_theta.col(5) = vol.array() / ((2./(3.*l.col(5).array())).array() * s.col(3).array() * s.col(2)… in cotmatrix_entries()
89 C = (1./6.) * l.array() * cos_theta.array() / sin_theta.array(); in cotmatrix_entries()
/dports/graphics/vpaint/vpaint-1.7/src/Gui/
H A DGLWidget_Camera.h85 double sin_theta = std::sin(theta()); in position() local
91 focus_y() + r() * sin_theta, in position()
103 double sin_theta = std::sin(theta()); in upDirection() local
108 - sin_theta * sin_phi, in upDirection()
110 - sin_theta * cos_phi); in upDirection()
/dports/misc/libpredict/libpredict-2.0.0/src/
H A Dunsorted.c227 double sin_lat, cos_lat, sin_theta, cos_theta, el, azim, top_s, top_e, top_z; in Calculate_Obs() local
243 sin_theta=sin(geodetic->theta); in Calculate_Obs()
245 top_s=sin_lat*cos_theta*range[0]+sin_lat*sin_theta*range[1]-cos_lat*range[2]; in Calculate_Obs()
246 top_e=-sin_theta*range[0]+cos_theta*range[1]; in Calculate_Obs()
247 top_z=cos_lat*cos_theta*range[0]+cos_lat*sin_theta*range[1]+sin_lat*range[2]; in Calculate_Obs()
276 double phi, theta, sin_theta, cos_theta, sin_phi, cos_phi, az, el, in Calculate_RADec() local
286 sin_theta=sin(theta); in Calculate_RADec()
294 Ex=-sin_theta; in Calculate_RADec()
296 Sy=sin_phi*sin_theta; in Calculate_RADec()
298 Zy=sin_theta*cos_phi; in Calculate_RADec()
/dports/math/saga/saga-8.1.3/saga-gis/src/tools/projection/pj_geotrans/geotrans/
H A Deckert4.c264 double sin_theta, cos_theta; in Convert_Geodetic_To_Eckert4() local
296 sin_theta = sin(theta); in Convert_Geodetic_To_Eckert4()
298 num = NUM(theta, sin_theta, cos_theta); in Convert_Geodetic_To_Eckert4()
332 double sin_theta, cos_theta; in Convert_Eckert4_To_Geodetic() local
361 sin_theta = sin(theta); in Convert_Eckert4_To_Geodetic()
363 num = NUM(theta, sin_theta, cos_theta); in Convert_Eckert4_To_Geodetic()
/dports/astro/pykep/pykep-2.6/src/third_party/libsgp4/
H A DObserver.cpp46 double sin_theta = sin(theta); in GetLookAngle() local
49 … double top_s = sin_lat * cos_theta * range.x + sin_lat * sin_theta * range.y - cos_lat * range.z; in GetLookAngle()
50 double top_e = -sin_theta * range.x + cos_theta * range.y; in GetLookAngle()
51 … double top_z = cos_lat * cos_theta * range.x + cos_lat * sin_theta * range.y + sin_lat * range.z; in GetLookAngle()
/dports/astro/py-pykep/pykep-2.6/src/third_party/libsgp4/
H A DObserver.cpp46 double sin_theta = sin(theta); in GetLookAngle() local
49 … double top_s = sin_lat * cos_theta * range.x + sin_lat * sin_theta * range.y - cos_lat * range.z; in GetLookAngle()
50 double top_e = -sin_theta * range.x + cos_theta * range.y; in GetLookAngle()
51 … double top_z = cos_lat * cos_theta * range.x + cos_lat * sin_theta * range.y + sin_lat * range.z; in GetLookAngle()
/dports/audio/praat/praat-6.2.03/external/gsl/
H A Dgsl_specfunc__dilog.c235 const double sin_theta = y/r; in dilogc_series_1() local
237 const double beta = sin_theta; in dilogc_series_1()
239 double sk = sin_theta; in dilogc_series_1()
285 const double sin_theta = y/r; in series_2_c() local
287 const double beta = sin_theta; in series_2_c()
289 double sk = sin_theta; in series_2_c()
399 const double sin_theta = y/r; in dilogc_series_3() local
418 H_im[2] = 0.5 * sin_theta/omc; in dilogc_series_3()
424 H_im[4] = -0.5*sin_theta/omc2; in dilogc_series_3()
430 H_im[6] = 0.5 * sin_theta/(omc2*omc2*omc) * (8.0*omc - sin_theta*sin_theta*(3.0 + cos_theta)); in dilogc_series_3()
[all …]

12345678910>>...14