Home
last modified time | relevance | path

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

12

/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()
Datlantis.h47 float x, y, z, phi, theta, psi, v; member
/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()
Datlantis.h47 float x, y, z, phi, theta, psi, v; member
/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 …]
Datlantis.c116 dolph.theta = 0.0; in InitFishs()
123 momWhale.theta = 0.0; in InitFishs()
130 babyWhale.theta = 0.0; in InitFishs()
Datlantis.h47 float x, y, z, phi, theta, psi, v; member
/external/freetype/src/base/
Dfttrigon.c187 FT_Angle theta ) in ft_trig_pseudo_rotate() argument
198 while ( theta <= -FT_ANGLE_PI2 ) in ft_trig_pseudo_rotate()
202 theta += FT_ANGLE_PI; in ft_trig_pseudo_rotate()
205 while ( theta > FT_ANGLE_PI2 ) in ft_trig_pseudo_rotate()
209 theta -= FT_ANGLE_PI; in ft_trig_pseudo_rotate()
215 if ( theta < 0 ) in ft_trig_pseudo_rotate()
220 theta += *arctanptr++; in ft_trig_pseudo_rotate()
227 theta -= *arctanptr++; in ft_trig_pseudo_rotate()
234 if ( theta < 0 ) in ft_trig_pseudo_rotate()
239 theta += *arctanptr++; in ft_trig_pseudo_rotate()
[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/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/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/webkit/Source/WebCore/platform/audio/
DBiquad.cpp199 double theta = piDouble * cutoff; in setLowpassParams() local
200 double sn = 0.5 * d * sin(theta); in setLowpassParams()
202 double gamma = (0.5 + beta) * cos(theta); in setLowpassParams()
220 double theta = piDouble * cutoff; in setHighpassParams() local
221 double sn = 0.5 * d * sin(theta); in setHighpassParams()
223 double gamma = (0.5 + beta) * cos(theta); in setHighpassParams()
235 double theta = piDouble * cutoff; in setLowShelfParams() local
239 double alpha = 0.5 * sin(theta) * sqrt((A + 1.0 / A) * (1.0 / S - 1.0) + 2.0); in setLowShelfParams()
241 double k = cos(theta); in setLowShelfParams()
/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/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()
DQuaternion.java656 float theta = FastMath.acos(result); in slerp() local
657 float invSinTheta = 1f / FastMath.sin(theta); in slerp()
661 scale0 = FastMath.sin((1 - t) * theta) * invSinTheta; in slerp()
662 scale1 = FastMath.sin((t * theta)) * invSinTheta; in slerp()
713 float theta = FastMath.acos(result); in slerp() local
714 float invSinTheta = 1f / FastMath.sin(theta); in slerp()
718 scale0 = FastMath.sin((1 - changeAmnt) * theta) * invSinTheta; in slerp()
719 scale1 = FastMath.sin((changeAmnt * theta)) * invSinTheta; in slerp()
/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);

12