/inkscape/src/live_effects/ |
H A D | spiro-converters.h | 16 virtual void quadto(double x1, double y1, double x2, double y2, bool close_last) = 0; 17 virtual void curveto(double x1, double y1, double x2, double y2, double x3, double y3, bool close_last) = 0; 32 virtual void quadto(double x1, double y1, double x2, double y2, bool close_last); 33 virtual void curveto(double x1, double y1, double x2, double y2, double x3, double y3, bool close_last); 52 virtual void quadto(double x1, double y1, double x2, double y2, bool close_last); 53 virtual void curveto(double x1, double y1, double x2, double y2, double x3, double y3, bool close_last);
|
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));
|
/inkscape/share/extensions/ |
H A D | generate_voronoi.py | 39 def clip_line(x1, y1, x2, y2, w, h): 40 if x1 < 0 and x2 < 0: 42 if x1 > w and x2 > w: 45 y1 = (y1*x2 - y2*x1)/(x2 - x1) 47 if x2 < 0: 48 y2 = (y1*x2 - y2*x1)/(x2 - x1) 49 x2 = 0 51 y1 = y1 + (w - x1)*(y2 - y1)/(x2 [all...] |
H A D | fractalize.py | 21 def calculateSubdivision(x1,y1,x2,y2,smoothness): 22 """ Calculate the vector from (x1,y1) to (x2,y2) """ 23 x3 = x2 - x1 73 x2 = params[-2] 75 self.fractalize(a,x1,y1,x2,y2,self.options.subdivs,self.options.smooth) 76 x1 = x2 82 def fractalize(self,a,x1,y1,x2,y2,s,f): 83 subdivPoint = calculateSubdivision(x1,y1,x2,y2,f) 90 self.fractalize(a,subdivPoint[-2],subdivPoint[-1],x2,y2,s-1,f)
|
H A D | dm2svg.py | 83 x1, x2, y1, y2 = map(ord, f.read(4)) 84 x = x1 | x2 << 7
|
H A D | dots.py | 63 x2 = p[lastDot-1][1][-2] 65 dx = abs( max(x1,x2) - min(x1,x2) ) 70 if x1 > x2: x *= -1
|
H A D | straightseg.py | 21 def pointAtPercent((x1, y1), (x2, y2), percent): 23 x = x1 + (percent * (x2 - x1))
|
H A D | funcplot.py | 146 x2 = x1 - ds # Second point BEFORE first point (Good for last point) 148 y2 = f(x2) 152 xp2 = y2 * cos( x2 ) 153 yp2 = y2 * sin( x2 ) 156 x2 = xp2 159 dx1 = (x1 - x2)/ds
|
H A D | cubicsuperpath.py | 46 rx,ry,teta,longflag,sweepflag,x2,y2=params[:] 48 B=[x2,y2] 130 x2= 2./3*q1[0]+1./3*q2[0] 138 lastctrl = [x2,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-util.h | 27 void sp_canvas_update_bbox (SPCanvasItem *item, int x1, int y1, int x2, int y2);
|
H A D | sp-ctrlcurve.h | 28 gdouble x2, gdouble y2, gdouble x3, gdouble y3 );
|
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 | sp-ctrlline.cpp | 111 item->canvas->requestRedraw(item->x1, item->y1, item->x2, item->y2); 122 item->x1 = item->x2 = item->y1 = item->y2 = 0; 130 item->x2 = round(MAX(s[Geom::X], e[Geom::X]) + 1); 133 item->canvas->requestRedraw(item->x1, item->y1, item->x2, item->y2); 143 canvas->requestRedraw(x1, y1, x2, y2);
|
H A D | curve.h | 63 void quadto(double x1, double y1, double x2, double y2); 65 void curveto(double x0, double y0, double x1, double y1, double x2, double y2);
|
H A D | gnome-canvas-acetate.cpp | 52 item->x2 = G_MAXINT;
|
H A D | sp-ctrlquadr.cpp | 116 item->canvas->requestRedraw((int)item->x1, (int)item->y1, (int)item->x2, (int)item->y2); 133 item->x2 = (int)(MAX4(p1[Geom::X], p2[Geom::X], p3[Geom::X], p4[Geom::X])); 136 item->canvas->requestRedraw((int)item->x1, (int)item->y1, (int)item->x2, (int)item->y2); 149 item->canvas->requestRedraw((int)item->x1, (int)item->y1, (int)item->x2, (int)item->y2);
|
/inkscape/src/ |
H A D | sp-linear-gradient.cpp | 14 this->x2.unset(SVGLength::PERCENT, 1.0, 1.0); 26 this->readAttr( "x2" ); 46 this->x2.readOrUnset(value, SVGLength::PERCENT, 1.0, 1.0); 77 if ((flags & SP_OBJECT_WRITE_ALL) || this->x2._set) { 78 sp_repr_set_svg_double(repr, "x2", this->x2.computed); 95 this->x2.computed, this->y2.computed);
|
H A D | sp-line.cpp | 27 this->x2.unset(); 39 this->readAttr( "x2" ); 58 this->x2.readOrUnset(value); 83 this->x2.update(em, ex, w); 104 sp_repr_set_svg_double(repr, "x2", this->x2.computed); 121 points[1] = Geom::Point(this->x2.computed, this->y2.computed)*i2dt; 131 points[1] = Geom::Point(this->x2.computed, this->y2.computed); 138 this->x2.computed = points[1][Geom::X]; 152 c->lineto(this->x2 [all...] |
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/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/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
|
/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...] |
H A D | geom.h | 31 void recursive_bezier4(const double x1, const double y1, const double x2, const double y2,
|