/haiku-fatelf/src/add-ons/translators/exr/openexr/imath/ |
H A D | ImathPlatform.h | 52 #ifndef M_PI 53 #define M_PI 3.14159265358979323846 macro
|
H A D | ImathEuler.h | 836 angle = fmod(T (angle), T (2 * M_PI)); 838 if (angle < -M_PI) angle += 2 * M_PI; 839 if (angle > +M_PI) angle -= 2 * M_PI; 866 otherXyzRot[i] = M_PI+xyzRot[i]; 867 otherXyzRot[j] = M_PI-xyzRot[j]; 868 otherXyzRot[k] = M_PI+xyzRot[k];
|
/haiku-fatelf/src/bin/gdb/libiberty/ |
H A D | _doprnt.c | 215 #ifndef M_PI 216 #define M_PI (3.1415926535897932385) macro 268 RESULT(checkit ("<%4f><%.4f><%%><%4.4f>\n", M_PI, M_PI, M_PI)); 269 RESULT(printf ("<%4f><%.4f><%%><%4.4f>\n", M_PI, M_PI, M_PI)); 271 RESULT(checkit ("<%*f><%.*f><%%><%*.*f>\n", 3, M_PI, 3, M_PI, [all...] |
/haiku-fatelf/src/add-ons/screen_savers/simpleclock/ |
H A D | SimpleClock.cpp | 106 for(int mark = 0; mark < 60; mark++, markAngle += (2 * M_PI) / 60) { 117 for (int mark = 0; mark < 12; mark++, markAngle += (2 * M_PI) / 12) { 125 ((2 * M_PI / 60) * minuteVal) - (M_PI / 2), 220 * zoom, 1, 8 * zoom); 128 ((2 * M_PI / 12) * hourVal) - (M_PI / 2), 140 * zoom, 1, 14 * zoom); 134 ((2 * M_PI / 60) * secondVal) - (M_PI / 2), 240 * zoom, 1, 4 * zoom); 148 float blockAngles[4] = {alpha - (M_PI / 12), alpha + (M_PI / 1 [all...] |
/haiku-fatelf/src/preferences/time/ |
H A D | AnalogClock.cpp | 282 float x1 = fCenterX + sinf(minute * M_PI / 30.0) * fRadius; 283 float y1 = fCenterY + cosf(minute * M_PI / 30.0) * fRadius; 284 float x2 = fCenterX + sinf(minute * M_PI / 30.0) * (fRadius * 0.95); 285 float y2 = fCenterY + cosf(minute * M_PI / 30.0) * (fRadius * 0.95); 295 float x1 = fCenterX + sinf(hour * M_PI / 6.0) * fRadius; 296 float y1 = fCenterY + cosf(hour * M_PI / 6.0) * fRadius; 297 float x2 = fCenterX + sinf(hour * M_PI / 6.0) * (fRadius * 0.9); 298 float y2 = fCenterY + cosf(hour * M_PI / 6.0) * (fRadius * 0.9); 358 float hoursExact = 6.0 * pointPhi / M_PI; 376 float minutesExact = 30.0 * pointPhi / M_PI; [all...] |
/haiku-fatelf/src/apps/icon-o-matic/transformable/ |
H A D | CanvasTransformBox.cpp | 63 return t.rotation() * 180.0 / M_PI;
|
H A D | ChannelTransform.cpp | 142 agg::trans_affine_rotation m(degrees * M_PI / 180.0); 261 multiply(agg::trans_affine_rotation(fRotation * M_PI / 180.0));
|
H A D | TransformGradientBox.cpp | 174 return t.rotation() * 180.0 / M_PI;
|
/haiku-fatelf/src/apps/diskusage/ |
H A D | DiskUsage.h | 66 #define deg2rad(x) (2.0 * M_PI * (x) / 360.0) 67 #define rad2deg(x) (360.0 * (x) / (2.0 * M_PI))
|
/haiku-fatelf/src/system/libroot/posix/glibc/arch/generic/ |
H A D | s_cacosh.c | 43 ? M_PI - M_PI_4 : M_PI_4) 51 __imag__ res = __copysign (signbit (__real__ x) ? M_PI : 0.0,
|
H A D | s_clog10f.c | 37 __imag__ result = signbit (__real__ x) ? M_PI : 0.0;
|
H A D | s_clogf.c | 37 __imag__ result = signbit (__real__ x) ? M_PI : 0.0;
|
H A D | s_cacoshf.c | 44 ? M_PI - M_PI_4 : M_PI_4) 52 __imag__ res = __copysignf (signbit (__real__ x) ? M_PI : 0.0,
|
H A D | s_clog.c | 37 __imag__ result = signbit (__real__ x) ? M_PI : 0.0;
|
H A D | s_clog10.c | 37 __imag__ result = signbit (__real__ x) ? M_PI : 0.0;
|
/haiku-fatelf/src/add-ons/media/plugins/ac3_decoder/liba52/ |
H A D | imdct.c | 34 #ifndef M_PI 35 #define M_PI 3.1415926535897932384626433832795029 macro 372 sum += besselI0 (i * (256 - i) * (5 * M_PI / 256) * (5 * M_PI / 256)); 380 roots16[i] = cos ((M_PI / 8) * (i + 1)); 383 roots32[i] = cos ((M_PI / 16) * (i + 1)); 386 roots64[i] = cos ((M_PI / 32) * (i + 1)); 389 roots128[i] = cos ((M_PI / 64) * (i + 1)); 393 pre1[i].real = cos ((M_PI / 256) * (k - 0.25)); 394 pre1[i].imag = sin ((M_PI / 25 [all...] |
/haiku-fatelf/src/tests/kits/opengl/demos/gears/ |
H A D | gears.c | 22 #ifndef M_PI 23 #define M_PI 3.14159265 macro 61 da = 2.0 * M_PI / teeth / 4.0; 70 angle = i * 2.0 * M_PI / teeth; 82 da = 2.0 * M_PI / teeth / 4.0; 84 angle = i * 2.0 * M_PI / teeth; 98 angle = i * 2.0 * M_PI / teeth; 110 da = 2.0 * M_PI / teeth / 4.0; 112 angle = i * 2.0 * M_PI / teeth; 124 angle = i * 2.0 * M_PI / teet [all...] |
/haiku-fatelf/src/add-ons/screen_savers/flurry/ |
H A D | Spark.cpp | 97 const float rotationsPerSecond = (float) (2.0*M_PI*fieldSpeed/MAXANGLES);
127 colorRot = (float) (2.0*M_PI/cycleTime);
170 thisPointInRadians = 2.0 * M_PI * (double) s->mystery / (double) BIGMYSTERY;
183 const float rotationsPerSecond = (float) (2.0*M_PI*fieldSpeed/MAXANGLES);
216 colorRot = (float) (2.0*M_PI/cycleTime);
253 thisPointInRadians = 2.0 * M_PI * (double) s->mystery / (double) BIGMYSTERY;
|
H A D | Star.cpp | 52 float rotationsPerSecond = (float) (2.0*M_PI*12.0/MAXANGLES) * s->rotSpeed;
71 thisPointInRadians = 2.0 * M_PI * (double) s->mystery / (double) BIGMYSTERY;
|
H A D | Texture.cpp | 114 t = 255.0f * (float) cos(r*M_PI/31.0);
133 t = 255.0f * (float) cos(r*M_PI/31.0);
|
/haiku-fatelf/src/add-ons/translators/exr/openexr/ilmimf/ |
H A D | ImfEnvmap.cpp | 75 latitude = -M_PI * 86 longitude = -2 * M_PI * 102 float x = latLong.y / (-2 * M_PI) + 0.5f; 103 float y = latLong.x / -M_PI + 0.5f;
|
/haiku-fatelf/src/libs/fluidsynth/src/ |
H A D | fluid_chorus.c | 172 chorus->sinc_table[i][ii] = (fluid_real_t)sin(i_shifted * M_PI) / (M_PI * i_shifted); 174 chorus->sinc_table[i][ii] *= (fluid_real_t)0.5 * (1.0 + cos(2.0 * M_PI * i_shifted / (fluid_real_t)INTERPOLATION_SAMPLES)); 576 val = sin((double) i / (double)len * 2.0 * M_PI);
|
/haiku-fatelf/src/add-ons/translators/hpgs/lib/ |
H A D | hpgspath.c | 39 #ifndef M_PI 40 #define M_PI 3.14159265358979323846264338327950288 macro 352 double ca = cos (angle*M_PI/180.0); 353 double sa = sin (angle*M_PI/180.0); 584 angle1 = atan2(p1->y-center->y,p1->x-center->x)*180.0/M_PI; 585 angle2 = atan2(p2->y-center->y,p2->x-center->x)*180.0/M_PI; 591 // This is necessary, because atan2 breaks at M_PI. 596 // This is necessary, because atan2 breaks at M_PI. 621 seg_alpha_2 = 0.5*M_PI/180.0*sweep/nseg; 640 a=M_PI/180. [all...] |
/haiku-fatelf/src/add-ons/media/media-add-ons/equalizer/ |
H A D | Equalizer.cpp | 147 float theta = 2.0 * M_PI * f;
|
/haiku-fatelf/src/libs/glut/ |
H A D | glut_shapes.c | 55 /* Some <math.h> files do not define M_PI... */ 56 #ifndef M_PI 57 #define M_PI 3.14159265358979323846 macro 191 ringDelta = 2.0 * M_PI / rings; 192 sideDelta = 2.0 * M_PI / nsides;
|