Home
last modified time | relevance | path

Searched refs:tan (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/base/graphics/java/android/graphics/
DPathMeasure.java86 public boolean getPosTan(float distance, float pos[], float tan[]) { in getPosTan() argument
88 tan != null && tan.length < 2) { in getPosTan()
91 return native_getPosTan(native_instance, distance, pos, tan); in getPosTan()
163 …ic native boolean native_getPosTan(long native_instance, float distance, float pos[], float tan[]); in native_getPosTan() argument
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
Dfield_of_view.h42 float x_left = -std::tan(left_) * z_near; in GetProjectionMatrix()
43 float x_right = std::tan(right_) * z_near; in GetProjectionMatrix()
44 float y_bottom = -std::tan(bottom_) * z_near; in GetProjectionMatrix()
45 float y_top = std::tan(top_) * z_near; in GetProjectionMatrix()
/frameworks/base/libs/hwui/jni/
DPathMeasure.cpp91 …sTan(JNIEnv* env, jobject clazz, jlong pairHandle, jfloat dist, jfloatArray pos, jfloatArray tan) { in getPosTan() argument
95 SkScalar* tanPtr = tan ? tmpTan : NULL; in getPosTan()
104 if (tan) { in getPosTan()
105 convertTwoElemFloatArray(env, tan, tmpTan); in getPosTan()
/frameworks/base/libs/hwui/
DSkiaCanvas.cpp783 SkVector tan; in drawLayoutOnPath() local
784 if (!meas.getPosTan(x, &pos, &tan)) { in drawLayoutOnPath()
786 tan.set(1, 0); in drawLayoutOnPath()
788 xform[i - start].fSCos = tan.x(); in drawLayoutOnPath()
789 xform[i - start].fSSin = tan.y(); in drawLayoutOnPath()
790 xform[i - start].fTx = pos.x() - tan.y() * y - halfWidth * tan.x(); in drawLayoutOnPath()
791 xform[i - start].fTy = pos.y() + tan.x() * y - halfWidth * tan.y(); in drawLayoutOnPath()
/frameworks/base/core/java/android/transition/
DArcMotion.java52 Math.tan(Math.toRadians(DEFAULT_MAX_ANGLE_DEGREES/2));
176 return (float) Math.tan(Math.toRadians(arcInDegrees / 2)); in toTangent()
/frameworks/base/core/java/android/util/
DMathUtils.java159 public static float tan(float angle) { in tan() method in MathUtils
160 return (float) Math.tan(angle); in tan()
/frameworks/base/core/java/android/gesture/
DGestureUtils.java450 final float tan = b/a; in minimumCosineDistance() local
451 final double angle = Math.atan(tan); in minimumCosineDistance()
456 final double sine = cosine * tan; in minimumCosineDistance()
/frameworks/base/opengl/java/android/opengl/
DGLU.java113 float top = zNear * (float) Math.tan(fovy * (Math.PI / 360.0)); in gluPerspective()
DMatrix.java382 float f = 1.0f / (float) Math.tan(fovy * (Math.PI / 360.0)); in perspectiveM()
/frameworks/base/core/java/android/widget/
DEditorTouchState.java239 return (float) Math.tan(Math.toRadians(angleFromVerticalInDegrees)); in getXYRatio()
/frameworks/compile/slang/tests/P_math_fp/
Dmath_fp.rscript138 TEST_FUNC_1(tan);
/frameworks/native/libs/math/include/math/
Dmat4.h478 h = std::tan(fov * M_PI / 360.0f) * near; in perspective()
481 w = std::tan(fov * M_PI / 360.0f) * near; in perspective()
/frameworks/base/location/java/android/location/
DLocation.java1129 double u1 = Math.atan((1.0 - f) * Math.tan(lat1)); in computeDistanceAndBearing()
1130 double u2 = Math.atan((1.0 - f) * Math.tan(lat2)); in computeDistanceAndBearing()
/frameworks/rs/support/java/src/androidx/renderscript/
DMatrix4f.java316 float top = near * (float)Math.tan((float) (fovy * Math.PI / 360.0f)); in loadPerspective()
/frameworks/rs/
DrsMatrix4x4.cpp299 float top = near * tan((float) (fovy * M_PI / 360.0f)); in loadPerspective()
/frameworks/base/rs/java/android/renderscript/
DMatrix4f.java315 float top = near * (float)Math.tan((float) (fovy * Math.PI / 360.0f)); in loadPerspective()
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
Dapitest.rscript863 f = tan(f);
864 f2 = tan(f2);
865 f3 = tan(f3);
866 f4 = tan(f4);
Dmath.rscript323 TEST_FN_FUNC_FN(tan);
/frameworks/rs/tests/java_api/RSUnitTests/supportlibonlysrc/com/android/rs/unittest/
Dapitest.rscript881 f = tan(f);
882 f2 = tan(f2);
883 f3 = tan(f3);
884 f4 = tan(f4);
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dapitest.rscript883 f = tan(f);
884 f2 = tan(f2);
885 f3 = tan(f3);
886 f4 = tan(f4);
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/
Dmath.rscript178 TEST_FN_FUNC_FN(tan);
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/
Dmath.rs.bak309 TEST_FN_FUNC_FN(tan);
Dmath.rs.orig323 TEST_FN_FUNC_FN(tan);
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/
Dmath.rscript323 TEST_FN_FUNC_FN(tan);
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dmath_fp16.rscript253 TEST_HN_FUNC_HN(tan);

12