/inkscape/src/ |
H A D | sp-linear-gradient.h | 22 SVGLength x2; member in class:SPLinearGradient
|
H A D | sp-line.h | 30 SVGLength x2; member in class:SPLine
|
/inkscape/src/live_effects/ |
H A D | spiro-converters.cpp | 60 ConverterSPCurve::curveto(double x1, double y1, double x2, double y2, double x3, double y3, bool close_last)
argument 62 if ( IS_FINITE(x1) && IS_FINITE(y1) && IS_FINITE(x2) && IS_FINITE(y2) ) {
63 _curve.curveto(x1, y1, x2, y2, x3, y3);
112 ConverterPath::curveto(double x1, double y1, double x2, double y2, double x3, double y3, bool close_last)
argument 114 if ( IS_FINITE(x1) && IS_FINITE(y1) && IS_FINITE(x2) && IS_FINITE(y2) ) {
115 _path.appendNew<Geom::CubicBezier>(Geom::Point(x1, y1), Geom::Point(x2, y2), Geom::Point(x3, y3));
|
H A D | lpe-ellipse_5pts.cpp | 169 double x0, y0, x1, y1, x2, y2, x3, y3; local 188 x2 = x3 + len * cos(e - M_PI_2); 190 p.appendNew<Geom::CubicBezier>(Geom::Point(x1,y1), Geom::Point(x2,y2), Geom::Point(x3,y3));
|
H A D | lpe-envelope.cpp | 117 Piecewise<SBasis> x2 = x ; local 119 x2 -= boundingbox_X.extent(); 181 output_x = x*(compose((uskeleton2),y2) + -x2*compose(n2,y2) )
|
/inkscape/src/display/ |
H A D | sp-canvas-util.cpp | 20 void sp_canvas_update_bbox(SPCanvasItem *item, int x1, int y1, int x2, int y2) argument 22 item->canvas->requestRedraw((int)item->x1, (int)item->y1, (int)item->x2, (int)item->y2); 25 item->x2 = x2; 27 item->canvas->requestRedraw((int)item->x1, (int)item->y1, (int)item->x2, (int)item->y2); 35 item->x2 = 0.0;
|
H A D | sp-canvas-item.h | 60 double x2; member in struct:SPCanvasItem
|
H A D | sp-ctrlcurve.cpp | 103 item->canvas->requestRedraw(item->x1, item->y1, item->x2, item->y2); 113 item->x1 = item->x2 = item->y1 = item->y2 = 0; 143 item->x2 = round( max_x + 1 ); 146 item->canvas->requestRedraw(item->x1, item->y1, item->x2, item->y2); 157 gdouble x2, gdouble y2, gdouble x3, gdouble y3 ) 162 Geom::Point q2( x2, y2 ); 156 setCoords( gdouble x0, gdouble y0, gdouble x1, gdouble y1, gdouble x2, gdouble y2, gdouble x3, gdouble y3 ) argument
|
H A D | curve.cpp | 241 * Calls SPCurve::quadto( Geom::Point(x1,y1), Geom::Point(x2,y2) ) 245 SPCurve::quadto(double x1, double y1, double x2, double y2) argument 247 quadto( Geom::Point(x1,y1), Geom::Point(x2,y2) ); 261 * Calls SPCurve::curveto( Geom::Point(x0,y0), Geom::Point(x1,y1), Geom::Point(x2,y2) ) 265 SPCurve::curveto(double x0, double y0, double x1, double y1, double x2, double y2) argument 267 curveto( Geom::Point(x0,y0), Geom::Point(x1,y1), Geom::Point(x2,y2) );
|
H A D | sp-canvas.cpp | 271 int x1 = (int)(item->x2); 276 item->canvas->requestRedraw((int)(item->x1 - 1), (int)(item->y1 -1), (int)(item->x2 + 1), (int)(item->y2 + 1)); 555 int x1 = (int)(item->x2); 560 item->canvas->requestRedraw((int)(item->x1), (int)(item->y1), (int)(item->x2 + 1), (int)(item->y2 + 1)); 580 int x1 = (int)(item->x2); 585 item->canvas->requestRedraw((int)item->x1, (int)item->y1, (int)(item->x2 + 1), (int)(item->y2 + 1)); 789 if ( (i->x2 > i->x1) && (i->y2 > i->y1) ) { 791 bounds.expandTo(Geom::Point(i->x2, i->y2)); 798 item->x2 = bounds->max()[Geom::X]; 802 item->x1 = item->x2 813 int x2 = (int)(x + item->canvas->_close_enough); local [all...] |
/inkscape/src/extension/internal/ |
H A D | odf.h | 181 x2 = other.x2; 197 x2 = 0.0; 218 x2 != other.x2 || 245 double x2; member in class:Inkscape::Extension::Internal::GradientInfo
|
H A D | metafile-print.cpp | 344 gv.p2 = Geom::Point(lg->x2.computed, lg->y2.computed); // end 382 double x1, y1, x2, y2; local 387 x2 = ctr[X] + cos(F) * rx * cos(M_PI) + sin(-F) * ry * sin(M_PI); 391 sprintf(text, " M %f,%f A %f %f %f 0 0 %f %f A %f %f %f 0 0 %f %f z", x1, y1, rx, ry, F * 360. / (2.*M_PI), x2, y2, rx, ry, F * 360. / (2.*M_PI), x1, y1); 432 double x1, y1, x2, y2; local 437 x2 = ctr[X] + cos(F) * rx * cos(M_PI) + sin(-F) * ry * sin(M_PI); 442 x1, y1, rx, ry, F * 360. / (2.*M_PI), x2, y2, rx, ry, F * 360. / (2.*M_PI), x1, y1);
|
H A D | wmf-print.cpp | 1005 int32_t const x2 = (int32_t) round(p2[X]); local 1012 lpPoints[i + 1].x = x2;
|
/inkscape/src/libavoid/ |
H A D | geomtypes.cpp | 272 static void shorten_line(double& x1, double& y1, double& x2, double& y2, 281 double run = x1 - x2; 291 x1 = x2 = x1 - (run / 2); 299 x1 = x2; 307 x2 = x1; 313 if (x1 == x2) 331 int sign = (x1 < x2) ? 1: -1; 339 x2 -= (sign * shorten_length); 344 int xpos = (x1 < x2) ? -1 : 1; 354 x2 159 COLA_ASSERT(index < size()); const Polygon& poly = *(ps[index].first); unsigned short poly_index = ps[index].second; COLA_ASSERT(poly_index < poly.size()); return poly.ps[poly_index]; } void PolygonInterface::getBoundingRect(double *minX, double *minY, double *maxX, double *maxY) const { double progressiveMinX = DBL_MAX; double progressiveMinY = DBL_MAX; double progressiveMaxX = -DBL_MAX; double progressiveMaxY = -DBL_MAX; for (size_t i = 0; i < size(); ++i) { progressiveMinX = std::min(progressiveMinX, at(i).x); progressiveMinY = std::min(progressiveMinY, at(i).y); progressiveMaxX = std::max(progressiveMaxX, at(i).x); progressiveMaxY = std::max(progressiveMaxY, at(i).y); } if (minX) { *minX = progressiveMinX; } if (maxX) { *maxX = progressiveMaxX; } if (minY) { *minY = progressiveMinY; } if (maxY) { *maxY = progressiveMaxY; } } Polygon::Polygon() : PolygonInterface() { clear(); } Polygon::Polygon(const int pn) : PolygonInterface(), ps(pn) { } Polygon::Polygon(const PolygonInterface& poly) : PolygonInterface(), _id(poly.id()), ps(poly.size()) { for (size_t i = 0; i < poly.size(); ++i) { ps[i] = poly.at(i); } } void Polygon::clear(void) { ps.clear(); ts.clear(); } bool Polygon::empty(void) const { return ps.empty(); } size_t Polygon::size(void) const { return ps.size(); } int Polygon::id(void) const { return _id; } const Point& Polygon::at(size_t index) const { COLA_ASSERT(index < size()); return ps[index]; } static const unsigned int SHORTEN_NONE = 0; static const unsigned int SHORTEN_START = 1; static const unsigned int SHORTEN_END = 2; static const unsigned int SHORTEN_BOTH = SHORTEN_START | SHORTEN_END; static void shorten_line(double& x1, double& y1, double& x2, double& y2, const unsigned int mode, const double shorten_length) { if (mode == SHORTEN_NONE) { return; } double rise = y1 - y2; double run = x1 - x2; double disty = fabs(rise); double distx = fabs(run); if ((mode == SHORTEN_BOTH) && (((distx > disty) && ((shorten_length * 2) > distx)) || ((disty >= distx) && ((shorten_length * 2) > disty)))) { x1 = x2 = x1 - (run / 2); y1 = y2 = y1 - (rise / 2); return; } else if ((mode == SHORTEN_START) && (((distx > disty) argument 452 double x2 = simplified.ps[1].x; local 470 double x2 = simplified.ps[j % simpSize].x; local [all...] |
/inkscape/src/livarot/ |
H A D | Path.h | 287 double x1, y1, x2, y2; member in struct:Path::outline_callback_data
|
H A D | PathCutting.cpp | 321 gdouble x2=nData->p[0]-0.333333*nData->end[0]; local 325 currentpath->appendNew<Geom::CubicBezier>( Geom::Point(x1,y1) , Geom::Point(x2,y2) , Geom::Point(x3,y3) ); 340 gdouble x2=0.333333*(nData->p[0]+2*iData->p[0]); local 344 currentpath->appendNew<Geom::CubicBezier>( Geom::Point(x1,y1) , Geom::Point(x2,y2) , Geom::Point(x3,y3) ); 370 gdouble x2=cp2[0]; local 374 currentpath->appendNew<Geom::CubicBezier>( Geom::Point(x1,y1) , Geom::Point(x2,y2) , Geom::Point(x3,y3) );
|
/inkscape/src/trace/potrace/ |
H A D | inkscape-potrace.cpp | 151 double x2 = pt[2].x; local 154 if (hasPoint(points, x2, y2)) 156 //g_message("duplicate point: (%f,%f)\n", x2, y2); 162 p.x = x2; p.y = y2; 165 data.moveTo(x2, y2); 177 x2 = pt[2].x; 182 data.lineTo(x1, y1).lineTo(x2, y2); 185 data.curveTo(x0, y0, x1, y1, x2, y2);
|
/inkscape/src/trace/ |
H A D | quantize.cpp | 440 * included in the specified (x1,y1)--(x2,y2) rectangle. 443 int x1, int y1, int x2, int y2, int ncolor) 445 int dx = x2 - x1, dy = y2 - y1; 454 octreeBuildArea(pool, rgbmap, &ref2, xm, y1, x2, y2, ncolor); 459 octreeBuildArea(pool, rgbmap, &ref1, x1, y1, x2, ym, ncolor); 460 octreeBuildArea(pool, rgbmap, &ref2, x1, ym, x2, y2, ncolor); 442 octreeBuildArea(pool<Ocnode> *pool, RgbMap *rgbmap, Ocnode **ref, int x1, int y1, int x2, int y2, int ncolor) argument
|
/inkscape/src/2geom/ |
H A D | line.h | 333 Coord x2 = v[X]*v[X], y2 = v[Y]*v[Y], xy = v[X]*v[Y]; local 334 Affine m(x2-y2, 2.*xy, 335 2.*xy, y2-x2,
|
/inkscape/src/helper/ |
H A D | geom.cpp | 630 const double x2, const double y2, 655 double x12 = (x1 + x2) / 2; 657 double x23 = (x2 + x3) / 2; 674 double d2 = fabs(((x2 - x4) * dy - (y2 - y4) * dx)); 687 d2 = calc_sq_distance(x1, y1, x2, y2); 693 da1 = x2 - x1; 705 if(d2 <= 0) d2 = calc_sq_distance(x2, y2, x1, y1); 706 else if(d2 >= 1) d2 = calc_sq_distance(x2, y2, x4, y4); 707 else d2 = calc_sq_distance(x2, y2, x1 + d2*dx, y1 + d2*dy); 717 m_points.push_back(Geom::Point(x2, y 629 recursive_bezier4(const double x1, const double y1, const double x2, const double y2, const double x3, const double y3, const double x4, const double y4, std::vector<Geom::Point> &m_points, int level) argument [all...] |
/inkscape/src/ui/dialog/ |
H A D | layers.cpp | 588 int x2 = 0; local 590 if ( _tree.get_path_at_pos( x, y, path, col, x2, y2 ) ) { 606 int x2 = 0; local 608 if ( _tree.get_path_at_pos( x, y, path, col, x2, y2 ) ) { 645 int x2 = 0; local 647 if ( _tree.get_path_at_pos( x, y, path, col, x2, y2 ) && col == _name_column) {
|
H A D | tags.cpp | 602 int x2 = 0; local 604 if ( _tree.get_path_at_pos( x, y, path, col, x2, y2 ) ) { 630 int x2 = 0; local 632 if ( _tree.get_path_at_pos( x, y, path, col, x2, y2 ) ) { 702 int x2 = 0; local 704 if ( _tree.get_path_at_pos( x, y, path, col, x2, y2 ) && col == _name_column) {
|
/inkscape/src/ui/tools/ |
H A D | calligraphic-tool.cpp | 380 double x1, x2, w, y1, y2; local 383 x2 = 2.0 * g_random_double_range(0,1) - 1.0; 384 w = x1 * x1 + x2 * x2; 388 y2 = x2 * w;
|
H A D | eraser-tool.cpp | 314 double x1, x2, w, y1, y2; local 317 x2 = 2.0 * g_random_double_range(0,1) - 1.0; 318 w = x1 * x1 + x2 * x2; 322 y2 = x2 * w;
|
/inkscape/src/extension/dbus/ |
H A D | document-interface.cpp | 457 int x2, int y2, GError **error) 462 out << "m " << x << "," << y << " " << x2 - x << "," << y2 - y; 1183 int /*x2*/, int /*y2*/, gboolean /*replace*/, 456 document_interface_line(DocumentInterface *doc_interface, int x, int y, int x2, int y2, GError **error) argument
|