Home
last modified time | relevance | path

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

123

/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/core/jni/android/graphics/
DPathMeasure.cpp93 …sTan(JNIEnv* env, jobject clazz, jlong pairHandle, jfloat dist, jfloatArray pos, jfloatArray tan) { in getPosTan() argument
97 SkScalar* tanPtr = tan ? tmpTan : NULL; in getPosTan()
106 if (tan) { in getPosTan()
107 convertTwoElemFloatArray(env, tan, tmpTan); in getPosTan()
/frameworks/base/libs/hwui/
DSkiaCanvas.cpp742 SkVector tan; in drawLayoutOnPath() local
743 if (!meas.getPosTan(x, &pos, &tan)) { in drawLayoutOnPath()
745 tan.set(1, 0); in drawLayoutOnPath()
747 xform[i - start].fSCos = tan.x(); in drawLayoutOnPath()
748 xform[i - start].fSSin = tan.y(); in drawLayoutOnPath()
749 xform[i - start].fTx = pos.x() - tan.y() * y - halfWidth * tan.x(); in drawLayoutOnPath()
750 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()
/frameworks/layoutlib/bridge/src/android/graphics/
DPathMeasure_Delegate.java81 float tan[]) { in native_getPosTan() argument
/frameworks/compile/slang/tests/P_math_fp/
Dmath_fp.rscript138 TEST_FUNC_1(tan);
/frameworks/base/location/java/android/location/
DLocation.java368 double U1 = Math.atan((1.0 - f) * Math.tan(lat1)); in computeDistanceAndBearing()
369 double U2 = Math.atan((1.0 - f) * Math.tan(lat2)); in computeDistanceAndBearing()
/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/rs/support/java/src/androidx/renderscript/
DMatrix4f.java312 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.java311 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/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/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/RsTest_11/src/com/android/rs/test/
Dmath.rscript178 TEST_FN_FUNC_FN(tan);
/frameworks/base/core/java/android/hardware/camera2/legacy/
DLegacyMetadataMapper.java984 float height = (float)Math.abs(2 * focalLength * Math.tan(angleVer / 2)); in mapSensor()
985 float width = (float)Math.abs(2 * focalLength * Math.tan(angleHor / 2)); in mapSensor()
/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/driver/runtime/
Drs_cl.c780 float __attribute__((overloadable)) tan(float v) { in tan() function
783 FN_FUNC_FN(tan)
792 return tan(v * M_PI); in FN_FUNC_FN()
1629 THUNK_NATIVE_F(tan) in THUNK_NATIVE_F()
2258 HN_FUNC_HN(tan);
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dmath_fp16.rscript253 TEST_HN_FUNC_HN(tan);

123