Home
last modified time | relevance | path

Searched refs:M_PI (Results 1 – 25 of 188) sorted by relevance

12345678

/external/s2-geometry-library-java/src/com/google/common/geometry/
DS1Interval.java70 if (lo == -S2.M_PI && hi != S2.M_PI) { in S1Interval()
71 newLo = S2.M_PI; in S1Interval()
73 if (hi == -S2.M_PI && lo != S2.M_PI) { in S1Interval()
74 newHi = S2.M_PI; in S1Interval()
82 return new S1Interval(S2.M_PI, -S2.M_PI, true); in empty()
86 return new S1Interval(-S2.M_PI, S2.M_PI, true); in full()
91 if (p == -S2.M_PI) { in fromPoint()
92 p = S2.M_PI; in fromPoint()
104 if (p1 == -S2.M_PI) { in fromPointPair()
105 p1 = S2.M_PI; in fromPointPair()
[all …]
DS2Projections.java91 S2_PROJECTION == Projections.S2_TAN_PROJECTION ? (S2.M_PI * S2.M_PI)
98 S2_PROJECTION == Projections.S2_TAN_PROJECTION ? S2.M_PI * S2.M_PI / 16 : // 0.617
102 public static final Metric AVG_AREA = new Metric(2, S2.M_PI / 6); // 0.524)
114 S2_PROJECTION == Projections.S2_TAN_PROJECTION ? S2.M_PI / 4 : // 0.785
119 S2_PROJECTION == Projections.S2_TAN_PROJECTION ? S2.M_PI / 4 : // 0.785
123 public static final Metric AVG_ANGLE_SPAN = new Metric(1, S2.M_PI / 4); // 0.785
146 S2_PROJECTION == Projections.S2_TAN_PROJECTION ? S2.M_PI / (4 * S2.M_SQRT2) : // 0.555
169 S2_PROJECTION == Projections.S2_TAN_PROJECTION ? S2.M_PI / (4 * S2.M_SQRT2) : // 0.555
191 S2_PROJECTION == Projections.S2_TAN_PROJECTION ? S2.M_PI / (3 * S2.M_SQRT2) : // 0.740
197 S2_PROJECTION == Projections.S2_TAN_PROJECTION ? S2.M_PI / Math.sqrt(6) : // 1.283
DS2Cap.java90 return new S2Cap(axis, area / (2 * S2.M_PI)); in fromAxisArea()
114 return 2 * S2.M_PI * Math.max(0.0, height); in area()
225 if (angle >= S2.M_PI) { in addCap()
254 lng[0] = -S2.M_PI; in getRectBound()
255 lng[1] = S2.M_PI; in getRectBound()
286 2 * S2.M_PI); in getRectBound()
288 2 * S2.M_PI); in getRectBound()
/external/s2-geometry-library-java/tests/com/google/common/geometry/
DS1IntervalTest.java55 S1Interval quad12 = new S1Interval(0, -S2.M_PI); in testBasic()
57 assertEquals(quad12.hi(), S2.M_PI); in testBasic()
58 S1Interval quad34 = new S1Interval(-S2.M_PI, 0); in testBasic()
59 assertEquals(quad34.lo(), S2.M_PI); in testBasic()
61 S1Interval pi = new S1Interval(S2.M_PI, S2.M_PI); in testBasic()
62 assertEquals(pi.lo(), S2.M_PI); in testBasic()
63 assertEquals(pi.hi(), S2.M_PI); in testBasic()
64 S1Interval mipi = new S1Interval(-S2.M_PI, -S2.M_PI); in testBasic()
65 assertEquals(mipi.lo(), S2.M_PI); in testBasic()
66 assertEquals(mipi.hi(), S2.M_PI); in testBasic()
[all …]
/external/flac/src/libFLAC/
Dwindow.c75 …window[n] = (FLAC__real)(0.62f - 0.48f * fabsf((float)n/(float)N-0.5f) - 0.38f * cosf(2.0f * M_PI in FLAC__window_bartlett_hann()
84 …window[n] = (FLAC__real)(0.42f - 0.5f * cosf(2.0f * M_PI * n / N) + 0.08f * cosf(4.0f * M_PI * n /… in FLAC__window_blackman()
94 …(0.35875f - 0.48829f * cosf(2.0f * M_PI * n / N) + 0.14128f * cosf(4.0f * M_PI * n / N) - 0.01168f… in FLAC__window_blackman_harris_4term_92db_sidelobe()
116 …sf(2.0f * M_PI * n / N) + 0.277263158f * cosf(4.0f * M_PI * n / N) - 0.083578947f * cosf(6.0f * M_… in FLAC__window_flattop()
143 window[n] = (FLAC__real)(0.54f - 0.46f * cosf(2.0f * M_PI * n / N)); in FLAC__window_hamming()
152 window[n] = (FLAC__real)(0.5f - 0.5f * cosf(2.0f * M_PI * n / N)); in FLAC__window_hann()
161 …_real)(0.402f - 0.498f * cosf(2.0f * M_PI * n / N) + 0.098f * cosf(4.0f * M_PI * n / N) - 0.001f *… in FLAC__window_kaiser_bessel()
170 …_real)(0.3635819f - 0.4891775f*cosf(2.0f*M_PI*n/N) + 0.1365995f*cosf(4.0f*M_PI*n/N) - 0.0106411f*c… in FLAC__window_nuttall()
217 window[n] = (FLAC__real)(0.5f - 0.5f * cosf(M_PI * n / Np)); in FLAC__window_tukey()
218 window[L-Np-1+n] = (FLAC__real)(0.5f - 0.5f * cosf(M_PI * (n+Np) / Np)); in FLAC__window_tukey()
[all …]
/external/mesa3d/src/gallium/drivers/i915/
Di915_fpc_translate.c45 #ifndef M_PI
46 #define M_PI 3.14159265358979323846 macro
81 static const float sin_constants[4] = { 2.0 * M_PI,
82 -8.0f * M_PI * M_PI * M_PI / (3 * 2 * 1),
83 32.0f * M_PI * M_PI * M_PI * M_PI * M_PI / (5 * 4 * 3 * 2 * 1),
84 -128.0f * M_PI * M_PI * M_PI * M_PI * M_PI * M_PI * M_PI / (7 * 6 * 5 * 4 * 3 * 2 * 1)
89 -4.0f * M_PI * M_PI / (2 * 1),
90 16.0f * M_PI * M_PI * M_PI * M_PI / (4 * 3 * 2 * 1),
91 -64.0f * M_PI * M_PI * M_PI * M_PI * M_PI * M_PI / (6 * 5 * 4 * 3 * 2 * 1)
524 src0, i915_emit_const1f(p, 1.0f / (float) (M_PI * 2.0)), 0); in i915_translate_instruction()
[all …]
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_test_arit.c224 -5*M_PI/4,
225 -4*M_PI/4,
226 -4*M_PI/4,
227 -3*M_PI/4,
228 -2*M_PI/4,
229 -1*M_PI/4,
230 1*M_PI/4,
231 2*M_PI/4,
232 3*M_PI/4,
233 4*M_PI/4,
[all …]
/external/pffft/
Dtest_pffft.cpp45 #ifndef M_PI
46 #define M_PI 3.14159265358979323846 /* pi */ macro
107 dPhi = 2.0 * M_PI * freq; in Ttest()
109 dPhi += 2.0 * M_PI; in Ttest()
120 (m % 4) * 0.125 * M_PI; /* have phi0 < 90 deg to be normalized */ in Ttest()
130 if (phi >= M_PI) in Ttest()
131 phi -= 2.0 * M_PI; in Ttest()
194 if (fabs(phi - phi0) > DEG_ERR_LIMIT * M_PI / 180.0) { in Ttest()
202 phi * 180.0 / M_PI, in Ttest()
203 phi0 * 180.0 / M_PI); in Ttest()
Dtest_pffft.c48 #ifndef M_PI
49 #define M_PI 3.14159265358979323846 /* pi */ macro
113 dPhi = 2.0 * M_PI * freq; in test()
115 dPhi += 2.0 * M_PI; in test()
126 phi = phi0 = (m % 4) * 0.125 * M_PI; /* have phi0 < 90 deg to be normalized */ in test()
138 if ( phi >= M_PI ) in test()
139 phi -= 2.0 * M_PI; in test()
199 if ( fabs( phi - phi0) > DEG_ERR_LIMIT * M_PI / 180.0 ) in test()
203 (cplx ? "cplx":"real"), N, k, amp, phi * 180.0 / M_PI, phi0 * 180.0 / M_PI ); in test()
/external/flac/src/test_streams/
Dmain.c438 const double delta1 = 2.0 * M_PI / ( sample_rate / f1); in generate_sine8_1()
439 const double delta2 = 2.0 * M_PI / ( sample_rate / f2); in generate_sine8_1()
465 const double delta1 = 2.0 * M_PI / ( sample_rate / f1); in generate_sine8_2()
466 const double delta2 = 2.0 * M_PI / ( sample_rate / f2); in generate_sine8_2()
496 const double delta1 = 2.0 * M_PI / ( sample_rate / f1); in generate_sine16_1()
497 const double delta2 = 2.0 * M_PI / ( sample_rate / f2); in generate_sine16_1()
523 const double delta1 = 2.0 * M_PI / ( sample_rate / f1); in generate_sine16_2()
524 const double delta2 = 2.0 * M_PI / ( sample_rate / f2); in generate_sine16_2()
554 const double delta1 = 2.0 * M_PI / ( sample_rate / f1); in generate_sine24_1()
555 const double delta2 = 2.0 * M_PI / ( sample_rate / f2); in generate_sine24_1()
[all …]
/external/eigen/doc/snippets/
DCwise_tan.cpp1 Array3d v(M_PI, M_PI/2, M_PI/3);
DCwise_cos.cpp1 Array3d v(M_PI, M_PI/2, M_PI/3);
DCwise_sin.cpp1 Array3d v(M_PI, M_PI/2, M_PI/3);
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());
/external/aac/libFDK/src/
DFDK_trigFcts.cpp192 at = FL2FXCONST_DBL(+M_PI / 2 / ATO_SCALE); in fixp_atan2()
198 at = FL2FXCONST_DBL(-M_PI / 2 / ATO_SCALE); in fixp_atan2()
221 ret = at2 + FL2FXCONST_DBL(M_PI / AT2O_SCALE); in fixp_atan2()
223 ret = at2 - FL2FXCONST_DBL(M_PI / AT2O_SCALE); in fixp_atan2()
228 ret = FL2FXCONST_DBL(+M_PI / 2 / AT2O_SCALE); in fixp_atan2()
230 ret = FL2FXCONST_DBL(-M_PI / 2 / AT2O_SCALE); in fixp_atan2()
/external/pdfium/third_party/lcms/src/
Dcmspcs.c315 return (deg * M_PI) / 180.; in RADIANS()
330 h *= (180. / M_PI); in atan2deg()
360 cmsFloat64Number h = (LCh -> h * M_PI) / 180.0; in cmsLCh2Lab()
525 t = 0.627+(0.055*cos((Aveh-254)/(180/M_PI))- in cmsBFDdeltaE()
526 0.040*cos((2*Aveh-136)/(180/M_PI))+ in cmsBFDdeltaE()
527 0.070*cos((3*Aveh-31)/(180/M_PI))+ in cmsBFDdeltaE()
528 0.049*cos((4*Aveh+114)/(180/M_PI))- in cmsBFDdeltaE()
529 0.015*cos((5*Aveh-103)/(180/M_PI))); in cmsBFDdeltaE()
532 rh = -0.260*cos((Aveh-308)/(180/M_PI))- in cmsBFDdeltaE()
533 0.379*cos((2*Aveh-160)/(180/M_PI))- in cmsBFDdeltaE()
[all …]
/external/libopus/celt/
Dmodes.c73 #ifndef M_PI
74 #define M_PI 3.141592653 macro
379 …window[i] = Q15ONE*sin(.5*M_PI* sin(.5*M_PI*(i+.5)/mode->overlap) * sin(.5*M_PI*(i+.5)/mode->overl… in opus_custom_mode_create()
382 …window[i] = MIN32(32767,floor(.5+32768.*sin(.5*M_PI* sin(.5*M_PI*(i+.5)/mode->overlap) * sin(.5*M_… in opus_custom_mode_create()
/external/tensorflow/tensorflow/lite/experimental/microfrontend/lib/
Dwindow_util.c23 #ifndef M_PI
24 #define M_PI 3.14159265358979323846 macro
44 const float arg = M_PI * 2.0 / ((float)state->size); in WindowPopulateState()
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dmath_test.cc369 static_cast<float>(std::log(M_PI) / 2), in XLA_TEST_F()
370 static_cast<float>(std::log(M_PI) / 2 - std::log(2)), in XLA_TEST_F()
371 static_cast<float>(std::log(M_PI) / 2 - std::log(4) + std::log(3)), in XLA_TEST_F()
372 static_cast<float>(std::log(M_PI) / 2 - std::log(3) + std::log(4)), in XLA_TEST_F()
373 static_cast<float>(std::log(M_PI) / 2 - std::log(105) + std::log(16)), in XLA_TEST_F()
374 static_cast<float>(std::log(M_PI) / 2 - std::log(10395) + std::log(64))}; in XLA_TEST_F()
413 static_cast<float>(-M_PI / 2 / std::sqrt(3) - 3 * std::log(3) / 2 - in XLA_TEST_F()
415 static_cast<float>(-M_PI / 2 - 3 * std::log(2) - euler_mascheroni), in XLA_TEST_F()
416 static_cast<float>(-M_PI * std::sqrt(3) / 2 - 2 * std::log(2) - in XLA_TEST_F()
419 -M_PI / 2 - 4 * std::log(2) - in XLA_TEST_F()
[all …]
/external/tensorflow/tensorflow/core/lib/random/
Drandom_distributions_utils.h25 #ifndef M_PI
26 #define M_PI (3.14159265358979323846) macro
82 const float v1 = 2.0f * M_PI * Uint32ToFloat(x1); in BoxMullerFloat()
/external/OpenCL-CTS/test_conformance/commonfns/
Dtest_radians.cpp25 #ifndef M_PI
26 #define M_PI 3.14159265358979323846264338327950288 macro
92 r = (M_PI / 180.0) * inptr[i]; in verify_radians()
154 p[i] = get_random_float((float)(-100000.f * M_PI), (float)(100000.f * M_PI) ,d); in test_radians()
385 p[i] = get_random_double((float)(-100000.0 * M_PI), (float)(100000.0 * M_PI) ,d); in test_radians_double()
Dtest_degrees.cpp25 #ifndef M_PI
26 #define M_PI 3.14159265358979323846264338327950288 macro
92 r = (180.0 / M_PI) * inptr[i]; in verify_degrees()
153 p[i] = get_random_float((float)(-100000.f * M_PI), (float)(100000.f * M_PI) ,d); in test_degrees()
383 p[i] = get_random_double((-100000. * M_PI), (100000. * M_PI) ,d); in test_degrees_double()
/external/aac/libFDK/include/
DFDK_trigFcts.h113 #ifndef M_PI
114 #define M_PI (3.14159265358979323846f) macro
164 residual = fMult(x, FL2FXCONST_DBL(1.0 / M_PI)); in fixp_sin_cos_residual_inline()
168 residual = fMult(residual, FL2FXCONST_DBL(M_PI / 4.0)) << 2; in fixp_sin_cos_residual_inline()
/external/speex/libspeexdsp/
Dscal.c55 #ifndef M_PI
56 #define M_PI 3.14159265358979323846 /* pi */ macro
109 st->vorbis_win[i] = sin(.5*M_PI* sin(M_PI*i/(2*frame_size))*sin(M_PI*i/(2*frame_size)) ); in speex_decorrelate_new()
235 float coef = M_PI*0.075063 * 0.93763 * amount * .8 * 0.707; in speex_decorrelate()
/external/cronet/buildtools/third_party/libc++/trunk/test/libcxx/depr/depr.c.headers/
Dmath_h.compile.pass.cpp23 # ifndef M_PI
24 # error M_PI not defined

12345678