Home
last modified time | relevance | path

Searched refs:radians (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/
DPoint.java103 public Point rotated(float radians) { in rotated() argument
105 return new Point((float)(Math.cos(radians) * x - Math.sin(radians) * y), in rotated()
106 (float)(Math.sin(radians) * x + Math.cos(radians) * y)); in rotated()
109 public Point rotatedAround(Point center, float radians) { in rotatedAround() argument
110 return this.minus(center).rotated(radians).plus(center); in rotatedAround()
/frameworks/rs/script_api/
Drs_math.spec189 Returns the inverse cosine, in radians.
212 Returns the inverse hyperbolic cosine, in radians.
235 Returns the inverse cosine in radians, divided by pi.
260 Returns the inverse sine, in radians.
283 Returns the inverse hyperbolic sine, in radians.
306 Returns the inverse sine in radians, divided by pi.
331 Returns the inverse tangent, in radians.
355 Returns the inverse tangent of <code>(numerator / denominator)</code>, in radians.
380 Returns the inverse tangent of <code>(numerator / denominator)</code>, in radians, divided by pi.
406 Returns the inverse hyperbolic tangent, in radians.
[all …]
/frameworks/base/graphics/java/android/graphics/
DColorMatrix.java146 double radians = degrees * Math.PI / 180d; in setRotate() local
147 float cosine = (float) Math.cos(radians); in setRotate()
148 float sine = (float) Math.sin(radians); in setRotate()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/
DLocationFudgerTest.java157 double radians = mRandom.nextDouble() * 2 * Math.PI; in step() local
158 double deltaXM = Math.cos(radians) * distanceM; in step()
159 double deltaYM = Math.sin(radians) * distanceM; in step()
/frameworks/base/core/java/android/util/
DMathUtils.java135 public static float radians(float degrees) { in radians() method in MathUtils
139 public static float degrees(float radians) { in degrees() argument
140 return radians * RAD_TO_DEG; in degrees()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyButtonDrawable.java283 final float radians = (float) (mState.mRotateDegrees * Math.PI / 180); in draw() local
284 final float shadowOffsetX = (float) (Math.sin(radians) * mState.mShadowOffsetY in draw()
285 + Math.cos(radians) * mState.mShadowOffsetX) - mState.mTranslationX; in draw()
286 final float shadowOffsetY = (float) (Math.cos(radians) * mState.mShadowOffsetY in draw()
287 - Math.sin(radians) * mState.mShadowOffsetX) - mState.mTranslationY; in draw()
/frameworks/base/media/tests/SoundPoolTest/src/com/android/
DSoundPoolTest.java320 double radians = PI_OVER_2 * count / 100.0; in TestVolume() local
321 float leftVolume = (float) Math.sin(radians); in TestVolume()
322 float rightVolume = (float) Math.cos(radians); in TestVolume()
/frameworks/rs/script_api/include/
Drs_math.rsh202 * Returns the inverse cosine, in radians.
241 * Returns the inverse hyperbolic cosine, in radians.
280 * Returns the inverse cosine in radians, divided by pi.
321 * Returns the inverse sine, in radians.
360 * Returns the inverse hyperbolic sine, in radians.
399 * Returns the inverse sine in radians, divided by pi.
440 * Returns the inverse tangent, in radians.
479 * Returns the inverse tangent of (numerator / denominator), in radians.
522 * Returns the inverse tangent of (numerator / denominator), in radians, divided by pi.
567 * Returns the inverse hyperbolic tangent, in radians.
[all …]
Drs_quaternion.rsh123 * rot: Angle to rotate by, in radians.
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
DTiledImageRenderer.java359 double radians = Math.toRadians(-rotation); in getRange() local
363 double cos = Math.cos(radians); in getRange()
364 double sin = Math.sin(radians); in getRange()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DGcSnapshot.java439 public void rotate(double radians) { in rotate() argument
442 layer.getGraphics().rotate(radians); in rotate()
448 mTransform.rotate(radians); in rotate()
/frameworks/rs/driver/runtime/
Drs_cl.c942 extern float __attribute__((overloadable)) degrees(float radians) { in IN_FUNC_IN()
943 return radians * (180.f / M_PI); in IN_FUNC_IN()
945 extern float2 __attribute__((overloadable)) degrees(float2 radians) { in degrees() argument
946 return radians * (180.f / M_PI); in degrees()
948 extern float3 __attribute__((overloadable)) degrees(float3 radians) { in degrees() argument
949 return radians * (180.f / M_PI); in degrees()
951 extern float4 __attribute__((overloadable)) degrees(float4 radians) { in degrees() argument
952 return radians * (180.f / M_PI); in degrees()
977 extern float __attribute__((overloadable)) radians(float degrees) { in radians() function
980 extern float2 __attribute__((overloadable)) radians(float2 degrees) { in radians() function
[all …]
/frameworks/base/core/java/android/widget/
DRadialTimePickerView.java1341 final double radians = Math.toRadians(degrees); in getBoundsForVirtualView() local
1342 final float xCenter = mXCenter + centerRadius * (float) Math.sin(radians); in getBoundsForVirtualView()
1343 final float yCenter = mYCenter - centerRadius * (float) Math.cos(radians); in getBoundsForVirtualView()
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
Dapitest.rscript1010 f = radians(f);
1011 f2 = radians(f2);
1012 f3 = radians(f3);
1013 f4 = radians(f4);
Dmath.rscript308 TEST_FN_FUNC_FN(radians);
/frameworks/rs/tests/java_api/RSUnitTests/supportlibonlysrc/com/android/rs/unittest/
Dapitest.rscript1028 f = radians(f);
1029 f2 = radians(f2);
1030 f3 = radians(f3);
1031 f4 = radians(f4);
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dapitest.rscript1030 f = radians(f);
1031 f2 = radians(f2);
1032 f3 = radians(f3);
1033 f4 = radians(f4);
Dmath.rscript333 TEST_FN_FUNC_FN(radians);
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/
Dmath.rs.bak294 TEST_FN_FUNC_FN(radians);
Dmath.rscript308 TEST_FN_FUNC_FN(radians);
Dmath.rs.orig308 TEST_FN_FUNC_FN(radians);
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/
Dmath.rscript308 TEST_FN_FUNC_FN(radians);
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dmath_fp16.rscript234 TEST_HN_FUNC_HN(radians);
Dmath.rscript331 TEST_FN_FUNC_FN(radians);
/frameworks/rs/tests/java_api/ComputeBenchmark/src/com/example/android/rs/computebench/
Dcompute_benchmark.rscript377 BENCH_FN_FUNC_FN(radians);

12