/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/skia/gm/ |
polygons.cpp | 50 SkScalar angle = 2 * SK_ScalarPI * i / SK_ARRAY_COUNT(p4); variable 51 p4[i].set(20 * SkScalarCos(angle) + 20, 20 * SkScalarSin(angle) + 20);
|
/frameworks/base/core/java/android/view/ |
OrientationEventListener.java | 125 // Don't trust the angle if the magnitude is small compared to the y value 128 float angle = (float)Math.atan2(-Y, X) * OneEightyOverPi; local 129 orientation = 90 - (int)Math.round(angle);
|
/frameworks/ex/carousel/java/com/android/ex/carousel/ |
CarouselController.java | 591 * Sets the startAngle for the Carousel. The start angle is the first position of the first 592 * slot draw. Cards will be drawn from this angle in a counter-clockwise manner around the 595 * @param angle the angle, in radians. 597 public void setStartAngle(float angle) 599 mStartAngle = angle; 601 mRenderScript.setStartAngle(angle); 606 * Set the current carousel rotation angle, in card units. 613 * @param angle 615 public void setCarouselRotationAngle(float angle) { [all...] |
/packages/wallpapers/Basic/src/com/android/wallpaper/galaxy/ |
galaxy.rs | 29 static float angle = 50.f; 128 angle = 0.0f; 151 float a = offset * angle;
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
GCWrapper.java | 589 // Compute angle: 592 double angle = Math.atan2(dy, dx); local 595 // Imagine a line of the same length as the arrow, but with angle 0. 602 int rx = (int) (Math.cos(angle) * (ax-x1) - Math.sin(angle) * (ay-y1) + x1); 603 int ry = (int) (Math.sin(angle) * (ax-x1) + Math.cos(angle) * (ay-y1) + y1); 607 rx = (int) (Math.cos(angle) * (ax-x1) - Math.sin(angle) * (ay-y1) + x1); 608 ry = (int) (Math.sin(angle) * (ax-x1) + Math.cos(angle) * (ay-y1) + y1) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib-tk/ |
turtle.py | 268 a.rotate(angle) rotation 287 def rotate(self, angle): 288 """rotate self counterclockwise by angle 291 angle = angle * math.pi / 180.0 292 c, s = math.cos(angle), math.sin(angle) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib-tk/ |
turtle.py | 268 a.rotate(angle) rotation 287 def rotate(self, angle): 288 """rotate self counterclockwise by angle 291 angle = angle * math.pi / 180.0 292 c, s = math.cos(angle), math.sin(angle) [all...] |
/external/jmonkeyengine/engine/src/android/jme3tools/android/ |
Fixed.java | 217 * Sine of an angle. 239 * Cosine of an angle. 261 * Tangent of an angle. 270 * Returns the arc tangent of an angle. 288 * Returns the polar angle of a rectangular coordinate.
|
/packages/wallpapers/Basic/src/com/android/wallpaper/fall/ |
fall.rs | 82 float angle; 111 leaf->angle = rsRand(0.0f, 360.0f); 193 float r = leaf->angle; 262 leaf->angle = r; 267 leaf->angle = r;
|
/external/ceres-solver/include/ceres/ |
rotation.h | 79 // Convert a value in combined axis-angle representation to a quaternion. 80 // The value angle_axis is a triple whose norm is an angle in radians, 88 // Convert a quaternion to the equivalent combined axis-angle representation. 90 // and angle_axis will be filled with a value whose norm is the angle of 98 // axis-angle rotation representations. Templated for use with 117 // Euler angle (in degrees) rotation representations. 265 // means that angle for the angle_axis vector which is 2 * theta 269 // result in a normalized angle-axis vector. 297 // The conversion of a rotation matrix to the angle-axis form is 298 // numerically problematic when then rotation angle is close to zer [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vega/ |
arc.c | 139 /* Convert rotation angle from degrees to radians */ 170 /* Convert rotation angle from degrees to radians */ 230 double angle; local 276 angle = vector_angles(vec0, vec1); 279 angle = 2*M_PI - vector_angles(vec0, vec1); 283 if (isnan(angle)) 284 angle = M_PI; 289 lambda2 = lambda1 - angle; 291 lambda2 = lambda1 + angle; 294 debug_printf("Angle is %f and (%f, %f)\n", angle, lambda1, lambda2) [all...] |
matrix.h | 210 VGfloat angle) 217 if (floatsEqual(angle, 90) || floatsEqual(angle, -270)) 219 else if (floatsEqual(angle, 270) || floatsEqual(angle, -90)) 221 else if (floatsEqual(angle, 180)) 224 float radians = DEGREES_TO_RADIANS(angle);
|
/external/mesa3d/src/gallium/state_trackers/vega/ |
arc.c | 139 /* Convert rotation angle from degrees to radians */ 170 /* Convert rotation angle from degrees to radians */ 230 double angle; local 276 angle = vector_angles(vec0, vec1); 279 angle = 2*M_PI - vector_angles(vec0, vec1); 283 if (isnan(angle)) 284 angle = M_PI; 289 lambda2 = lambda1 - angle; 291 lambda2 = lambda1 + angle; 294 debug_printf("Angle is %f and (%f, %f)\n", angle, lambda1, lambda2) [all...] |
matrix.h | 210 VGfloat angle) 217 if (floatsEqual(angle, 90) || floatsEqual(angle, -270)) 219 else if (floatsEqual(angle, 270) || floatsEqual(angle, -90)) 221 else if (floatsEqual(angle, 180)) 224 float radians = DEGREES_TO_RADIANS(angle);
|
/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...] |
GestureOverlayView.java | 644 float angle = Math.abs(box.orientation); local 645 if (angle > 90) { 646 angle = 180 - angle; 651 angle < mGestureStrokeAngleThreshold : 652 angle > mGestureStrokeAngleThreshold)) {
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
IndicatorControlWheel.java | 54 // and end angle. In addition, these indicators for the second-level hidden 55 // in the same wheel with larger angle values are visible after rotation. 182 // The angle(in radians) of each icon for touch events. 203 // The delta is the angle of touch point in radians. 380 // Set the angle of each component in the first-level indicator wheel. 491 // Compute the start angle and sweep angle.
|
/external/chromium_org/third_party/freetype/src/base/ |
ftstroke.c | 531 FT_Angle total, angle, step, rotate, next, theta; local 543 angle = angle_start; 555 next = angle + step; 571 FT_Vector_From_Polar( &a2, length, angle + rotate ); 587 angle = next; 904 FT_Angle angle, 913 stroker->angle_in = angle; 914 stroker->angle_out = angle + FT_ANGLE_PI; 927 FT_Vector_From_Polar( &delta2, radius, angle + rotate ); 928 FT_Vector_From_Polar( &delta, radius, angle ); 1285 FT_Angle angle; local [all...] |
/external/freetype/src/base/ |
ftstroke.c | 531 FT_Angle total, angle, step, rotate, next, theta; local 543 angle = angle_start; 555 next = angle + step; 571 FT_Vector_From_Polar( &a2, length, angle + rotate ); 587 angle = next; 904 FT_Angle angle, 913 stroker->angle_in = angle; 914 stroker->angle_out = angle + FT_ANGLE_PI; 927 FT_Vector_From_Polar( &delta2, radius, angle + rotate ); 928 FT_Vector_From_Polar( &delta, radius, angle ); 1285 FT_Angle angle; local [all...] |
/development/ndk/platforms/android-9/samples/native-plasma/jni/ |
plasma.c | 80 typedef int32_t Angle; 93 #define ANGLE_FROM_FLOAT(x) (Angle)((x)*ANGLE_PI/M_PI) 97 # define ANGLE_FROM_FIXED(x) (Angle)((x) >> (FIXED_BITS - ANGLE_BITS)) 100 # define ANGLE_FROM_FIXED(x) (Angle)((x) << (ANGLE_BITS - FIXED_BITS)) 115 static __inline__ Fixed angle_sin( Angle a ) 120 static __inline__ Fixed angle_cos( Angle a )
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/shapes/ |
PolygonShape.cpp | 122 float angle = (startAngle > endAngle) ? (startAngle - endAngle) : (startAngle + twoPI - endAngle); local 124 float arcSegmentAngle = ((padding) ? -angle : twoPI - angle) / arcSegmentCount; 128 float angle = startAngle + arcSegmentAngle * i; local 129 vertices.append(arcCenter + FloatPoint(cos(angle) * arcRadius, sin(angle) * arcRadius));
|
/external/chromium_org/v8/benchmarks/spinning-balls/ |
v.js | 312 this.angle = 0; 318 var rx = x * Math.cos(this.angle) - z * Math.sin(this.angle); 320 var rz = x * Math.sin(this.angle) + z * Math.cos(this.angle); 358 this.angle += Math.PI / 90.0;
|
/external/qemu/distrib/sdl-1.2.15/docs/html/ |
guidevideoopengl.html | 312 * viewing position/angle. 352 /* Our angle of rotation. */ 353 static float angle = 0.0f; 395 glRotatef( angle, 0.0, 1.0, 0.0 ); 399 if( ++angle > 360.0f ) { 400 angle = 0.0f;
|
/external/v8/benchmarks/spinning-balls/ |
v.js | 312 this.angle = 0; 318 var rx = x * Math.cos(this.angle) - z * Math.sin(this.angle); 320 var rz = x * Math.sin(this.angle) + z * Math.cos(this.angle); 358 this.angle += Math.PI / 90.0;
|