Home
last modified time | relevance | path

Searched refs:pt2 (Results 1 – 9 of 9) sorted by relevance

/lvgl-latest/src/libs/thorvg/
DtvgLottieModifier.cpp61 if (_zero(line1.pt2, line2.pt1)) { in _intersect()
62 intersection = line1.pt2; in _intersect()
68 …float denom = (line1.pt2.x - line1.pt1.x) * (line2.pt2.y - line2.pt1.y) - (line1.pt2.y - line1.pt1… in _intersect()
71 …at t = ((line2.pt1.x - line1.pt1.x) * (line2.pt2.y - line2.pt1.y) - (line2.pt1.y - line1.pt1.y) * … in _intersect()
72 …at u = ((line2.pt1.x - line1.pt1.x) * (line1.pt2.y - line1.pt1.y) - (line2.pt1.y - line1.pt1.y) * … in _intersect()
74 intersection.x = line1.pt1.x + t * (line1.pt2.x - line1.pt1.x); in _intersect()
75 intersection.y = line1.pt1.y + t * (line1.pt2.y - line1.pt1.y); in _intersect()
111 outPts.push(line.pt2); in corner()
114 outPts.push((line.pt2 + intersect) * 0.5f); in corner()
118 auto norm = normal(line.pt1, line.pt2); in corner()
[all …]
DtvgMath.cpp35 static float _lineLengthApprox(const Point& pt1, const Point& pt2) in _lineLengthApprox() argument
40 Point diff = {pt2.x - pt1.x, pt2.y - pt1.y}; in _lineLengthApprox()
47 static float _lineLength(const Point& pt1, const Point& pt2) in _lineLength() argument
49 Point diff = {pt2.x - pt1.x, pt2.y - pt1.y}; in _lineLength()
230 return _lineLength(pt1, pt2); in length()
237 auto dx = ((pt2.x - pt1.x) / len) * at; in split()
238 auto dy = ((pt2.y - pt1.y) / len) * at; in split()
240 left.pt2.x = left.pt1.x + dx; in split()
241 left.pt2.y = left.pt1.y + dy; in split()
242 right.pt1 = left.pt2; in split()
[all …]
DtvgPaint.cpp104 auto pt2 = pts + 1; in _compFastTrack() local
108 …if ((tvg::equal(pt1->x, pt2->x) && tvg::equal(pt2->y, pt3->y) && tvg::equal(pt3->x, pt4->x) && tvg… in _compFastTrack()
109 …(tvg::equal(pt2->x, pt3->x) && tvg::equal(pt1->y, pt2->y) && tvg::equal(pt1->x, pt4->x) && tvg::eq… in _compFastTrack()
DtvgSwShape.cpp133 _outlineLineTo(*dash.outline, &left.pt2, transform); in _dashLineTo()
152 _outlineLineTo(*dash.outline, &cur.pt2, transform); in _dashLineTo()
430 auto pt2 = outline->pts.data + 1; in _axisAlignedRect() local
437 if ((*pt2 == a && *pt4 == b) || (*pt2 == b && *pt4 == a)) return true; in _axisAlignedRect()
DtvgSwStroke.cpp87 auto pt2 = border->pts + count - 1; in _borderClose() local
89 while (pt1 < pt2) { in _borderClose()
91 *pt1 = *pt2; in _borderClose()
92 *pt2 = tmp; in _borderClose()
94 --pt2; in _borderClose()
DtvgMath.h265 Point pt2; member
DtvgLottieExpressions.cpp453 Point pt2 = {(float)jerry_value_as_number(val3), (float)jerry_value_as_number(val4)}; in _interp() local
455 ret = lerp(pt1, pt2, t); in _interp()
/lvgl-latest/src/draw/
Dlv_draw_vector.c268 lv_fpoint_t pt, pt2, pt3; in lv_vector_path_append_rect() local
280 pt2.x = x + w; in lv_vector_path_append_rect()
281 pt2.y = y + ry - hry; in lv_vector_path_append_rect()
284 lv_vector_path_cubic_to(path, &pt, &pt2, &pt3); in lv_vector_path_append_rect()
292 pt2.x = x + w - rx + hrx; in lv_vector_path_append_rect()
293 pt2.y = y + h; in lv_vector_path_append_rect()
296 lv_vector_path_cubic_to(path, &pt, &pt2, &pt3); in lv_vector_path_append_rect()
304 pt2.x = x; in lv_vector_path_append_rect()
305 pt2.y = y + h - ry + hry; in lv_vector_path_append_rect()
308 lv_vector_path_cubic_to(path, &pt, &pt2, &pt3); in lv_vector_path_append_rect()
[all …]
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_vector.c110 lv_fpoint_t * pt2 = lv_array_at(&p->points, pidx + 1); in _set_paint_shape() local
117 cp[1].x = (pt2->x + 2 * pt1->x) * (1.0f / 3.0f); in _set_paint_shape()
118 cp[1].y = (pt2->y + 2 * pt1->y) * (1.0f / 3.0f); in _set_paint_shape()
120 tvg_shape_cubic_to(obj, cp[0].x, cp[0].y, cp[1].x, cp[1].y, pt2->x, pt2->y); in _set_paint_shape()
126 lv_fpoint_t * pt2 = lv_array_at(&p->points, pidx + 1); in _set_paint_shape() local
129 tvg_shape_cubic_to(obj, pt1->x, pt1->y, pt2->x, pt2->y, pt3->x, pt3->y); in _set_paint_shape()