Home
last modified time | relevance | path

Searched refs:theta (Results 1 – 25 of 65) sorted by relevance

123

/external/qemu/distrib/sdl-1.2.15/Xcode/TemplatesForXcodeLeopard/SDL OpenGL Application/atlantis/
Dswim.c48 glRotatef(fish->theta, 1.0, 0.0, 0.0); in FishTransform()
57 fish->theta = 0.0; in WhalePilot()
60 fish->x += WHALESPEED * fish->v * cos(fish->psi / RAD) * cos(fish->theta / RAD); in WhalePilot()
61 fish->y += WHALESPEED * fish->v * sin(fish->psi / RAD) * cos(fish->theta / RAD); in WhalePilot()
62 fish->z += WHALESPEED * fish->v * sin(fish->theta / RAD); in WhalePilot()
79 thetal = fish->theta; in SharkPilot()
83 if (ttheta > fish->theta + 0.25) { in SharkPilot()
84 fish->theta += 0.5; in SharkPilot()
85 } else if (ttheta < fish->theta - 0.25) { in SharkPilot()
86 fish->theta -= 0.5; in SharkPilot()
[all …]
/external/qemu/distrib/sdl-1.2.15/Xcode/TemplatesForXcodeTiger/SDL OpenGL Application/atlantis/
Dswim.c48 glRotatef(fish->theta, 1.0, 0.0, 0.0); in FishTransform()
57 fish->theta = 0.0; in WhalePilot()
60 fish->x += WHALESPEED * fish->v * cos(fish->psi / RAD) * cos(fish->theta / RAD); in WhalePilot()
61 fish->y += WHALESPEED * fish->v * sin(fish->psi / RAD) * cos(fish->theta / RAD); in WhalePilot()
62 fish->z += WHALESPEED * fish->v * sin(fish->theta / RAD); in WhalePilot()
79 thetal = fish->theta; in SharkPilot()
83 if (ttheta > fish->theta + 0.25) { in SharkPilot()
84 fish->theta += 0.5; in SharkPilot()
85 } else if (ttheta < fish->theta - 0.25) { in SharkPilot()
86 fish->theta -= 0.5; in SharkPilot()
[all …]
Datlantis.c116 dolph.theta = 0.0; in InitFishs()
123 momWhale.theta = 0.0; in InitFishs()
130 babyWhale.theta = 0.0; in InitFishs()
/external/qemu/distrib/sdl-1.2.15/Xcode/TemplatesForXcodeSnowLeopard/SDL OpenGL Application/atlantis/
Dswim.c48 glRotatef(fish->theta, 1.0, 0.0, 0.0); in FishTransform()
57 fish->theta = 0.0; in WhalePilot()
60 fish->x += WHALESPEED * fish->v * cos(fish->psi / RAD) * cos(fish->theta / RAD); in WhalePilot()
61 fish->y += WHALESPEED * fish->v * sin(fish->psi / RAD) * cos(fish->theta / RAD); in WhalePilot()
62 fish->z += WHALESPEED * fish->v * sin(fish->theta / RAD); in WhalePilot()
79 thetal = fish->theta; in SharkPilot()
83 if (ttheta > fish->theta + 0.25) { in SharkPilot()
84 fish->theta += 0.5; in SharkPilot()
85 } else if (ttheta < fish->theta - 0.25) { in SharkPilot()
86 fish->theta -= 0.5; in SharkPilot()
[all …]
Datlantis.c116 dolph.theta = 0.0; in InitFishs()
123 momWhale.theta = 0.0; in InitFishs()
130 babyWhale.theta = 0.0; in InitFishs()
/external/eigen/bench/
Dquat_slerp.cpp33 Scalar theta = std::acos(absD); in slerp_legacy() local
34 Scalar sinTheta = internal::sin(theta); in slerp_legacy()
36 Scalar scale0 = internal::sin( ( Scalar(1) - t ) * theta) / sinTheta; in slerp_legacy()
37 Scalar scale1 = internal::sin( ( t * theta) ) / sinTheta; in slerp_legacy()
63 Scalar theta = std::acos(absD); in slerp_legacy_nlerp() local
64 Scalar sinTheta = internal::sin(theta); in slerp_legacy_nlerp()
66 scale0 = internal::sin( ( Scalar(1) - t ) * theta) / sinTheta; in slerp_legacy_nlerp()
67 scale1 = internal::sin( ( t * theta) ) / sinTheta; in slerp_legacy_nlerp()
90 Scalar theta; in slerp_rw() local
92 theta = /*M_PI -*/ Scalar(2)*std::asin( (a.coeffs()+b.coeffs()).norm()/2 ); in slerp_rw()
[all …]
Deig33.cpp77 Scalar theta = std::atan2(internal::sqrt(-q),half_b)*s_inv3; in computeRoots() local
78 Scalar cos_theta = internal::cos(theta); in computeRoots()
79 Scalar sin_theta = internal::sin(theta); in computeRoots()
/external/ceres-solver/internal/ceres/
Drotation_test.cc210 double theta = 1.0e-2; in TEST() local
211 double axis_angle[3] = { theta, 0, 0 }; in TEST()
213 double expected[4] = { cos(theta/2), sin(theta/2.0), 0, 0 }; in TEST()
222 double theta = pow(numeric_limits<double>::min(), 0.75); in TEST() local
223 double axis_angle[3] = { theta, 0, 0 }; in TEST()
225 double expected[4] = { cos(theta/2), sin(theta/2.0), 0, 0 }; in TEST()
272 double theta = 1.0e-2; in TEST() local
273 double quaternion[4] = { cos(theta/2), sin(theta/2.0), 0, 0 }; in TEST()
275 double expected[3] = { theta, 0, 0 }; in TEST()
283 double theta = pow(numeric_limits<double>::min(), 0.75); in TEST() local
[all …]
/external/chromium_org/third_party/freetype/src/base/
Dfttrigon.c146 FT_Angle theta ) in ft_trig_pseudo_rotate() argument
157 while ( theta < -FT_ANGLE_PI4 ) in ft_trig_pseudo_rotate()
162 theta += FT_ANGLE_PI2; in ft_trig_pseudo_rotate()
165 while ( theta > FT_ANGLE_PI4 ) in ft_trig_pseudo_rotate()
170 theta -= FT_ANGLE_PI2; in ft_trig_pseudo_rotate()
178 if ( theta < 0 ) in ft_trig_pseudo_rotate()
183 theta += *arctanptr++; in ft_trig_pseudo_rotate()
190 theta -= *arctanptr++; in ft_trig_pseudo_rotate()
202 FT_Angle theta; in ft_trig_pseudo_polarize() local
216 theta = FT_ANGLE_PI2; in ft_trig_pseudo_polarize()
[all …]
Dftstroke.c103 FT_Angle theta; in ft_conic_is_small_enough() local
142 theta = ft_pos_abs( FT_Angle_Diff( *angle_in, *angle_out ) ); in ft_conic_is_small_enough()
144 return FT_BOOL( theta < FT_SMALL_CONIC_THRESHOLD ); in ft_conic_is_small_enough()
531 FT_Angle total, angle, step, rotate, next, theta; in ft_stroke_border_arcto() local
556 theta = step; in ft_stroke_border_arcto()
557 if ( theta < 0 ) in ft_stroke_border_arcto()
558 theta = -theta; in ft_stroke_border_arcto()
560 theta >>= 1; in ft_stroke_border_arcto()
568 length = FT_MulDiv( radius, FT_Sin( theta ) * 4, in ft_stroke_border_arcto()
569 ( 0x10000L + FT_Cos( theta ) ) * 3 ); in ft_stroke_border_arcto()
[all …]
/external/freetype/src/base/
Dfttrigon.c146 FT_Angle theta ) in ft_trig_pseudo_rotate() argument
157 while ( theta < -FT_ANGLE_PI4 ) in ft_trig_pseudo_rotate()
162 theta += FT_ANGLE_PI2; in ft_trig_pseudo_rotate()
165 while ( theta > FT_ANGLE_PI4 ) in ft_trig_pseudo_rotate()
170 theta -= FT_ANGLE_PI2; in ft_trig_pseudo_rotate()
178 if ( theta < 0 ) in ft_trig_pseudo_rotate()
183 theta += *arctanptr++; in ft_trig_pseudo_rotate()
190 theta -= *arctanptr++; in ft_trig_pseudo_rotate()
202 FT_Angle theta; in ft_trig_pseudo_polarize() local
216 theta = FT_ANGLE_PI2; in ft_trig_pseudo_polarize()
[all …]
Dftstroke.c103 FT_Angle theta; in ft_conic_is_small_enough() local
142 theta = ft_pos_abs( FT_Angle_Diff( *angle_in, *angle_out ) ); in ft_conic_is_small_enough()
144 return FT_BOOL( theta < FT_SMALL_CONIC_THRESHOLD ); in ft_conic_is_small_enough()
531 FT_Angle total, angle, step, rotate, next, theta; in ft_stroke_border_arcto() local
556 theta = step; in ft_stroke_border_arcto()
557 if ( theta < 0 ) in ft_stroke_border_arcto()
558 theta = -theta; in ft_stroke_border_arcto()
560 theta >>= 1; in ft_stroke_border_arcto()
568 length = FT_MulDiv( radius, FT_Sin( theta ) * 4, in ft_stroke_border_arcto()
569 ( 0x10000L + FT_Cos( theta ) ) * 3 ); in ft_stroke_border_arcto()
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/scene/shape/
DPQTorus.java150 float r, x, y, z, theta = 0.0f, beta = 0.0f; in updateGeometry() local
155 theta += thetaStep; in updateGeometry()
159 r = (0.5f * (2.0f + FastMath.sin(q * theta)) * radius); in updateGeometry()
160 x = (r * FastMath.cos(p * theta) * radius); in updateGeometry()
161 y = (r * FastMath.sin(p * theta) * radius); in updateGeometry()
162 z = (r * FastMath.cos(q * theta) * radius); in updateGeometry()
166 r = (0.5f * (2.0f + FastMath.sin(q * (theta + 0.01f))) * radius); in updateGeometry()
167 x = (r * FastMath.cos(p * (theta + 0.01f)) * radius); in updateGeometry()
168 y = (r * FastMath.sin(p * (theta + 0.01f)) * radius); in updateGeometry()
169 z = (r * FastMath.cos(q * (theta + 0.01f)) * radius); in updateGeometry()
DTorus.java138 float theta = FastMath.TWO_PI * circleFraction; in setGeometryData() local
139 float cosTheta = FastMath.cos(theta); in setGeometryData()
140 float sinTheta = FastMath.sin(theta); in setGeometryData()
/external/valgrind/main/none/tests/amd64/
Dbug132918.c44 double theta; in main() local
50 theta = (2.0 * 3.14159) / 10.0 * (double)i; in main()
51 do_fprem(&r, 12.3*sin(theta), cos(theta)); show("xx", &r); in main()
/external/ceres-solver/include/ceres/
Drotation.h231 const T theta = sqrt(theta_squared); in AngleAxisToQuaternion() local
232 const T half_theta = theta * T(0.5); in AngleAxisToQuaternion()
233 const T k = sin(half_theta) / theta; in AngleAxisToQuaternion()
333 const T theta = atan2(sintheta, costheta); in RotationMatrixToAngleAxis() local
346 const T r = theta / (kTwo * sintheta); in RotationMatrixToAngleAxis()
379 angle_axis[i] = theta * sqrt((R(i, i) - costheta) * inv_one_minus_costheta); in RotationMatrixToAngleAxis()
402 const T theta = sqrt(theta2); in AngleAxisToRotationMatrix() local
403 const T wx = angle_axis[0] / theta; in AngleAxisToRotationMatrix()
404 const T wy = angle_axis[1] / theta; in AngleAxisToRotationMatrix()
405 const T wz = angle_axis[2] / theta; in AngleAxisToRotationMatrix()
[all …]
/external/libvpx/libvpx/vp9/common/
Dvp9_tapify.py38 theta = angle / 57.2957795;
39 affine = [[math.cos(theta),-math.sin(theta)],
40 [math.sin(theta),math.cos(theta)]]
/external/llvm/test/CodeGen/X86/
D2011-02-23-UnfoldBug.ll10 %theta.0.ph = phi <2 x double> [ undef, %entry ], [ %theta.1, %if.end71 ]
11 %mul.i97 = fmul <2 x double> %theta.0.ph, undef
33 %theta.1 = phi <2 x double> [ %vecins.i91, %if.then67 ], [ %theta.0.ph, %for.end ]
Dlegalize-libcalls.ll6 define float @MakeSphere(float %theta.079) nounwind {
8 %add36 = fadd float %theta.079, undef
9 %call = call float @cosf(float %theta.079) nounwind readnone
10 %call45 = call float @sinf(float %theta.079) nounwind readnone
/external/opencv/cv/src/
Dcvhough.cpp85 icvHoughLinesStandard( const CvMat* img, float rho, float theta, in CV_IMPLEMENT_QSORT_EX()
114 numangle = cvRound(CV_PI / theta); in CV_IMPLEMENT_QSORT_EX()
123 for( ang = 0, n = 0; n < numangle; ang += theta, n++ ) in CV_IMPLEMENT_QSORT_EX()
166 line.angle = n * theta; in CV_IMPLEMENT_QSORT_EX()
192 float rho, float theta, int threshold, in IMPLEMENT_LIST()
238 CV_ASSERT( linesMax > 0 && rho > 0 && theta > 0 ); in IMPLEMENT_LIST()
248 itheta = 1 / theta; in IMPLEMENT_LIST()
250 stheta = theta / stn; in IMPLEMENT_LIST()
313 theta_it = theta_it < theta ? theta_it : theta; in IMPLEMENT_LIST()
348 icvHoughLinesStandard( img, rho, theta, threshold, lines, linesMax ); in IMPLEMENT_LIST()
[all …]
Dcvcamshift.cpp175 double theta = 0, square; in cvCamShift() local
235 theta = atan2( 2 * b, a - c + square ); in cvCamShift()
238 cs = cos( theta ); in cvCamShift()
239 sn = sin( theta ); in cvCamShift()
253 theta = CV_PI*0.5 - theta; in cvCamShift()
292 box->angle = (float)(theta*180./CV_PI); in cvCamShift()
/external/srec/srec/clib/
Djacobi.c128 double theta = 0.5 * h / a[i][j]; in Jacobi() local
129 t = 1.0 / (fabs(theta) + sqrt(1.0 + theta * theta)); in Jacobi()
130 if (theta < 0.0) t = -t; in Jacobi()
/external/jmonkeyengine/engine/src/core/com/jme3/math/
DRing.java190 + FastMath.nextRandomFloat() * (outer2 - inner2)), theta = FastMath in random() local
199 result.set(b1).multLocal(r * FastMath.cos(theta)).addLocal(center); in random()
200 result.scaleAdd(r * FastMath.sin(theta), b2, result); in random()
/external/valgrind/main/perf/
Dffbench.c176 double theta, wi, wpi, wpr, wr, wtemp; local
209 theta = isign * 6.28318530717959 / (ifp2 / ip1);
210 wtemp = sin(0.5 * theta);
212 wpi = sin(theta);
/external/chromium_org/third_party/WebKit/Source/platform/audio/
DBiquad.cpp224 double theta = piDouble * cutoff; in setLowpassParams() local
225 double sn = 0.5 * d * sin(theta); in setLowpassParams()
227 double gamma = (0.5 + beta) * cos(theta); in setLowpassParams()
260 double theta = piDouble * cutoff; in setHighpassParams() local
261 double sn = 0.5 * d * sin(theta); in setHighpassParams()
263 double gamma = (0.5 + beta) * cos(theta); in setHighpassParams()

123