/external/freetype/include/freetype/ |
fttrigon.h | 48 * This type is used to model angle values in FreeType. Note that the 49 * angle is a 16.16 fixed float value expressed in degrees. 61 * The angle pi expressed in @FT_Angle units. 73 * The angle 2*pi expressed in @FT_Angle units. 85 * The angle pi/2 expressed in @FT_Angle units. 97 * The angle pi/4 expressed in @FT_Angle units. 109 * Return the sinus of a given angle in fixed point format. 112 * angle :: 113 * The input angle. 119 * If you need both the sinus and cosinus for a given angle, use th 124 FT_Sin( FT_Angle angle ); variable 148 FT_Cos( FT_Angle angle ); variable 168 FT_Tan( FT_Angle angle ); variable [all...] |
/external/freetype/src/autofit/ |
afangles.c | 93 * The trick here is to realize that we don't need a very accurate angle 95 * only compare the sign of angle differences, or check whether its 108 AF_Angle angle; 121 angle = 0; 124 angle = ( AF_ANGLE_PI2 * dy ) / ( ax + ay ); 127 if ( angle >= 0 ) 128 angle = AF_ANGLE_PI - angle; 130 angle = -AF_ANGLE_PI - angle; 187 AF_Angle angle; local [all...] |
/external/webkit/Source/WebCore/platform/audio/ |
Cone.cpp | 57 // Angle between the source orientation vector and the source-listener vector 59 double angle = 180.0 * acos(dotProduct) / piDouble; local 60 double absAngle = fabs(angle); 62 // Divide by 2.0 here since API is entire angle (not half-angle)
|
/external/skia/samplecode/ |
SampleSpiral.cpp | 39 SkScalar angle = t * step; local 40 x = (20 + SkIntToScalar(i) * 5) * SkScalarSinCos(angle, &y);
|
SampleAnimatedGradient.cpp | 43 SkScalar angle = t * step; local 44 x = SkScalarSinCos(angle, &y);
|
SampleShapes.cpp | 103 SkScalar angle = SampleCode::GetAnimScalar(SkIntToScalar(180), local 108 fMatrixRefs[3]->preRotate(angle, c, c);
|
SampleCircle.cpp | 79 SkScalar angle = 0; local 81 angle += step; 82 SkScalar c, s = SkScalarSinCos(angle, &c); 88 static void rotate(SkCanvas* canvas, SkScalar angle, SkScalar px, SkScalar py) { 90 canvas->rotate(angle);
|
/external/webkit/Source/WebCore/platform/graphics/transforms/ |
RotateTransformOperation.cpp | 75 // Convert that to Axis/Angle form 80 double angle = 0; local 86 angle = rad2deg(acos(decomp.quaternionW) * 2); 92 return RotateTransformOperation::create(x, y, z, angle, ROTATE_3D);
|
RotateTransformOperation.h | 34 static PassRefPtr<RotateTransformOperation> create(double angle, OperationType type) 36 return adoptRef(new RotateTransformOperation(0, 0, 1, angle, type)); 39 static PassRefPtr<RotateTransformOperation> create(double x, double y, double z, double angle, OperationType type) 41 return adoptRef(new RotateTransformOperation(x, y, z, angle, type)); 47 double angle() const { return m_angle; } function in class:WebCore::RotateTransformOperation 71 RotateTransformOperation(double x, double y, double z, double angle, OperationType type) 75 , m_angle(angle)
|
/external/webkit/Source/WebCore/platform/gtk/ |
ScrollbarThemeGtk3.cpp | 159 gdouble angle; local 161 angle = (part == ForwardButtonEndPart || part == ForwardButtonStartPart) ? G_PI : 0; 163 angle = (part == ForwardButtonEndPart || part == ForwardButtonStartPart) ? G_PI / 2 : 3 * (G_PI / 2); 166 gtk_render_arrow(m_context, context->platformContext()->cr(), angle, arrowPoint.x(), arrowPoint.y(), arrowSize);
|
/external/webkit/Source/WebCore/svg/ |
SVGMarkerElement.cpp | 97 SVGAngle angle; local 103 angle.setValueAsString(attr->value(), ec); 107 setOrientAngleBaseValue(angle); 226 void SVGMarkerElement::setOrientToAngle(const SVGAngle& angle) 229 setOrientAngleBaseValue(angle);
|
SVGPathSegArc.h | 31 SVGPathSegArc(SVGPathElement* element, SVGPathSegRole role, float x, float y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag) 37 , m_angle(angle) 71 float angle() const { return m_angle; } function in class:WebCore::SVGPathSegArc 72 void setAngle(float angle) 74 m_angle = angle; 105 static PassRefPtr<SVGPathSegArcAbs> create(SVGPathElement* element, SVGPathSegRole role, float x, float y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag) 107 return adoptRef(new SVGPathSegArcAbs(element, role, x, y, r1, r2, angle, largeArcFlag, sweepFlag)); 111 SVGPathSegArcAbs(SVGPathElement* element, SVGPathSegRole role, float x, float y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag) 112 : SVGPathSegArc(element, role, x, y, r1, r2, angle, largeArcFlag, sweepFlag) 122 static PassRefPtr<SVGPathSegArcRel> create(SVGPathElement* element, SVGPathSegRole role, float x, float y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag [all...] |
SVGRadialGradientElement.cpp | 243 float angle = atan2f(deltaY, deltaX); local 245 deltaX = cosf(angle) * radiusMax; 246 deltaY = sinf(angle) * radiusMax;
|
SVGTransform.h | 54 float angle() const { return m_angle; } function in class:WebCore::SVGTransform 60 void setRotate(float angle, float cx, float cy); 61 void setSkewX(float angle); 62 void setSkewY(float angle);
|
SVGAnimateMotionElement.cpp | 207 float angle = path.normalAngleAtLength(positionOnPath, ok); local 209 angle += 180; 210 transform->rotate(angle);
|
/external/webkit/Source/WebCore/rendering/svg/ |
RenderSVGResourceMarker.cpp | 103 float RenderSVGResourceMarker::angle() const function in class:WebCore::RenderSVGResourceMarker 108 float angle = -1; local 110 angle = marker->orientAngle().value(); 112 return angle; 120 float markerAngle = angle();
|
SVGMarkerData.h | 58 double angle = 0; local 61 angle = outslope; 64 angle = (inslope + outslope) / 2; 67 angle = inslope; 74 return narrowPrecisionToFloat(angle);
|
/development/ndk/platforms/android-9/samples/native-activity/jni/ |
main.c | 36 float angle; member in struct:saved_state 117 engine->state.angle = 0; 138 glClearColor(((float)engine->state.x)/engine->width, engine->state.angle, 296 engine.state.angle += .01f; 297 if (engine.state.angle > 1) { 298 engine.state.angle = 0;
|
/external/webrtc/src/modules/audio_processing/main/test/android/apmtest/jni/ |
main.c | 36 float angle; member in struct:saved_state 117 engine->state.angle = 0; 138 glClearColor(((float)engine->state.x)/engine->width, engine->state.angle, 296 engine.state.angle += .01f; 297 if (engine.state.angle > 1) { 298 engine.state.angle = 0;
|
/frameworks/base/libs/ui/tests/ |
InputEvent_test.cpp | 524 // Each point 'i' is a point on a circle of radius ROTATION centered at (3,2) at an angle 527 // and check rotation. We set the orientation to the same angle. 538 float angle = float(i * ARC * PI_180); local 542 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, sinf(angle) * RADIUS + 3); 543 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_Y, -cosf(angle) * RADIUS + 2); 544 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_ORIENTATION, angle); 570 float angle = float((i * ARC + ROTATION) * PI_180); local 571 ASSERT_NEAR(sinf(angle) * RADIUS, event.getX(i), 0.001); 572 ASSERT_NEAR(-cosf(angle) * RADIUS, event.getY(i), 0.001); 573 ASSERT_NEAR(tanf(angle), tanf(event.getOrientation(i)), 0.1) [all...] |
/frameworks/base/opengl/tests/gldual/src/com/android/gldual/ |
TriangleRenderer.java | 84 float angle = 0.090f * ((int) time); local 86 gl.glRotatef(angle, 0, 0, 1.0f);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
SweepGradient_Delegate.java | 170 // compute angle from each point to the center, and figure out the distance from 190 float angle; local 192 angle = (float) (dy < 0 ? 3 * Math.PI / 2 : Math.PI / 2); 194 angle = (float) (dx < 0 ? Math.PI : 0); 196 angle = (float) Math.atan(dy / dx); 199 angle += Math.PI * 2; 202 angle += Math.PI; 207 data[index++] = getGradientColor((float) (angle / (2 * Math.PI)));
|
/packages/apps/Browser/src/com/android/browser/ |
UrlBarAutoShowManager.java | 125 float angle = (float) Math.atan2(ady, adx); local 126 if (dy > mSlop && angle > V_TRIGGER_ANGLE
|
/packages/apps/Phone/src/com/android/phone/ |
AccelerometerListener.java | 124 // compute the vertical angle 125 double angle = Math.atan2(xy, z); local 127 angle = angle * 180.0 / Math.PI; 128 int orientation = (angle > VERTICAL_ANGLE ? ORIENTATION_VERTICAL : ORIENTATION_HORIZONTAL); 129 if (VDEBUG) Log.d(TAG, "angle: " + angle + " orientation: " + orientation);
|
/packages/apps/SoundRecorder/src/com/android/soundrecorder/ |
VUMeter.java | 78 float angle = minAngle; local 80 angle += (float)(maxAngle - minAngle)*mRecorder.getMaxAmplitude()/32768; 82 if (angle > mCurrentAngle) 83 mCurrentAngle = angle; 85 mCurrentAngle = Math.max(angle, mCurrentAngle - DROPOFF_STEP);
|