| /external/quake/quake/src/WinQuake/ |
| r_bsp.cpp | 81 float angle, s, c, temp1[3][3], temp2[3][3], temp3[3][3];
local 89 angle = currententity->angles[YAW];
90 angle = angle * M_PI*2 / 360;
91 s = sin(angle);
92 c = cos(angle);
106 angle = currententity->angles[PITCH];
107 angle = angle * M_PI*2 / 360;
108 s = sin(angle);
[all...] |
| r_part.cpp | 129 float angle; local 146 angle = cl.time * avelocities[i][0]; 147 sy = sin(angle); 148 cy = cos(angle); 149 angle = cl.time * avelocities[i][1]; 150 sp = sin(angle); 151 cp = cos(angle); 152 angle = cl.time * avelocities[i][2]; 153 sr = sin(angle); 154 cr = cos(angle); [all...] |
| /external/replicaisland/src/com/replica/replicaisland/ |
| LaunchProjectileComponent.java | 152 final float angle = (float)(Math.random() * mThetaError * Math.PI * 2.0f); local 153 mWorkingVector.x = (float)Math.sin(angle); 154 mWorkingVector.y = (float)Math.cos(angle);
|
| /external/webkit/Source/WebCore/platform/graphics/openvg/ |
| PathOpenVG.cpp | 253 double angle = (piDouble - fabs(asin(cross / (d01 * d21)))) * 0.5; local 254 double span = radius * tan(angle); 307 // The OpenVG spec says nothing about inf as radius or start/end angle. 313 // For some reason, the HTML 5 spec defines the angle as going clockwise 315 // So let's make it a proper angle in order to keep sanity. 334 // (x,y) = (cos rot, -sin rot; sin rot, -cos rot) * (rh * cos angle, rv * sin angle) + (center.x, center.y) 336 // (x,y) = (1, 0; 0, -1) * (rh * cos angle, rv * sin angle) + (center.x, center.y) 337 // = (1 * rh * cos angle + 0 * rv * sin angle, 0 * rh * cos angle + -1 * rv * sin angle) + (center.x, center.y [all...] |
| /external/webkit/Source/WebCore/platform/graphics/qt/ |
| PathQt.cpp | 222 // angle between orth_p1p0 and p1p2 to get the right vector orthographic to p1p0 424 qreal angle = m_path.angleAtPercent(percent); local 426 // Normalize angle value. 427 // QPainterPath returns angle values with the origo being at the top left corner. 428 // In case of moveTo(0, 0) and addLineTo(0, 10) the angle is 270, 432 if (angle > 0) 433 angle = 360 - angle; 434 return angle;
|
| /external/webkit/Source/WebCore/rendering/svg/ |
| SVGTextLayoutEngine.cpp | 497 float angle = 0; local 501 angle = newAngle; 504 // Calculate glyph orientation angle. 575 angle = m_textPath.normalAngleAtLength(textPathOffset, ok); 578 // For vertical text on path, the actual angle has to be rotated 90 degrees anti-clockwise, not the orientation angle! 580 angle -= 90; 604 if (!shouldStartNewFragment && (angle || angle != lastAngle || orientationAngle)) 628 if (angle) [all...] |
| /packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/actions/ |
| RotateView.java | 30 * View that shows grids and handles touch-events to adjust angle of rotation. 156 float angle; local 158 angle = (y >= 0) ? MATH_HALF_PI : -MATH_HALF_PI; 160 angle = (float) Math.atan(y / x); 163 if ((angle >= 0) && (x < 0)) { 164 angle = angle - MATH_PI; 165 } else if ((angle < 0) && (x < 0)) { 166 angle = MATH_PI + angle; [all...] |
| /development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
| MatrixPaletteRenderer.java | 345 float angle = unitAngle * 135f; local 357 // matrix 1: rotate by "angle" 358 gl.glRotatef(angle, 0, 0, 1.0f); 393 double angle = Math.PI * 2 * i / uSteps; local 394 float x = radius * (float) Math.cos(angle); 396 float z = radius * (float) Math.sin(angle);
|
| /development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
| SpriteTextRenderer.java | 185 float angle = 0.090f * ((int) time); local 187 gl.glRotatef(angle, 0, 0, 1.0f);
|
| /external/qemu/android/ |
| hw-sensors.c | 626 const double angle = 20.0; local 627 const double cos_angle = cos(angle/M_PI); 628 const double sin_angle = sin(angle/M_PI);
|
| /external/webkit/Source/WebCore/css/ |
| CSSGradientValue.cpp | 474 // Compute the endpoints so that a gradient of the given angle covers a box of the given size. 538 float angle = m_angle->getFloatValue(CSSPrimitiveValue::CSS_DEG); local 539 endPointsFromAngle(angle, size, firstPoint, secondPoint); [all...] |
| /external/webkit/Source/WebCore/platform/gtk/ |
| RenderThemeGtk3.cpp | 787 gdouble angle; local 789 angle = 0; 793 angle = G_PI [all...] |
| /frameworks/base/core/java/android/gesture/ |
| GestureUtils.java | 451 final double angle = Math.atan(tan); local 452 if (numOrientations > 2 && Math.abs(angle) >= Math.PI / numOrientations) { 455 final double cosine = Math.cos(angle); 505 float angle; local 507 angle = (float) -Math.PI/2; 509 angle = (float) Math.atan2(targetVector[1], targetVector[0]); 510 rotate(points, -angle); 534 return new OrientedBoundingBox((float) (angle * 180 / Math.PI), centroid[0], centroid[1], maxx - minx, maxy - miny); 563 static float[] rotate(float[] points, float angle) { 564 float cos = (float) Math.cos(angle); [all...] |
| /packages/apps/Browser/src/com/android/browser/view/ |
| PieMenu.java | 63 public void layout(int anchorX, int anchorY, boolean onleft, float angle); 209 float angle = emptyangle + sweep / 2; local 218 int x = (int) (r * Math.sin(angle)); 219 int y = mCenter.y - (int) (r * Math.cos(angle)) - h / 2; 226 float itemstart = angle - sweep / 2; 231 angle += sweep; 243 * @param angle from 0..PI to Android degrees (clockwise starting at 3 245 * @return skia angle 247 private float getDegrees(double angle) { 248 return (float) (270 - 180 * angle / Math.PI) [all...] |
| /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
| GCWrapper.java | 564 // Compute angle: 567 double angle = Math.atan2(dy, dx); local 570 // Imagine a line of the same length as the arrow, but with angle 0. 577 int rx = (int) (Math.cos(angle) * (ax-x1) - Math.sin(angle) * (ay-y1) + x1); 578 int ry = (int) (Math.sin(angle) * (ax-x1) + Math.cos(angle) * (ay-y1) + y1); 582 rx = (int) (Math.cos(angle) * (ax-x1) - Math.sin(angle) * (ay-y1) + x1); 583 ry = (int) (Math.sin(angle) * (ax-x1) + Math.cos(angle) * (ay-y1) + y1) [all...] |
| /cts/tests/tests/openglperf/src/android/openglperf/cts/ |
| PlanetsRenderer.java | 166 float angle = 0.090f * ((int) (currentTime % 4000L)); local 167 Matrix.setRotateM(mMMatrix, 0, angle, 0, 0, 1.0f);
|
| /external/icu4c/i18n/ |
| astro.cpp | 218 * Normalize an angle so that it's in the range 0 - 2pi. 219 * For positive angles this is just (angle % 2pi), but the Java 222 inline static double norm2PI(double angle) { 223 return normalize(angle, CalendarAstronomer::PI * 2.0); 227 * Normalize an angle into the range -PI - PI 229 inline static double normPI(double angle) { 230 return normalize(angle + CalendarAstronomer::PI, CalendarAstronomer::PI * 2.0) - CalendarAstronomer::PI; 504 double H = getLocalSidereal()*CalendarAstronomer::PI/12 - equatorial.ascension; // Hour-angle 918 // // where 15 degrees corresponds to one hour. Since LST really is an angle, 1309 double angle = func.eval(*this); local 1373 double angle = ::acos(-tanL * ::tan(pos.declination)); local [all...] |
| /external/libpng/contrib/gregbook/ |
| rpng2-win.c | 946 double angle=0.0, aoffset=0.0, maxDist, dist; local [all...] |
| /external/opencv/cv/src/ |
| cvsurf.cpp | 347 float X[81], Y[81], angle[81]; local 352 CvMat _angle = cvMat(1, 81, CV_32F, angle); 392 int d = abs(cvRound(angle[j]) - i);
|
| /external/opencv/cxcore/src/ |
| cxmathfuncs.cpp | 102 (const float *__y, const float *__x, float *angle, int len ), (__y, __x, angle, len) ) 107 if( !(y && x && angle && len >= 0) ) 161 angle[i] = z0; 162 angle[i+1] = z1; 163 angle[i+2] = z2; 164 angle[i+3] = z3; 170 angle[i] = cvFastArctan( __y[i], __x[i] ); 332 CvMat anglestub, *angle = (CvMat*)anglearr; local 367 if( angle ) 572 CvMat anglestub, *angle = (CvMat*)anglearr; local [all...] |
| /external/qemu/android/skin/ |
| trackball.c | 102 double angle; member in struct:__anon9481 130 rot->angle = len * ANGLE_FACTOR; 144 cs = cos( rot->angle ); 145 sn = sin( rot->angle );
|
| /external/webkit/Source/WebCore/platform/graphics/transforms/ |
| TransformationMatrix.cpp | 412 // will leave the Euler angle code here for now. 468 double angle; local 474 angle = ax * bx + ay * by + az * bz + aw * bw; 476 if (angle < 0.0) { 479 angle = -angle; 482 if (angle + 1.0 > .05) { 483 if (1.0 - angle >= .05) { 484 th = acos (angle); 648 TransformationMatrix& TransformationMatrix::rotate3d(double x, double y, double z, double angle) [all...] |
| /external/webkit/Source/WebCore/platform/graphics/wince/ |
| PlatformPathWinCE.cpp | 37 void getEllipsePointByAngle(double angle, double a, double b, float& x, float& y); 125 static void normalizeAngle(float& angle) 127 angle = fmod(angle, 2 * piFloat); 128 if (angle < 0) 129 angle += 2 * piFloat; 130 if (angle < 0.00001f) 131 angle = 0; 194 double angle() const { return atan2(m_y, m_x); } function in struct:WebCore::PathVector 195 operator double () const { return angle(); } 673 double angle = (piDouble - fabs(asin(cross \/ (d01 * d21)))) * 0.5; local [all...] |
| /packages/apps/Launcher2/src/com/android/launcher2/ |
| RocketLauncher.java | 96 public float angle, anglex, angley; field in class:RocketLauncher.Board.FlyingIcon 173 "icon", getX(), getY(), v, angle, dist, fuse); 183 angle = randfrange(0, 360f); 184 anglex = (float) Math.sin(angle / 180. * Math.PI); 185 angley = (float) Math.cos(angle / 180. * Math.PI); 198 setRotation(180-angle);
|
| /packages/wallpapers/Basic/src/com/android/wallpaper/polarclock/ |
| PolarClockWallpaper.java | 495 float angle; local 501 angle = (float) (millis % 60000) / 60000.0f; 502 //Log.d("PolarClock", "millis=" + millis + ", angle=" + angle); 503 paint.setColor(mPalette.getSecondColor(angle)); 509 c.drawArc(rect, 0.0f, angle * 360.0f, false, paint); 516 angle = ((calendar.minute * 60.0f + calendar.second) % 3600) / 3600.0f; 517 paint.setColor(mPalette.getMinuteColor(angle)); 523 c.drawArc(rect, 0.0f, angle * 360.0f, false, paint); 529 angle = ((calendar.hour * 60.0f + calendar.minute) % 1440) / 1440.0f [all...] |