Home
last modified time | relevance | path

Searched refs:cos (Results 1 - 25 of 53) sorted by relevance

123

/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/
H A Dtrans_affine.h192 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 Drs_xform_fuzzer.cpp36 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 Drs_xform.h29 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 Dpoint_t.h53 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 Danisotropic.cpp103 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 Ddashing.cpp143 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 Dwm_math.cpp200 { 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 Dpoint.h89 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 Drs_properties_def.h264 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 Dtext_blob_fuzzer.cpp165 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 Drs_particles_drawable.cpp62 * [ 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 Dspring_model.cpp164 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 Dquaternion_util.h38 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 Dmathf.h124 inline float cos(float value) in cos() function
H A Dvector_util.h104 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 Ddata_panel_modifier.cpp258 (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 Drs_render_particle.cpp629 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 Dknuckle_divergent_point.cpp110 moveVelocityX_ = std::cos(baseVelocity) * MOVE_SPEED; in Reset()
/foundation/arkui/ui_lite/test/uitest/test_clip/
H A Dui_test_clip.cpp251 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 Deasing_curve.cpp50 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 Dgauge_modifier.cpp734 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 Drender_triangle.cpp54 centerPoint.SetY(y3_ - radius_ / std::cos(bottomAngle / 2.0)); in Calculate()
/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/
H A Dsvg_fe_color_matrix.cpp72 const float cosValue = cos(theta); in MakeHueRotate()
/foundation/graphic/graphic_utils_lite/frameworks/
H A Dgraphic_math.cpp68 return cos(angle / RADIAN_TO_ANGLE); in Cos()
/foundation/arkui/ace_engine/frameworks/core/components/indexer/
H A Drender_indexer_circle.cpp113 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()

Completed in 16 milliseconds

123