/foundation/arkui/ace_engine/frameworks/core/components/triangle/ |
H A D | render_triangle.cpp | 35 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 D | morph_target_structs.h | 35 vec4 tan; member
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/property/ |
H A D | rs_properties_def.h | 265 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 D | mesh_builder.cpp | 1301 // 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 D | mesh_util.cpp | 372 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 D | scene_util.cpp | 94 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 D | mathf.h | 130 inline float tan(float value) in tan() function
|
H A D | matrix_util.h | 469 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 D | matrix4_test.cpp | 120 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 D | matrix4.cpp | 75 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 D | gauge_modifier.cpp | 778 : 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 D | skia_decoration_painter.cpp | 333 float slope = tan(Deg2rad(RIGHT_ANGLE_F - angle)); in EndPointsFromAngle()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/rosen/ |
H A D | drawing_decoration_painter.cpp | 306 float slope = tan(Deg2rad(90.0f - angle)); in EndPointsFromAngle()
|
/foundation/arkui/ace_engine/frameworks/core/components/common/painter/ |
H A D | rosen_decoration_painter.cpp | 406 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 D | bubble_layout_algorithm.cpp | 141 auto side1 = radius.ConvertToPx() / std::tan(alpha); in GetP2()
|