Home
last modified time | relevance | path

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

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/triangle/
H A Drender_triangle.cpp35 centerPoint.SetX(x1_ + radius_ * std::tan(topAngle / 2.0)); in Calculate()
44 centerPoint.SetX(x2_ - radius_ * std::tan(topAngle / 2.0)); in Calculate()
62 double topDiff = radius_ * std::tan(topAngle / 2.0) - radius_; in Calculate()
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/assets/3d/shaders/computeshader/
H A Dcore3d_dm_morph.comp92 vec3 t = data[tid].tan.xyz;
93 const float tangentW = data[tid].tan.w;
108 t += data[index].tan.xyz * w;
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dmesh_builder.cpp1330 { buffer + baseOffset + offsetof(MorphInputData, tan), targetSize } }; in SetMorphTargetData()
1976 auto tan = *reinterpret_cast<const Math::Vec3*>( in GatherDeltasPNT() local
1990 target->nortan.z = Math::PackHalf2X16({ tan.x, tan.y }); in GatherDeltasPNT()
1991 target->nortan.w = Math::PackHalf2X16({ tan.z, 0.f }); in GatherDeltasPNT()
1994 target->tan = Math::Vec4(tan, 0.f); in GatherDeltasPNT()
2021 Math::Vec3 tan; in GatherDeltasPNT() local
2023 for (auto i = 0U; i < Math::min(countof(tan.data), tanFormat.componentCount); ++i) { in GatherDeltasPNT()
2024 tan[i] = tanFormat.toIntermediate(ptr + i * tanFormat.componentByteSize); in GatherDeltasPNT()
2038 target->nortan.z = Math::PackHalf2X16({ tan.data[R], tan.data[G] }); in GatherDeltasPNT()
2039 target->nortan.w = Math::PackHalf2X16({ tan.data[B], 0.f }); in GatherDeltasPNT()
[all …]
H A Dmesh_util.cpp372 vector<Math::Vec3> tan(positions.size(), { 0, 0, 0 }); in CalculateTangentImpl() local
401 tan[aa] += sdir; in CalculateTangentImpl()
402 tan[bb] += sdir; in CalculateTangentImpl()
403 tan[cc] += sdir; in CalculateTangentImpl()
414 const Math::Vec3& t = tan[i]; in CalculateTangentImpl()
H A Dscene_util.cpp94 const float scale = tan(cameraComponent.yFov * 0.5f) * cameraComponent.zNear; in CalculateProjectionMatrix()
194 …const float yFov = (aspectRatio > 1.0f) ? fovY : (2.0f * Math::atan(Math::tan(fovY * 0.5f) / aspec… in UpdateCameraViewport()
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/assets/3d/shaders/common/
H A Dmorph_target_structs.h35 vec4 tan; member
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/property/
H A Drs_properties_def.h262 float tan = std::sqrt(static_cast<float>(1 - pow(cos, 2))) / cos; in CalculateLightRadius() local
263 return lightPosZ * tan; in CalculateLightRadius()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/js-service-widget-ui/
H A Djs-service-widget-appendix-types.md161 | tan | \#d2b48c | ![tan](figures/tan.png) |
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBase/api/base/math/
H A Dmathf.h130 inline float tan(float value) in BASE_BEGIN_NAMESPACE()
H A Dmatrix_util.h469 float const tanHalfFovy = tan(fovy / 2.0f); in BASE_BEGIN_NAMESPACE()
509 float const tanHalfFovy = tan(fovy / 2.0f); in BASE_BEGIN_NAMESPACE()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js-lite/
H A Djs-lite-common-styles.md178 | tan | \#d2b48c | ![tan](figures/tan.png) |
/ohos5.0/docs/en/application-dev/reference/apis-arkui/js-service-widget-ui/
H A Djs-service-widget-appendix-types.md161 | tan | \#d2b48c | ![tan](figures/tan.png) |
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-js-lite/
H A Djs-lite-common-styles.md178 | tan | \#d2b48c | ![tan](figures/tan.png) |
/ohos5.0/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/engine/graphics/
H A DXMat4.js136 let ret = w / (tan((30 * pi) / 180) * 2);
/ohos5.0/foundation/arkui/ace_engine/test/unittest/base/
H A Dmatrix4_test.cpp120 … EXPECT_DOUBLE_EQ(matrix4Obj8.Get(VALID_ROW1, VALID_COL0), std::tan(DEFAULT_DOUBLE1 * ANGLE_UNIT));
121 … EXPECT_DOUBLE_EQ(matrix4Obj8.Get(VALID_ROW0, VALID_COL1), std::tan(DEFAULT_DOUBLE1 * ANGLE_UNIT));
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkts/
H A Djs-apis-arkts-decimal.md735 ### tan subsection
737 tan(): Decimal
754 let data: Decimal = new Decimal(0.75).tan();
755 console.info("test Decimal tan:" + data.toString()); // 'test Decimal tan:0.93159645994407246117'
3445 ### tan subsection
3447 static tan(n: Value): Decimal
3480 let data: Decimal = Decimal.tan(0.75);
3481 console.info("test Decimal tan:" + data.toString()); // 'test Decimal tan:0.93159645994407246117'
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Dmatrix4.cpp75 …return Matrix4(1.0f, std::tan(x * ANGLE_UNIT), 0.0f, 0.0f, std::tan(y * ANGLE_UNIT), 1.0f, 0.0f, 0… in CreateSkew()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js/
H A Djs-appendix-types.md157 | tan | \#d2b48c | ![zh-cn_image_0000001173324747](figures/zh-cn_image_00000011733…
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-js/
H A Djs-appendix-types.md157 | tan | \#d2b48c | ![en-us_image_0000001173324747](figures/en-us_image_00000011733…
/ohos5.0/docs/en/application-dev/reference/apis-arkts/
H A Djs-apis-arkts-decimal.md733 ### tan subsection
735 tan(): Decimal
752 let data: Decimal = new Decimal(0.75).tan();
753 console.info("test Decimal tan:" + data.toString()); // 'test Decimal tan:0.93159645994407246117'
3443 ### tan subsection
3445 static tan(n: Value): Decimal
3478 let data: Decimal = Decimal.tan(0.75);
3479 console.info("test Decimal tan:" + data.toString()); // 'test Decimal tan:0.93159645994407246117'
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/gauge/
H A Dgauge_modifier.cpp788 … : std::tan((oppositeSide) / (data.radius - data.thickness * PERCENT_HALF)) * HALF_CIRCLE / M_PI; in GetOffsetDegree()
895 auto tempBottomHypotenuse = cornerRadius / std::tan(bottomAngle * PERCENT_HALF); in CreateDefaultTrianglePath()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/rosen/
H A Ddrawing_decoration_painter.cpp306 float slope = tan(Deg2rad(90.0f - angle)); in EndPointsFromAngle()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Dskia_decoration_painter.cpp333 float slope = tan(Deg2rad(RIGHT_ANGLE_F - angle)); in EndPointsFromAngle()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/painter/
H A Drosen_decoration_painter.cpp406 float slope = tan(Deg2rad(90.0f - angle)); in EndPointsFromAngle()
455 float slope = tan(Deg2rad(90.0f - angle)); in EndPointsFromAngle()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/bubble/
H A Dbubble_layout_algorithm.cpp142 auto side1 = radius.ConvertToPx() / std::tan(alpha); in GetP2()

12