Home
last modified time | relevance | path

Searched refs:cy (Results 1 – 25 of 39) sorted by relevance

12

/lvgl-latest/src/draw/vg_lite/
Dlv_draw_vg_lite_arc.c91 float cy = dsc->center.y; in lv_draw_vg_lite_arc() local
96 lv_vg_lite_path_append_circle(path, cx, cy, radius_out, radius_out); in lv_draw_vg_lite_arc()
100 lv_vg_lite_path_append_circle(path, cx, cy, radius_in, radius_in); in lv_draw_vg_lite_arc()
111 float start_y = radius_out * MATH_SINF(start_angle_rad) + cy; in lv_draw_vg_lite_arc()
115 float end_y = radius_in * MATH_SINF(end_angle_rad) + cy; in lv_draw_vg_lite_arc()
121 cx, cy, in lv_draw_vg_lite_arc()
132 cx, cy, in lv_draw_vg_lite_arc()
143 lv_vg_lite_path_append_arc(path, cx, cy, radius_out, start_angle, sweep_angle, true); in lv_draw_vg_lite_arc()
151 float rcy1 = cy + round_center * MATH_SINF(end_angle_rad); in lv_draw_vg_lite_arc()
155 float rcy2 = cy + round_center * MATH_SINF(start_angle_rad); in lv_draw_vg_lite_arc()
[all …]
Dlv_vg_lite_path.c375 float cx, float cy, in lv_vg_lite_path_quad_to() argument
381 lv_vg_lite_path_append_point(path, cx, cy); in lv_vg_lite_path_quad_to()
484 float cx, float cy, in lv_vg_lite_path_append_circle() argument
492 lv_vg_lite_path_move_to(path, cx, cy - ry); in lv_vg_lite_path_append_circle()
493 lv_vg_lite_path_cubic_to(path, cx + rx_kappa, cy - ry, cx + rx, cy - ry_kappa, cx + rx, cy); in lv_vg_lite_path_append_circle()
494 lv_vg_lite_path_cubic_to(path, cx + rx, cy + ry_kappa, cx + rx_kappa, cy + ry, cx, cy + ry); in lv_vg_lite_path_append_circle()
495 lv_vg_lite_path_cubic_to(path, cx - rx_kappa, cy + ry, cx - rx, cy + ry_kappa, cx - rx, cy); in lv_vg_lite_path_append_circle()
496 lv_vg_lite_path_cubic_to(path, cx - rx, cy - ry_kappa, cx - rx_kappa, cy - ry, cx, cy - ry); in lv_vg_lite_path_append_circle()
522 float cx, float cy, in lv_vg_lite_path_append_arc() argument
531 lv_vg_lite_path_append_circle(path, cx, cy, radius, radius); in lv_vg_lite_path_append_arc()
[all …]
Dlv_vg_lite_path.h96 float cx, float cy,
114 float cx, float cy,
123 float cx, float cy,
Dlv_vg_lite_grad.c299 grad.cy = lv_pct_to_px(grad_dsc->params.radial.focal.y, h) + area->y1; in lv_vg_lite_draw_grad_helper()
302 grad.cr = LV_MAX(end_extent_x - grad.cx, end_extent_y - grad.cy); in lv_vg_lite_draw_grad_helper()
493 .cy = item->lv.cy, in radial_grad_create()
496 .fy = item->lv.cy, in radial_grad_create()
656 if(!math_equal(lhs->lv.cy, rhs->lv.cy)) { in grad_compare_cb()
657 return lhs->lv.cy > rhs->lv.cy ? 1 : -1; in grad_compare_cb()
/lvgl-latest/src/libs/thorvg/
DtvgFill.cpp38 ret->pImpl->cy = cy; in duplicate()
48 Result RadialGradient::Impl::radial(float cx, float cy, float r, float fx, float fy, float fr) in radial() argument
53 this->cy = cy; in radial()
179 Result RadialGradient::radial(float cx, float cy, float r) noexcept in radial() argument
181 return pImpl->radial(cx, cy, r, cx, cy, 0.0f); in radial()
185 Result RadialGradient::radial(float* cx, float* cy, float* r) const noexcept in radial() argument
188 if (cy) *cy = pImpl->cy; in radial()
DtvgShape.cpp143 Result Shape::appendCircle(float cx, float cy, float rx, float ry) noexcept in appendCircle() argument
149 pImpl->moveTo(cx + rx, cy); in appendCircle()
150 pImpl->cubicTo(cx + rx, cy + ryKappa, cx + rxKappa, cy + ry, cx, cy + ry); in appendCircle()
151 pImpl->cubicTo(cx - rxKappa, cy + ry, cx - rx, cy + ryKappa, cx - rx, cy); in appendCircle()
152 pImpl->cubicTo(cx - rx, cy - ryKappa, cx - rxKappa, cy - ry, cx, cy - ry); in appendCircle()
153 pImpl->cubicTo(cx + rxKappa, cy - ry, cx + rx, cy - ryKappa, cx + rx, cy); in appendCircle()
162 Result Shape::appendArc(float cx, float cy, float radius, float startAngle, float sweep, bool pie) … in appendArc() argument
165 if (sweep >= 360.0f || sweep <= -360.0f) return appendCircle(cx, cy, radius, radius); in appendArc()
181 pImpl->moveTo(cx, cy); in appendArc()
182 pImpl->lineTo(start.x + cx, start.y + cy); in appendArc()
[all …]
DtvgFill.h94 float cx = 0.0f, cy = 0.0f; member
99 Result radial(float cx, float cy, float r, float fx, float fy, float fr);
DtvgLottieBuilder.cpp51 auto cy = cosf(radianY), sy = sinf(radianY);; in _rotationXYZ() local
53 m->e11 = cy * cz; in _rotationXYZ()
54 m->e12 = -cy * sz; in _rotationXYZ()
497 static void _appendCircle(Shape* shape, float cx, float cy, float rx, float ry, const LottieOffsetM… in _appendCircle() argument
516 points[0] = {cx, cy - ry}; //moveTo in _appendCircle()
517 …points[1] = {cx + rxKappa, cy - ry}; points[2] = {cx + rx, cy - ryKappa}; points[3] = {cx + rx, cy in _appendCircle()
518 …points[4] = {cx + rx, cy + ryKappa}; points[5] = {cx + rxKappa, cy + ry}; points[6] = {cx, cy + ry… in _appendCircle()
519 …points[7] = {cx - rxKappa, cy + ry}; points[8] = {cx - rx, cy + ryKappa}; points[9] = {cx - rx, cy in _appendCircle()
520 …points[10] = {cx - rx, cy - ryKappa}; points[11] = {cx - rxKappa, cy - ry}; points[12] = {cx, cy -… in _appendCircle()
522 points[0] = {cx, cy - ry}; //moveTo in _appendCircle()
[all …]
DtvgSvgPath.cpp105 float cxp, cyp, cx, cy; in _pathAppendArcTo() local
176 cy = 0.0f; in _pathAppendArcTo()
189 cy = sinPhi * cxp + cosPhi * cyp; in _pathAppendArcTo()
194 cy += (sy + y) / 2.0f; in _pathAppendArcTo()
246 ey = cy + (sinPhiRx * cosTheta2 + cosPhiRy * sinTheta2); in _pathAppendArcTo()
DtvgSvgLoaderCommon.h318 float cy; member
326 float cy; member
404 float cy; member
DtvgCapi.cpp322 TVG_API Tvg_Result tvg_shape_append_arc(Tvg_Paint* paint, float cx, float cy, float radius, float s… in tvg_shape_append_arc() argument
325 …return (Tvg_Result) reinterpret_cast<Shape*>(paint)->appendArc(cx, cy, radius, startAngle, sweep, … in tvg_shape_append_arc()
329 TVG_API Tvg_Result tvg_shape_append_circle(Tvg_Paint* paint, float cx, float cy, float rx, float ry) in tvg_shape_append_circle() argument
332 return (Tvg_Result) reinterpret_cast<Shape*>(paint)->appendCircle(cx, cy, rx, ry); in tvg_shape_append_circle()
631 TVG_API Tvg_Result tvg_radial_gradient_set(Tvg_Gradient* grad, float cx, float cy, float radius) in tvg_radial_gradient_set() argument
634 return (Tvg_Result) reinterpret_cast<RadialGradient*>(grad)->radial(cx, cy, radius); in tvg_radial_gradient_set()
638 TVG_API Tvg_Result tvg_radial_gradient_get(Tvg_Gradient* grad, float* cx, float* cy, float* radius) in tvg_radial_gradient_get() argument
641 return (Tvg_Result) reinterpret_cast<RadialGradient*>(grad)->radial(cx, cy, radius); in tvg_radial_gradient_get()
Dthorvg_capi.h1219 TVG_API Tvg_Result tvg_shape_append_circle(Tvg_Paint* paint, float cx, float cy, float rx, float ry…
1241 TVG_API Tvg_Result tvg_shape_append_arc(Tvg_Paint* paint, float cx, float cy, float radius, float s…
1810 TVG_API Tvg_Result tvg_radial_gradient_set(Tvg_Gradient* grad, float cx, float cy, float radius);
1824 TVG_API Tvg_Result tvg_radial_gradient_get(Tvg_Gradient* grad, float* cx, float* cy, float* radius);
Dthorvg.h805 Result radial(float cx, float cy, float radius) noexcept;
817 Result radial(float* cx, float* cy, float* radius) const noexcept;
959 Result appendCircle(float cx, float cy, float rx, float ry) noexcept;
976 …Result appendArc(float cx, float cy, float radius, float startAngle, float sweep, bool pie) noexce…
/lvgl-latest/libs/nema_gfx/include/
Dnema_vg.h175 uint32_t nema_vg_draw_ellipse(float cx, float cy, float rx, float ry,
190 uint32_t nema_vg_draw_circle(float cx, float cy, float r,
209 uint32_t nema_vg_draw_ring(float cx, float cy, float ring_radius, float angle_start, float angle_en…
228 uint32_t nema_vg_draw_ring_generic(float cx, float cy, float ring_radius, float angle_start, float …
Dnema_vg_paint.h172 float cx, float cy,
/lvgl-latest/src/draw/
Dlv_draw_vector.c75 dst->stroke_dsc.gradient.cy = src->stroke_dsc.gradient.cy; in _copy_draw_dsc()
330 float cy = c->y; in lv_vector_path_append_circle() local
334 pt.y = cy - ry; in lv_vector_path_append_circle()
338 pt.y = cy - ry; in lv_vector_path_append_circle()
340 pt2.y = cy - kry; in lv_vector_path_append_circle()
342 pt3.y = cy; in lv_vector_path_append_circle()
346 pt.y = cy + kry; in lv_vector_path_append_circle()
348 pt2.y = cy + ry; in lv_vector_path_append_circle()
350 pt3.y = cy + ry; in lv_vector_path_append_circle()
354 pt.y = cy + ry; in lv_vector_path_append_circle()
[all …]
Dlv_draw_vector_private.h44 float cy; member
Dlv_draw_vector.h300 void lv_vector_dsc_set_fill_radial_gradient(lv_vector_dsc_t * dsc, float cx, float cy, float radius…
398 void lv_vector_dsc_set_stroke_radial_gradient(lv_vector_dsc_t * dsc, float cx, float cy, float radi…
/lvgl-latest/tests/src/test_cases/
Dtest_math.c27 float ax, bx, cx, ay, by, cy; in lv_cubic_bezier_f() local
38 cy = 3.f * y1; in lv_cubic_bezier_f()
39 by = 3.f * (y2 - y1) - cy; in lv_cubic_bezier_f()
40 ay = 1.f - cy - by; in lv_cubic_bezier_f()
75 return do_cubic_bezier_f(t, ay, by, cy); in lv_cubic_bezier_f()
/lvgl-latest/src/misc/
Dlv_math.c128 int32_t ax, bx, cx, ay, by, cy; in lv_cubic_bezier() local
153 cy = 3 * y1; in lv_cubic_bezier()
154 by = 3 * (y2 - y1) - cy; in lv_cubic_bezier()
155 ay = (1L << CUBIC_PRECISION_BITS) - cy - by; in lv_cubic_bezier()
202 return do_cubic_bezier(t, ay, by, cy) >> (CUBIC_PRECISION_BITS - LV_BEZIER_VAL_SHIFT); in lv_cubic_bezier()
204 return do_cubic_bezier(t, ay, by, cy); in lv_cubic_bezier()
/lvgl-latest/src/draw/nema_gfx/
Dlv_nema_gfx_path.c124 void lv_nema_gfx_path_quad_to(lv_nema_gfx_path_t * path, float cx, float cy, float x, float y) in lv_nema_gfx_path_quad_to() argument
131 path->data[data_point++] = cy; in lv_nema_gfx_path_quad_to()
Dlv_nema_gfx_path.h78 float cx, float cy,
/lvgl-latest/src/libs/svg/
Dlv_svg_render.c119 float cy; member
126 float cy; member
356 grad->dsc.cy = attr->value.fval; in _set_gradient_attr()
414 circle->cy = attr->value.fval; in _set_circle_attr()
431 ellipse->cy = attr->value.fval; in _set_ellipse_attr()
929 grad_dsc->cy = PCT_TO_PX(grad_dsc->cy, h); in _set_gradient_ref()
1141 grad->dsc.cy = 0.5f; in _init_gradient()
1308 lv_fpoint_t cp = {circle->cx, circle->cy}; in _render_circle()
1329 lv_fpoint_t cp = {ellipse->cx, ellipse->cy}; in _render_ellipse()
1690 area->y1 = (int32_t)(circle->cy - circle->r); in _get_circle_bounds()
[all …]
/lvgl-latest/src/widgets/chart/
Dlv_chart.c1202 int32_t cy; in draw_cursors() local
1205 cy = cursor->pos.y; in draw_cursors()
1212 cy = p.y; in draw_cursors()
1216 cy += obj->coords.y1; in draw_cursors()
1222 point_area.y1 = cy - point_h; in draw_cursors()
1223 point_area.y2 = cy + point_h; in draw_cursors()
1227 line_dsc.p1.y = cy; in draw_cursors()
1243 line_dsc.p1.y = cursor->dir & LV_DIR_TOP ? obj->coords.y1 : cy; in draw_cursors()
1245 line_dsc.p2.y = cursor->dir & LV_DIR_BOTTOM ? obj->coords.y2 : cy; in draw_cursors()
/lvgl-latest/src/libs/tiny_ttf/
Dstb_truetype_htcw.h866 stbtt_vertex_type x, y, cx, cy, cx1, cy1; member
1795 stbtt_int32 cy) argument
1801 v->cy = (stbtt_int16)cy;
1862 … stbtt_int32 sx, stbtt_int32 sy, stbtt_int32 scx, stbtt_int32 scy, stbtt_int32 cx, stbtt_int32 cy) argument
1866 …stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, (cx + scx) >> 1, (cy + scy) >> 1, cx, cy);
1871 stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, sx, sy, cx, cy);
1900 stbtt_int32 x, y, cx, cy, sx, sy, scx, scy; local
1971 sx = sy = cx = cy = scx = scy = 0;
1979 …ertices = stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx, sy, scx, scy, cx, cy);
2012 … stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, (cx + x) >> 1, (cy + y) >> 1, cx, cy);
[all …]

12