/haiku/headers/cpp/ |
H A D | PlotFile.h | 71 const int x1, const int y1); 73 const int x1, const int y1); 81 const int x1, const int y1); 86 const int x1, const int y1);
|
/haiku/headers/libs/agg/ |
H A D | agg_basics.h | 287 T x1, y1, x2, y2; member in struct:agg::rect_base 291 x1(x1_), y1(y1_), x2(x2_), y2(y2_) {} 295 x1 = x1_; y1 = y1_; x2 = x2_; y2 = y2_; 302 if(y1 > y2) { t = y1; y1 = y2; y2 = t; } 311 if(y1 < r.y1) y1 = r.y1; [all...] |
H A D | agg_bezier_arc.h | 93 // Computes an elliptical arc from (x1, y1) to (x2, y2). The size and 107 bezier_arc_svg(double x1, double y1, argument 115 init(x1, y1, rx, ry, angle, large_arc_flag, sweep_flag, x2, y2); 119 void init(double x1, double y1,
|
H A D | agg_bounding_rect.h | 31 CoordT* x1, CoordT* y1, CoordT* x2, CoordT* y2) 39 *y1 = CoordT(1); 54 *y1 = CoordT(y); 62 if(CoordT(y) < *y1) *y1 = CoordT(y); 69 return *x1 <= *x2 && *y1 <= *y2; 76 CoordT* x1, CoordT* y1, CoordT* x2, CoordT* y2) 83 *y1 = CoordT(1); 96 *y1 = CoordT(y); 104 if(CoordT(y) < *y1) *y 29 bounding_rect(VertexSource& vs, GetId& gi, unsigned start, unsigned num, CoordT* x1, CoordT* y1, CoordT* x2, CoordT* y2) argument 75 bounding_rect_single(VertexSource& vs, unsigned path_id, CoordT* x1, CoordT* y1, CoordT* x2, CoordT* y2) argument [all...] |
H A D | agg_clip_liang_barsky.h | 49 // -------+--------+-------- clip_box.y1 62 ((y < clip_box.y1) << 3); 77 return ((y > clip_box.y2) << 1) | ((y < clip_box.y1) << 3); 83 inline unsigned clip_liang_barsky(T x1, T y1, T x2, T y2, argument 90 double deltay = y2 - y1; 113 deltay = (y1 > clip_box.y1) ? -nearzero : nearzero; 131 yin = clip_box.y1; 137 yout = clip_box.y1; 141 tiny = (yin - y1) / delta 234 clip_move_point(T x1, T y1, T x2, T y2, const rect_base<T>& clip_box, T* x, T* y, unsigned flags) argument 271 clip_line_segment(T* x1, T* y1, T* x2, T* y2, const rect_base<T>& clip_box) argument [all...] |
H A D | agg_conv_clip_polygon.h | 45 void clip_box(double x1, double y1, double x2, double y2) argument 47 base_type::vpgen().clip_box(x1, y1, x2, y2); 51 double y1() const { return base_type::vpgen().y1(); } function in struct:agg::conv_clip_polygon
|
H A D | agg_conv_clip_polyline.h | 45 void clip_box(double x1, double y1, double x2, double y2) argument 47 base_type::vpgen().clip_box(x1, y1, x2, y2); 51 double y1() const { return base_type::vpgen().y1(); } function in struct:agg::conv_clip_polyline
|
H A D | agg_conv_marker.h | 90 double x1, y1, x2, y2; local 108 if(is_stop(m_marker_locator->vertex(&x1, &y1))) 120 m_mtx *= trans_affine_rotation(atan2(y2 - y1, x2 - x1)); 121 m_mtx *= trans_affine_translation(x1, y1);
|
H A D | agg_dda_line.h | 37 dda_line_interpolator(int y1, int y2, unsigned count) : argument 38 m_y(y1), 39 m_inc(((y2 - y1) << FractionShift) / int(count)), 95 dda2_line_interpolator(int y1, int y2, int count) : argument 97 m_lft((y2 - y1) / m_cnt), 98 m_rem((y2 - y1) % m_cnt), 100 m_y(y1) 112 dda2_line_interpolator(int y1, int y2, int count, int) : argument 114 m_lft((y2 - y1) / m_cnt), 115 m_rem((y2 - y1) 231 line_bresenham_interpolator(int x1, int y1, int x2, int y2) argument 267 int y1() const { return m_y1_lr; } function in class:agg::line_bresenham_interpolator [all...] |
H A D | agg_glyph_raster_bin.h | 34 int x1,y1,x2,y2; member in struct:agg::glyph_raster_bin::glyph_rect 91 r->y1 = int(y) - m_font[0] + m_font[1]; 92 r->y2 = r->y1 + m_font[0] - 1; 96 r->y1 = int(y) - m_font[1] + 1; 97 r->y2 = r->y1 + m_font[0] - 1;
|
H A D | agg_line_aa_basics.h | 86 x1(x1_), y1(y1_), x2(x2_), y2(y2_), 118 int ymid = (y1 + y2) >> 1; 128 lp1.dy = abs(lp1.y2 - lp1.y1); 131 lp2.y1 = ymid; 134 lp2.dy = abs(lp2.y2 - lp2.y1); 138 int x1, y1, x2, y2, dx, dy, sx, sy; member in struct:agg::line_parameters 163 int d = iround((double(*x - lp.x2) * double(lp.y2 - lp.y1) - 167 *x = lp.x1 + (lp.y2 - lp.y1); 168 *y = lp.y1 - (lp.x2 - lp.x1); 177 int d = iround((double(*x - lp.x2) * double(lp.y2 - lp.y1) [all...] |
H A D | agg_math.h | 37 AGG_INLINE double cross_product(double x1, double y1, argument 41 return (x - x2) * (y2 - y1) - (y - y2) * (x2 - x1); 45 AGG_INLINE bool point_in_triangle(double x1, double y1, argument 50 bool cp1 = cross_product(x1, y1, x2, y2, x, y) < 0.0; 52 bool cp3 = cross_product(x3, y3, x1, y1, x, y) < 0.0; 57 AGG_INLINE double calc_distance(double x1, double y1, double x2, double y2) 60 double dy = y2-y1; 65 AGG_INLINE double calc_sq_distance(double x1, double y1, double x2, double y2) 68 double dy = y2-y1; 73 AGG_INLINE double calc_line_point_distance(double x1, double y1, [all...] |
H A D | agg_path_length.h | 29 double y1 = 0.0; local 47 len += calc_distance(x1, y1, x2, y2); 50 y1 = y2; 57 len += calc_distance(x1, y1, start_x, start_y);
|
H A D | agg_path_storage.h | 551 line_adaptor(double x1, double y1, double x2, double y2) : argument 555 m_coord[1] = y1; 560 void init(double x1, double y1, double x2, double y2) argument 563 m_coord[1] = y1; 713 // between x1 and x2, or between y1 and y2 respectively 716 void flip_y(double y1, double y2); 1186 double x1, y1, x2, y2; local 1187 m_vertices.vertex(start + i, &x1, &y1); 1189 area += x1 * y2 - y1 * x2; 1335 void path_base<VC>::flip_y(double y1, doubl argument [all...] |
H A D | agg_path_storage_integer.h | 172 bounds.x1 = bounds.y1 = bounds.x2 = bounds.y2 = 0.0; 182 if(y < bounds.y1) bounds.y1 = y;
|
H A D | agg_pixfmt_amask_adaptor.h | 71 bool attach_pixfmt(PixFmt_& pixf, int x1, int y1, int x2, int y2) argument 73 return m_pixf->attach(pixf, x1, y1, x2, y2);
|
H A D | agg_pixfmt_gray.h | 183 bool attach(PixFmt& pixf, int x1, int y1, int x2, int y2) argument 185 rect_i r(x1, y1, x2, y2); 189 m_rbuf->attach(pixf.pix_ptr(r.x1, stride < 0 ? r.y2 : r.y1), 191 (r.y2 - r.y1) + 1,
|
H A D | agg_pixfmt_rgb.h | 241 bool attach(PixFmt& pixf, int x1, int y1, int x2, int y2) argument 243 rect_i r(x1, y1, x2, y2); 247 m_rbuf->attach(pixf.pix_ptr(r.x1, stride < 0 ? r.y2 : r.y1), 249 (r.y2 - r.y1) + 1,
|
H A D | agg_pixfmt_rgb_packed.h | 836 bool attach(PixFmt& pixf, int x1, int y1, int x2, int y2) argument 838 rect_i r(x1, y1, x2, y2); 842 m_rbuf->attach(pixf.pix_ptr(r.x1, stride < 0 ? r.y2 : r.y1), 844 (r.y2 - r.y1) + 1,
|
H A D | agg_pixfmt_rgba.h | 1780 bool attach(PixFmt& pixf, int x1, int y1, int x2, int y2) argument 1782 rect_i r(x1, y1, x2, y2); 1786 m_rbuf->attach(pixf.pix_ptr(r.x1, stride < 0 ? r.y2 : r.y1), 1788 (r.y2 - r.y1) + 1, 2365 bool attach(PixFmt& pixf, int x1, int y1, int x2, int y2) argument 2367 rect_i r(x1, y1, x2, y2); 2371 m_rbuf->attach(pixf.pix_ptr(r.x1, stride < 0 ? r.y2 : r.y1), 2373 (r.y2 - r.y1) + 1,
|
H A D | agg_rasterizer_cells_aa.h | 70 void line(int x1, int y1, int x2, int y2); 102 void render_hline(int ey, int x1, int y1, int x2, int y2); 212 int x1, int y1, 224 if(y1 == y2) 233 delta = y2 - y1; 241 p = (poly_subpixel_scale - fx1) * (y2 - y1); 249 p = fx1 * (y2 - y1); 269 y1 += delta; 273 p = poly_subpixel_scale * (y2 - y1 + delta); 297 y1 211 render_hline(int ey, int x1, int y1, int x2, int y2) argument 316 line(int x1, int y1, int x2, int y2) argument [all...] |
H A D | agg_rasterizer_compound_aa.h | 125 void clip_box(double x1, double y1, double x2, double y2); 137 void edge(int x1, int y1, int x2, int y2); 138 void edge_d(double x1, double y1, double x2, double y2); 318 void rasterizer_compound_aa<Clip>::clip_box(double x1, double y1, argument 322 m_clipper.clip_box(conv_type::upscale(x1), conv_type::upscale(y1), 407 void rasterizer_compound_aa<Clip>::edge(int x1, int y1, int x2, int y2) argument 410 m_clipper.move_to(conv_type::downscale(x1), conv_type::downscale(y1)); 418 void rasterizer_compound_aa<Clip>::edge_d(double x1, double y1, argument 422 m_clipper.move_to(conv_type::upscale(x1), conv_type::upscale(y1));
|
H A D | agg_rasterizer_outline_aa.h | 75 int x1, y1, x2, y2; member in struct:agg::rasterizer_outline_aa::draw_vars 240 dv.xb1 = dv.curr.x1 + (dv.curr.y2 - dv.curr.y1); 241 dv.yb1 = dv.curr.y1 - (dv.curr.x2 - dv.curr.x1); 242 dv.xb2 = dv.curr.x2 + (dv.curr.y2 - dv.curr.y1); 257 dv.curr.x2 + (dv.curr.y2 - dv.curr.y1), 259 dv.curr.x2 + (dv.next.y2 - dv.next.y1), 264 dv.y1 = dv.y2; 276 dv.next = line_parameters(dv.x1, dv.y1, dv.x2, dv.y2, dv.lnext); 321 int y1; local 334 y1 [all...] |
H A D | agg_rasterizer_scanline_aa.h | 84 // vertices, i.e. move_to(x1, y1); line_to(x2, y2); line_to(x3, y3); 155 void clip_box(double x1, double y1, double x2, double y2); 183 void edge(int x1, int y1, int x2, int y2); 184 void edge_d(double x1, double y1, double x2, double y2); 340 void rasterizer_scanline_aa<Clip>::clip_box(double x1, double y1, argument 344 m_clipper.clip_box(conv_type::upscale(x1), conv_type::upscale(y1), 431 void rasterizer_scanline_aa<Clip>::edge(int x1, int y1, int x2, int y2) argument 434 m_clipper.move_to(conv_type::downscale(x1), conv_type::downscale(y1)); 443 void rasterizer_scanline_aa<Clip>::edge_d(double x1, double y1, argument 447 m_clipper.move_to(conv_type::upscale(x1), conv_type::upscale(y1)); [all...] |
H A D | agg_rasterizer_sl_clip.h | 129 void clip_box(coord_type x1, coord_type y1, coord_type x2, coord_type y2) argument 131 m_clip_box = rect_type(x1, y1, x2, y2); 137 void move_to(coord_type x1, coord_type y1) argument 140 m_y1 = y1; 141 if(m_clipping) m_f1 = clipping_flags(x1, y1, m_clip_box); 148 coord_type x1, coord_type y1, 157 ras.line(Conv::xi(x1), Conv::yi(y1), Conv::xi(x2), Conv::yi(y2)); 168 coord_type ty1 = y1; 172 if(f1 & 8) // y1 < clip.y1 147 line_clip_y(Rasterizer& ras, coord_type x1, coord_type y1, coord_type x2, coord_type y2, unsigned f1, unsigned f2) const argument 220 coord_type y1 = m_y1; local 320 clip_box(coord_type x1, coord_type y1, coord_type x2, coord_type y2) argument 321 move_to(coord_type x1, coord_type y1) argument [all...] |