Searched refs:M_PI (Results 1 - 25 of 150) sorted by relevance

123456

/external/eigen/doc/snippets/
H A DCwise_cos.cpp1 Array3d v(M_PI, M_PI/2, M_PI/3);
H A DCwise_sin.cpp1 Array3d v(M_PI, M_PI/2, M_PI/3);
H A DCwise_tan.cpp1 Array3d v(M_PI, M_PI/2, M_PI/3);
H A DAngleAxis_mimic_euler.cpp2 m = AngleAxisf(0.25*M_PI, Vector3f::UnitX())
3 * AngleAxisf(0.5*M_PI, Vector3f::UnitY())
4 * AngleAxisf(0.33*M_PI, Vector3f::UnitZ());
H A DTutorial_AdvancedInitialization_LinSpaced.cpp3 table.col(1) = M_PI / 180 * table.col(0);
/external/chromium_org/third_party/webrtc/base/
H A Dmathutils.h16 #ifndef M_PI
17 #define M_PI 3.14159265359f macro
/external/flac/libFLAC/
H A Dwindow.c43 #ifndef M_PI
45 #define M_PI 3.14159265358979323846 macro
74 window[n] = (FLAC__real)(0.62f - 0.48f * fabs((float)n/(float)N+0.5f) + 0.38f * cos(2.0f * M_PI * ((float)n/(float)N+0.5f)));
83 window[n] = (FLAC__real)(0.42f - 0.5f * cos(2.0f * M_PI * n / N) + 0.08f * cos(4.0f * M_PI * n / N));
93 window[n] = (FLAC__real)(0.35875f - 0.48829f * cos(2.0f * M_PI * n / N) + 0.14128f * cos(4.0f * M_PI * n / N) - 0.01168f * cos(6.0f * M_PI * n / N));
115 window[n] = (FLAC__real)(1.0f - 1.93f * cos(2.0f * M_PI * n / N) + 1.29f * cos(4.0f * M_PI *
[all...]
/external/libvorbis/test/
H A Dutil.c38 { data [k] = sin (2.0 * k * M_PI * 1.0 / 32.0 + 0.4) ;
41 data [k] *= maximum * (0.5 - 0.5 * cos (2.0 * M_PI * k / ((len) - 1))) ;
/external/tremolo/Tremolo/
H A Dos.h55 #ifndef M_PI
56 # define M_PI (3.1415926536f) macro
/external/eigen/test/
H A Dgeo_eulerangles.cpp29 if( (i!=k || ea[1]!=0) && (i==k || !internal::isApprox(abs(ea[1]),Scalar(M_PI/2),test_precision<Scalar>())) )
34 VERIFY_IS_APPROX_OR_LESS_THAN(eabis[0], Scalar(M_PI));
35 VERIFY_IS_APPROX_OR_LESS_THAN(-Scalar(M_PI), eabis[1]);
36 VERIFY_IS_APPROX_OR_LESS_THAN(eabis[1], Scalar(M_PI));
37 VERIFY_IS_APPROX_OR_LESS_THAN(-Scalar(M_PI), eabis[2]);
38 VERIFY_IS_APPROX_OR_LESS_THAN(eabis[2], Scalar(M_PI));
67 Scalar a = internal::random<Scalar>(-Scalar(M_PI), Scalar(M_PI));
87 ea = (Array3::Random() + Array3(1,0,0))*Scalar(M_PI)*Array3(0.5,1,1);
90 ea[2] = ea[0] = internal::random<Scalar>(0,Scalar(M_PI));
[all...]
/external/chromium_org/ppapi/examples/audio/
H A Daudio.cc5 // Needed on Windows to get |M_PI| from math.h.
79 double delta_l = 2.0 * M_PI * kLeftFrequency / sample_rate_ /
81 double delta_r = 2.0 * M_PI * kRightFrequency / sample_rate_ /
92 // Add delta, keep within -2 * M_PI .. 2 * M_PI to preserve precision.
94 if (wave_l > 2.0 * M_PI)
95 wave_l -= 2.0 * M_PI;
97 if (wave_r > 2.0 * M_PI)
98 wave_r -= 2.0 * M_PI;
/external/chromium_org/media/base/
H A Daudio_hash.cc5 // MSVC++ requires this to be set before any other includes to get M_PI.
36 channel[i] + sin(2.0 * M_PI * M_PI * kSampleIndex);
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/
H A Dlp_test_arit.c170 -5*M_PI/4,
171 -4*M_PI/4,
172 -4*M_PI/4,
173 -3*M_PI/4,
174 -2*M_PI/4,
175 -1*M_PI/4,
176 1*M_PI/4,
177 2*M_PI/4,
178 3*M_PI/4,
179 4*M_PI/
[all...]
/external/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_test_arit.c170 -5*M_PI/4,
171 -4*M_PI/4,
172 -4*M_PI/4,
173 -3*M_PI/4,
174 -2*M_PI/4,
175 -1*M_PI/4,
176 1*M_PI/4,
177 2*M_PI/4,
178 3*M_PI/4,
179 4*M_PI/
[all...]
/external/aac/libFDK/include/
H A DFDK_trigFcts.h100 #ifndef M_PI
101 #define M_PI (3.14159265358979323846f) macro
152 residual = fMult(x, FL2FXCONST_DBL(1.0/M_PI));
156 residual = fMult(residual, FL2FXCONST_DBL(M_PI/4.0)) << 2;
/external/eigen/Eigen/src/Geometry/
H A DEulerAngles.h58 res[0] = (res[0] > Scalar(0)) ? res[0] - Scalar(M_PI) : res[0] + Scalar(M_PI);
87 res[0] = (res[0] > Scalar(0)) ? res[0] - Scalar(M_PI) : res[0] + Scalar(M_PI);
/external/chromium_org/third_party/skia/platform_tools/android/examples/hello_skia_app/jni/
H A Dhelloskia.cpp63 canvas->drawLine(sin(x * M_PI + offset) * 800.0f, 0, // first endpoint
64 cos(x * M_PI + offset) * 800.0f, 800, // second endpoint
/external/eigen/demos/opengl/
H A Dtrackball.cpp47 double sinx = sin(M_PI * x * 0.5);
48 double siny = sin(M_PI * y * 0.5);
/external/nanopb-c/examples/using_double_on_avr/
H A Dtest_conversions.c7 M_PI, -M_PI, 123456.789, -123456.789,
/external/skia/platform_tools/android/examples/hello_skia_app/jni/
H A Dhelloskia.cpp63 canvas->drawLine(sin(x * M_PI + offset) * 800.0f, 0, // first endpoint
64 cos(x * M_PI + offset) * 800.0f, 800, // second endpoint
/external/srec/srec/include/
H A Dall_defs.h105 #ifndef M_PI
106 #define M_PI 3.14159265358979323846 macro
107 #endif /* M_PI */
/external/pixman/pixman/
H A Dpixman-conical-gradient.c43 t += 2 * M_PI;
45 while (t >= 2 * M_PI)
46 t -= 2 * M_PI;
48 return 1 - t * (1 / (2 * M_PI)); /* Scale t to [0, 1] and
208 conical->angle = (pixman_fixed_to_double (angle) / 180.0) * M_PI;
/external/chromium_org/third_party/openmax_dl/dl/sp/src/test/
H A Dgensig.c68 double omega = 2 * M_PI / size;
95 double omega = 2 * M_PI / size;
128 double omega = 2 * M_PI / size;
/external/chromium_org/third_party/opus/src/celt/tests/
H A Dtest_unit_dft.c48 #ifndef M_PI
49 #define M_PI 3.141592653 macro
66 double phase = -2*M_PI*bin*k/nfft;
/external/libopus/celt/tests/
H A Dtest_unit_dft.c48 #ifndef M_PI
49 #define M_PI 3.141592653 macro
66 double phase = -2*M_PI*bin*k/nfft;

Completed in 546 milliseconds

123456