Home
last modified time | relevance | path

Searched refs:sinma (Results 1 - 5 of 5) sorted by relevance

/foundation/arkui/ui_lite/frameworks/draw/
H A Dclip_utils.cpp58 float sinma = radius * Sin(startAngle); in Arc() local
61 vertices_->LineTo(float(center.x + sinma), float(center.y - cosma)); in Arc()
63 vertices_->MoveTo(float(center.x + sinma), float(center.y - cosma)); in Arc()
66 sinma = radius * Sin(endAngle); in Arc()
78 vertices_->ArcTo(radius, radius, angle, largeArcFlag, 1, center.x + sinma, center.y - cosma); in Arc()
/foundation/arkui/ui_lite/frameworks/components/
H A Dui_analog_clock.cpp291 float sinma = Sin(hand.nextAngle_); in DrawHandLine() local
303 int32_t xPointLength = static_cast<int32_t>(startToCenterLength * sinma); in DrawHandLine()
315 int32_t xlength = static_cast<int32_t>((startToCenterLength - handLength) * sinma); in DrawHandLine()
H A Dui_canvas.cpp123 float sinma = radius * Sin(startAngle); in ArcTo() local
126 vertices_->LineTo(float(center.x + sinma), float(center.y - cosma)); in ArcTo()
128 vertices_->MoveTo(float(center.x + sinma), float(center.y - cosma)); in ArcTo()
131 sinma = radius * Sin(endAngle); in ArcTo()
139 vertices_->ArcTo(radius, radius, angle, largeArcFlag, 1, float(center.x + sinma), float(center.y - cosma)); in ArcTo()
149 float sinma = radius * Sin(startAngle); in ArcTo()
152 path_->points_.PushBack({MATH_ROUND(center.x + sinma), MATH_ROUND(center.y - cosma)}); in ArcTo()
155 path_->startPos_ = {MATH_ROUND(center.x + sinma), MATH_ROUND(center.y - cosma)}; in ArcTo()
160 sinma = radius * Sin(endAngle); in ArcTo()
163 path_->points_.PushBack({MATH_ROUND(center.x + sinma), MATH_ROUN in ArcTo()
[all...]
/foundation/graphic/graphic_utils_lite/frameworks/
H A Dtransform.cpp341 float sinma = Sin(angle); in Rotate() local
348 float temp = cosma * xt - sinma * yt; in Rotate()
350 temp = sinma * xt + cosma * yt; in Rotate()
/foundation/arkui/ui_lite/test/unittest/components/
H A Dui_canvas_unit_test.cpp420 float sinma = RADIUS * Sin(START_ANGLE); in HWTEST_F() local
423 EXPECT_EQ(start.x, int16_t(CENTER_X + sinma)); in HWTEST_F()
426 sinma = RADIUS * Sin(END_ANGLE); in HWTEST_F()
429 EXPECT_EQ(end.x, int16_t(CENTER_X + sinma)); in HWTEST_F()
450 float sinma = RADIUS * Sin(START_ANGLE); in HWTEST_F() local
453 EXPECT_EQ(start.x, int16_t(CENTER_X + sinma)); in HWTEST_F()
456 sinma = RADIUS * Sin(END_ANGLE); in HWTEST_F()
483 float sinma = RADIUS * Sin(END_ANGLE); in HWTEST_F() local
486 EXPECT_EQ(end.x, int16_t(CENTER_X + sinma)); in HWTEST_F()

Completed in 6 milliseconds