Home
last modified time | relevance | path

Searched refs:tan (Results 1 - 15 of 15) sorted by relevance

/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()
/foundation/graphic/graphic_3d/lume/Lume_3D/assets/3d/shaders/common/
H A Dmorph_target_structs.h35 vec4 tan; member
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/property/
H A Drs_properties_def.h265 float tan = std::sqrt(static_cast<float>(1 - pow(cos, 2))) / cos; in CalculateLightRadius() local
266 return lightPosZ * tan; in CalculateLightRadius()
/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dmesh_builder.cpp1301 // Data struct (pos, nor, tan) for each vertex. total amount is target size for each target data and one in SetMorphTargetData()
1328 { buffer + baseOffset + offsetof(MorphInputData, tan), targetSize } }; in SetMorphTargetData()
1974 auto tan = *reinterpret_cast<const Math::Vec3*>( in GatherDeltasPNT() local
1976 const auto zeroDelta = (pos == Math::Vec3 {} && nor == Math::Vec3 {} && tan == Math::Vec3 {}); in GatherDeltasPNT()
1988 target->nortan.z = Math::PackHalf2X16({ tan.x, tan.y }); in GatherDeltasPNT()
1989 target->nortan.w = Math::PackHalf2X16({ tan.z, 0.f }); in GatherDeltasPNT()
1992 target->tan = Math::Vec4(tan, 0.f); in GatherDeltasPNT()
2019 Math::Vec3 tan; in GatherDeltasPNT() local
[all...]
H A Dmesh_util.cpp372 vector<Math::Vec3> tan(positions.size(), { 0, 0, 0 }); in CalculateTangentImpl()
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) / aspectRatio)); in UpdateCameraViewport()
/foundation/graphic/graphic_3d/lume/LumeBase/api/base/math/
H A Dmathf.h130 inline float tan(float value) in tan() function
H A Dmatrix_util.h469 float const tanHalfFovy = tan(fovy / 2.0f); in PerspectiveLhZo()
509 float const tanHalfFovy = tan(fovy / 2.0f); in PerspectiveLhNo()
/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)); in HWTEST_F()
121 EXPECT_DOUBLE_EQ(matrix4Obj8.Get(VALID_ROW0, VALID_COL1), std::tan(DEFAULT_DOUBLE1 * ANGLE_UNIT)); in HWTEST_F()
/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.0f, 0.0f, 0.0f, in CreateSkew()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/gauge/
H A Dgauge_modifier.cpp778 : std::tan((oppositeSide) / (data.radius - data.thickness * PERCENT_HALF)) * HALF_CIRCLE / M_PI; in GetOffsetDegree()
885 auto tempBottomHypotenuse = cornerRadius / std::tan(bottomAngle * PERCENT_HALF); in CreateDefaultTrianglePath()
/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()
/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()
/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()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/bubble/
H A Dbubble_layout_algorithm.cpp141 auto side1 = radius.ConvertToPx() / std::tan(alpha); in GetP2()

Completed in 28 milliseconds