/haiku/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/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/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 | 175 return t.rotation() * 180.0 / M_PI;
|
H A D | TransformBoxStates.cpp | 76 fMatrix.multiply(agg::trans_affine_rotation(fParent->LocalRotation() * M_PI / 180.0)); 298 fMatrix.multiply(agg::trans_affine_rotation(fParent->LocalRotation() * M_PI / 180.0)); 514 BPoint from = origin + BPoint(sinf(22.5 * 180.0 / M_PI) * 50.0, 515 -cosf(22.5 * 180.0 / M_PI) * 50.0);
|
/haiku/src/apps/diskusage/ |
H A D | DiskUsage.h | 63 #define deg2rad(x) (2.0 * M_PI * (x) / 360.0) 64 #define rad2deg(x) (360.0 * (x) / (2.0 * M_PI))
|
/haiku/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_clogf.c | 37 __imag__ result = 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_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_clog10.c | 37 __imag__ result = signbit (__real__ x) ? M_PI : 0.0;
|
H A D | s_clog.c | 37 __imag__ result = signbit (__real__ x) ? M_PI : 0.0;
|
/haiku/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/src/add-ons/screen_savers/flurry/ |
H A D | Spark.cpp | 105 const float rotationsPerSecond = (float)(2.0 * M_PI * fieldSpeed 129 colorRot = (float)(2.0 * M_PI / cycleTime); 165 thisPointInRadians = 2.0 * M_PI * (double) s->mystery / (double) BIGMYSTERY; 180 const float rotationsPerSecond = (float) (2.0*M_PI*fieldSpeed/MAXANGLES); 212 colorRot = (float)(2.0 * M_PI / cycleTime); 251 thisPointInRadians = 2.0 * M_PI * (double)s->mystery / (double)BIGMYSTERY;
|
H A D | Star.cpp | 58 float rotationsPerSecond = (float)(2.0 * M_PI * 12.0 / MAXANGLES) 86 thisPointInRadians = 2.0 * M_PI * (double) s->mystery / (double) BIGMYSTERY;
|
H A D | Texture.cpp | 107 float t = 255.0f * (float) cos(r * M_PI / 31.0); 121 t = 255.0f * (float) cos(r*M_PI/31.0);
|
/haiku/src/add-ons/screen_savers/nebula/ |
H A D | Nebula.cpp | 75 return (precos[(int)(a * 256 / M_PI) & 511]); 81 return (presin[(int)(a * 256 / M_PI) & 511]); 723 precos[i]=cos(i * M_PI / 256); 724 presin[i]=sin(i * M_PI / 256); 743 th = rand() * M_PI * 2 / RAND_MAX; 752 h = (1 + cos(r * M_PI)) * 150;
|
/haiku/src/add-ons/media/media-add-ons/equalizer/ |
H A D | Equalizer.cpp | 147 float theta = 2.0 * M_PI * f;
|
/haiku/src/tests/servers/app/transformation/ |
H A D | main.cpp | 113 transform.RotateBy(center, i * M_PI / 180.0); 175 transform.RotateBy(center, 30 * M_PI / 180.0); 203 transform.RotateBy(center, 30.0 * M_PI / 180.0); 236 transform.RotateBy(BPoint(100, 100), 30.0 * M_PI / 180.0);
|
/haiku/src/libs/glut/ |
H A D | glut_shapes.c | 57 /* Some <math.h> files do not define M_PI... */ 58 #ifndef M_PI 59 #define M_PI 3.14159265358979323846 macro 193 ringDelta = 2.0 * M_PI / rings; 194 sideDelta = 2.0 * M_PI / nsides;
|
/haiku/src/apps/icon-o-matic/generic/support/ |
H A D | support.cpp | 75 angle = angle * 180.0 / M_PI;
|
/haiku/src/add-ons/screen_savers/butterfly/ |
H A D | Butterfly.cpp | 66 fBase = drand48() * 2 * M_PI * 1000;
|
/haiku/src/tests/kits/interface/ |
H A D | ControlLookTest.cpp | 71 RotateBy(M_PI / 4);
|
/haiku/src/servers/app/drawing/Painter/ |
H A D | AGGTextRenderer.cpp | 81 (90.0 - font.Shear()) * M_PI / 180.0, 0.0); 83 -font.Rotation() * M_PI / 180.0);
|