/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/ |
H A D | trans_affine.h | 192 return TransAffine(std::cos(angle), std::sin(angle), -std::sin(angle), std::cos(angle), 0.0f, 0.0f); in TransAffineRotation() 250 float scaleXTemp = data_[0] * std::cos(angle) - data_[3] * std::sin(angle); in Rotate() 251 float shearXTemp = data_[1] * std::cos(angle) - data_[4] * std::sin(angle); in Rotate() 252 float translateXTemp = data_[2] * std::cos(angle) - data_[5] * std::sin(angle); in Rotate() 253 data_[3] = data_[0] * std::sin(angle) + data_[3] * std::cos(angle); in Rotate() 254 data_[4] = data_[1] * std::sin(angle) + data_[4] * std::cos(angle); in Rotate() 255 data_[5] = data_[2] * std::sin(angle) + data_[5] * std::cos(angle); in Rotate()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/rsxform_fuzzer/ |
H A D | rs_xform_fuzzer.cpp | 36 scalar cos = GetObject<scalar>(); in RsXformFuzzTest() local 40 RSXform::Make(cos, sin, tx, ty); in RsXformFuzzTest()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/text/ |
H A D | rs_xform.h | 29 static RSXform Make(scalar cos, scalar sin, scalar tx, scalar ty) in Make() 31 RSXform xform = { cos, sin, tx, ty }; in Make() 37 out += "[cos:" + std::to_string(cos_); in Dump()
|
/foundation/arkui/ace_engine/frameworks/base/geometry/ng/ |
H A D | point_t.h | 53 T x = (x_ - center.GetX()) * std::cos(angle) - (y_ - center.GetY()) * std::sin(angle) + center.GetX(); in Rotate() 54 T y = (x_ - center.GetX()) * std::sin(angle) + (y_ - center.GetY()) * std::cos(angle) + center.GetY(); in Rotate()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/dm/ |
H A D | anisotropic.cpp | 103 float cos = cosf(angle); in OnTestFunction() local 104 OH_Drawing_CanvasDrawLine(bimap_canvas, cos * kInnerOffset, sin * kInnerOffset, in OnTestFunction() 105 cos * kImageSize / 2, sin * kImageSize / 2); // 2 cout in OnTestFunction()
|
H A D | dashing.cpp | 143 OH_Drawing_PathLineTo(path, cos(rad), sin(rad)); in make_path_star() 144 DrawPathGetBound(r, cos(rad), sin(rad)); in make_path_star()
|
/foundation/window/window_manager/utils/src/ |
H A D | wm_math.cpp | 200 { std::cos(theta), std::sin(theta), 0.0f }, in CreateRotation() 201 { -std::sin(theta), std::cos(theta), 0.0f }, in CreateRotation() 233 { 0.0f, std::cos(theta), std::sin(theta), 0.0f }, in CreateRotationX() 234 { 0.0f, -std::sin(theta), std::cos(theta), 0.0f }, in CreateRotationX() 244 { std::cos(theta), 0.0f, -std::sin(theta), 0.0f }, in CreateRotationY() 246 { std::sin(theta), 0.0f, std::cos(theta), 0.0f }, in CreateRotationY() 256 { std::cos(theta), std::sin(theta), 0.0f, 0.0f }, in CreateRotationZ() 257 { -std::sin(theta), std::cos(theta), 0.0f, 0.0f }, in CreateRotationZ()
|
/foundation/arkui/ace_engine/frameworks/base/geometry/ |
H A D | point.h | 89 double x = (x_ - center.GetX()) * std::cos(angle) - (y_ - center.GetY()) * std::sin(angle) + center.GetX(); in Rotate() 90 double y = (x_ - center.GetX()) * std::sin(angle) + (y_ - center.GetY()) * std::cos(angle) + center.GetY(); in Rotate()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/property/ |
H A D | rs_properties_def.h | 264 float cos = std::pow(num, 1.f / count); in CalculateLightRadius() local 265 float tan = std::sqrt(static_cast<float>(1 - pow(cos, 2))) / cos; in CalculateLightRadius()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/textblob_fuzzer/ |
H A D | text_blob_fuzzer.cpp | 165 scalar cos = GetObject<scalar>(); in TextBlobFuzzTest005() local 169 RSXform xform[] = { RSXform::Make(cos, sin, tx, ty), RSXform::Make(cos, sin, tx, ty), in TextBlobFuzzTest005() 170 RSXform::Make(cos, sin, tx, ty) }; in TextBlobFuzzTest005()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/ |
H A D | rs_particles_drawable.cpp | 62 * [ cos -sin tx ] 63 * [ sin cos ty ] 68 float cos = std::cos(spin * DEGREE_TO_RADIAN) * scale; in MakeRSXform() local 70 float tx = position.x_ - cos * center.x_ + sin * center.y_; in MakeRSXform() 71 float ty = position.y_ - sin * center.x_ - cos * center.y_; in MakeRSXform() 72 return Drawing::RSXform::Make(cos, sin, tx, ty); in MakeRSXform()
|
/foundation/arkui/ace_engine/frameworks/core/animation/ |
H A D | spring_model.cpp | 164 return exp(r_ * time) * (c1_ * cos(w_ * time) + c2_ * sin(w_ * time)); in Position() 170 double cosine = cos(w_ * time); in Velocity()
|
/foundation/graphic/graphic_3d/lume/LumeBase/api/base/math/ |
H A D | quaternion_util.h | 38 const float cy = Math::cos(yaw * 0.5f); in FromEulerRad() 40 const float cp = Math::cos(pitch * 0.5f); in FromEulerRad() 42 const float cr = Math::cos(roll * 0.5f); in FromEulerRad() 72 return Quat(axisMultiplied.x, axisMultiplied.y, axisMultiplied.z, Math::cos(angle * 0.5f)); in AngleAxis()
|
H A D | mathf.h | 124 inline float cos(float value) in cos() function
|
H A D | vector_util.h | 104 const float c = Math::cos(angle); in RotateCW() 112 const float c = Math::cos(angle); in RotateCCW()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/data_panel/ |
H A D | data_panel_modifier.cpp | 258 (radius - thickness * PERCENT_HALF) - (radius - thickness * PERCENT_HALF) * std::cos(originDrawRadian), 2) + in GetPaintPath() 264 (radius - thickness * PERCENT_HALF) * std::cos(originDrawRadian)) / in GetPaintPath() 276 Path2DArc(path, center.GetX() + (radius - thickness * PERCENT_HALF) * std::cos(lastRadian), in GetPaintPath() 280 Path2DArc(path, center.GetX() + (radius - thickness * PERCENT_HALF) * std::cos(lastRadian), in GetPaintPath() 284 Path2DArc(path, center.GetX() + (radius - thickness * PERCENT_HALF) * std::cos(startRadian), in GetPaintPath() 287 Path2DArc(path, center.GetX() + (radius - thickness * PERCENT_HALF) * std::cos(totalDrawRadian), in GetPaintPath() 291 Path2DArc(path, center.GetX() + (radius - thickness * PERCENT_HALF) * std::cos(startRadian), in GetPaintPath() 301 Path2DArc(path, center.GetX() + (radius - thickness * PERCENT_HALF) * std::cos(drawRadian), in GetPaintPath() 314 Path2DArc(endPath, center.GetX() + (radius - thickness * PERCENT_HALF) * std::cos(drawRadian), in GetPaintPath()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/ |
H A D | rs_render_particle.cpp | 629 velocity_ = Vector2f { velocityValue * std::cos(velocityAngle), velocityValue * std::sin(velocityAngle) }; in InitProperty() 635 acceleration_ = Vector2f { accelerationValue_ * std::cos(accelerationAngle_ * DEGREE_TO_RADIAN), in InitProperty() 766 positionX = x + r * cos(theta); in CalculateParticlePosition() 771 positionX = x + rx * cos(theta); in CalculateParticlePosition()
|
/foundation/multimodalinput/input/service/window_manager/src/ |
H A D | knuckle_divergent_point.cpp | 110 moveVelocityX_ = std::cos(baseVelocity) * MOVE_SPEED; in Reset()
|
/foundation/arkui/ui_lite/test/uitest/test_clip/ |
H A D | ui_test_clip.cpp | 251 path.LineTo({static_cast<float>(cos((18 + 72 * i - rot) / pi * UI_PI) * outerR + x), in UIKitClipTest003() 254 path.LineTo({static_cast<float>(cos((54 + 72 * i - rot) / pi * UI_PI) * innerR + x), in UIKitClipTest003()
|
/foundation/graphic/graphic_3d/lume/metaobject/src/curves/ |
H A D | easing_curve.cpp | 50 return 1.f - BASE_NS::Math::cos((t * BASE_NS::Math::PI) / 2.f); in EaseInSine() 58 return -(BASE_NS::Math::cos(BASE_NS::Math::PI * t) - 1.f) / 2.f; in EaseInOutSine()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/gauge/ |
H A D | gauge_modifier.cpp | 734 path1.AddCircle(data.center.GetX() + radius * std::cos((drawStartDegree - offsetDegree) * M_PI / HALF_CIRCLE), in DrawHighLight() 739 path2.AddCircle(data.center.GetX() + radius * std::cos((drawStartDegree - offsetDegree) * M_PI / HALF_CIRCLE), in DrawHighLight() 750 path4.MoveTo(data.center.GetX() + (data.radius) * std::cos((drawStartDegree - offsetDegree) * M_PI / HALF_CIRCLE), in DrawHighLight() 754 std::cos((drawStartDegree - offsetDegree) * M_PI / HALF_CIRCLE), in DrawHighLight() 759 std::cos((drawStartDegree - offsetDegree - tempDegree) * M_PI / HALF_CIRCLE), in DrawHighLight() 764 std::cos((drawStartDegree - offsetDegree - tempDegree) * M_PI / HALF_CIRCLE), in DrawHighLight() 912 RSPoint startPoint1(data.center.GetX() + (data.radius - data.thickness * PERCENT_HALF) * std::cos(startRadian) - in GetDrawPath() 916 RSPoint startPoint2(data.center.GetX() + (data.radius - data.thickness * PERCENT_HALF) * std::cos(startRadian) + in GetDrawPath() 931 RSPoint endPoint1(data.center.GetX() + (data.radius - data.thickness * PERCENT_HALF) * std::cos(endRadian) - in GetDrawPath() 935 RSPoint endPoint2(data.center.GetX() + (data.radius - data.thickness * PERCENT_HALF) * std::cos(endRadia in GetDrawPath() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/triangle/ |
H A D | render_triangle.cpp | 54 centerPoint.SetY(y3_ - radius_ / std::cos(bottomAngle / 2.0)); in Calculate()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/ |
H A D | svg_fe_color_matrix.cpp | 72 const float cosValue = cos(theta); in MakeHueRotate()
|
/foundation/graphic/graphic_utils_lite/frameworks/ |
H A D | graphic_math.cpp | 68 return cos(angle / RADIAN_TO_ANGLE); in Cos()
|
/foundation/arkui/ace_engine/frameworks/core/components/indexer/ |
H A D | render_indexer_circle.cpp | 113 position.SetY(itemRadius - itemRadius * cos(M_PI_2 + angle)); in SetItemPosition() 295 itemInfo_[i][TABLE_POSITION_Y] = -cos(M_PI_2 + itemInfo_[i][TABLE_ANGLE]); in InitIndexTable() 328 boxPosition.SetY(itemRadius - itemRadius * cos(M_PI_2 + angle)); in InitIndicatorBox() 760 double centerY = outerRadius_ - (outerRadius_ - itemSize_ * HALF) * cos(M_PI_2 + collapseItemPosition_); in CollapseItemHitTest()
|