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

12

/haiku/src/add-ons/screen_savers/simpleclock/
H A DSimpleClock.cpp106 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 DAnalogClock.cpp282 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 DCanvasTransformBox.cpp63 return t.rotation() * 180.0 / M_PI;
H A DChannelTransform.cpp142 agg::trans_affine_rotation m(degrees * M_PI / 180.0);
261 multiply(agg::trans_affine_rotation(fRotation * M_PI / 180.0));
H A DTransformGradientBox.cpp175 return t.rotation() * 180.0 / M_PI;
H A DTransformBoxStates.cpp76 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 DDiskUsage.h63 #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 Ds_cacosh.c43 ? M_PI - M_PI_4 : M_PI_4)
51 __imag__ res = copysign (signbit (__real__ x) ? M_PI : 0.0,
H A Ds_clogf.c37 __imag__ result = signbit (__real__ x) ? M_PI : 0.0;
H A Ds_clog10f.c37 __imag__ result = signbit (__real__ x) ? M_PI : 0.0;
H A Ds_cacoshf.c44 ? M_PI - M_PI_4 : M_PI_4)
52 __imag__ res = copysignf (signbit (__real__ x) ? M_PI : 0.0,
H A Ds_clog10.c37 __imag__ result = signbit (__real__ x) ? M_PI : 0.0;
H A Ds_clog.c37 __imag__ result = signbit (__real__ x) ? M_PI : 0.0;
/haiku/src/tests/kits/opengl/demos/gears/
H A Dgears.c22 #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 DSpark.cpp105 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 DStar.cpp58 float rotationsPerSecond = (float)(2.0 * M_PI * 12.0 / MAXANGLES)
86 thisPointInRadians = 2.0 * M_PI * (double) s->mystery / (double) BIGMYSTERY;
H A DTexture.cpp107 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 DNebula.cpp75 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 DEqualizer.cpp147 float theta = 2.0 * M_PI * f;
/haiku/src/tests/servers/app/transformation/
H A Dmain.cpp113 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 Dglut_shapes.c57 /* 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 Dsupport.cpp75 angle = angle * 180.0 / M_PI;
/haiku/src/add-ons/screen_savers/butterfly/
H A DButterfly.cpp66 fBase = drand48() * 2 * M_PI * 1000;
/haiku/src/tests/kits/interface/
H A DControlLookTest.cpp71 RotateBy(M_PI / 4);
/haiku/src/servers/app/drawing/Painter/
H A DAGGTextRenderer.cpp81 (90.0 - font.Shear()) * M_PI / 180.0, 0.0);
83 -font.Rotation() * M_PI / 180.0);

Completed in 183 milliseconds

12