Home | History | Annotate | Download | only in vega

Lines Matching full:bounds

326    VGfloat bounds[4];
339 polygon_bounding_rect((((struct polygon**)polys->data)[0]), bounds);
340 min_x = bounds[0];
341 min_y = bounds[1];
342 max_x = bounds[0] + bounds[2];
343 max_y = bounds[1] + bounds[3];
346 polygon_bounding_rect(p, bounds);
347 min_x = MIN2(min_x, bounds[0]);
348 min_y = MIN2(min_y, bounds[1]);
349 max_x = MAX2(max_x, bounds[0] + bounds[2]);
350 max_y = MAX2(max_y, bounds[1] + bounds[3]);
1669 VGfloat *bounds)
1671 bounds[0] = MIN2(line[0], line[2]);
1672 bounds[1] = MIN2(line[1], line[3]);
1673 bounds[2] = MAX2(line[0], line[2]) - bounds[0];
1674 bounds[3] = MAX2(line[1], line[3]) - bounds[1];
1677 static INLINE void unite_bounds(VGfloat *bounds,
1683 cx1 = bounds[0];
1684 cy1 = bounds[1];
1685 cx2 = bounds[0] + bounds[2];
1686 cy2 = bounds[1] + bounds[3];
1693 bounds[0] = MIN2(cx1, nx1);
1694 bounds[1] = MIN2(cy1, ny1);
1695 bounds[2] = MAX2(cx2, nx2) - bounds[0];
1696 bounds[3] = MAX2(cy2, ny2) - bounds[1];
1699 static INLINE void set_bounds(VGfloat *bounds,
1704 memcpy(bounds, element_bounds, 4 * sizeof(VGfloat));
1707 unite_bounds(bounds, element_bounds);
1717 VGfloat bounds[4];
1723 memset(&bounds, 0, sizeof(bounds));
1726 bounds[2] = -1;
1727 bounds[3] = -1;
1750 set_bounds(bounds, element_bounds, &bounds_inited);
1760 set_bounds(bounds, element_bounds, &bounds_inited);
1781 set_bounds(bounds, element_bounds, &bounds_inited);
1789 *x = bounds[0];
1790 *y = bounds[1];
1791 *w = bounds[2];
1792 *h = bounds[3];