/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): 45 y1 = (y1*x2 - y2*x1)/(x2 - x1) 48 y2 = (y1*x2 - y2*x1)/(x2 - x1) 51 y1 = y1 + (w - x1)*(y2 - y1)/(x2 - x1) 54 y2 = y1 + (w - x1)*(y2 - y1)/(x2 - x1) 56 if y1 < [all...] |
H A D | fractalize.py | 21 def calculateSubdivision(x1,y1,x2,y2,smoothness): 22 """ Calculate the vector from (x1,y1) to (x2,y2) """ 24 y3 = y2 - y1 27 hy = y1 + y3/2 69 y1 = params[-1] 75 self.fractalize(a,x1,y1,x2,y2,self.options.subdivs,self.options.smooth) 77 y1 = y2 82 def fractalize(self,a,x1,y1,x2,y2,s,f): 83 subdivPoint = calculateSubdivision(x1,y1,x2,y2,f) 87 self.fractalize(a,x1,y1,subdivPoin [all...] |
H A D | funcplot.py | 125 y1 = f(x1) 127 xp1 = y1 * cos( x1 ) 128 yp1 = y1 * sin( x1 ) 130 y1 = yp1 132 dy0 = (y1 - y0)/ds 147 y1 = f(x1) 150 xp1 = y1 * cos( x1 ) 151 yp1 = y1 * sin( x1 ) 155 y1 = yp1 160 dy1 = (y1 [all...] |
H A D | straightseg.py | 21 def pointAtPercent((x1, y1), (x2, y2), percent): 24 y = y1 + (percent * (y2 - y1))
|
H A D | dm2svg.py | 83 x1, x2, y1, y2 = map(ord, f.read(4)) 85 y = y1 | y2 << 7
|
H A D | ffgeom.py | 120 y1 = s1[0]['y'] 125 denom = ((y4 - y3) * (x2 - x1)) - ((x4 - x3) * (y2 - y1)) 126 num1 = ((x4 - x3) * (y1 - y3)) - ((y4 - y3) * (x1 - x3)) 127 num2 = ((x2 - x1) * (y1 - y3)) - ((y2 - y1) * (x1 - x3)) 133 y = y1 + ((num / denom) * (y2 - y1))
|
H A D | param_curves.py | 101 y1 = f2(t1) 103 dy0 = (y1 - y0)/ds 112 y1 = f2(t1) 117 dy1 = (y1 - y2)/ds 122 coordx(x1 - (dx1 * third)), coordy(y1 - (dy1 * third)), 123 coordx(x1), coordy(y1)] 127 y0 = y1
|
H A D | dots.py | 62 y1 = p[lastDot][1][-1] 66 dy = abs( max(y1,y2) - min(y1,y2) ) 71 if y1 > y2: y *= -1
|
/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); 24 item->y1 = y1; 27 item->canvas->requestRedraw((int)item->x1, (int)item->y1, (int)item->x2, (int)item->y2); 34 item->y1 = 0.0;
|
H A D | nr-filter-offset.cpp | 90 double x0, y0, x1, y1; local 94 y1 = area.bottom(); 105 y1 -= floor(offset[Y]); 107 area = Geom::IntRect(x0, y0, x1, y1);
|
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-ctrlline.cpp | 111 item->canvas->requestRedraw(item->x1, item->y1, item->x2, item->y2); 122 item->x1 = item->x2 = item->y1 = item->y2 = 0; 129 item->y1 = round(MIN(s[Geom::Y], e[Geom::Y]) - 1); 133 item->canvas->requestRedraw(item->x1, item->y1, item->x2, item->y2); 143 canvas->requestRedraw(x1, y1, x2, y2); 150 void SPCtrlLine::setCoords(gdouble x0, gdouble y0, gdouble x1, gdouble y1) argument 152 if (DIFFER(x0, s[Geom::X]) || DIFFER(y0, s[Geom::Y]) || DIFFER(x1, e[Geom::X]) || DIFFER(y1, e[Geom::Y])) { 156 e[Geom::Y] = y1;
|
H A D | sp-ctrlcurve.h | 27 void setCoords( gdouble x0, gdouble y0, gdouble x1, gdouble y1,
|
H A D | sp-ctrlline.h | 30 void setCoords(gdouble x0, gdouble y0, gdouble x1, gdouble y1);
|
/inkscape/src/helper/ |
H A D | pixbuf-ops.h | 20 bool sp_export_jpg_file (SPDocument *doc, gchar const *filename, double x0, double y0, double x1, double y1, 24 double x0, double y0, double x1, double y1,
|
H A D | geom.cpp | 203 geom_line_wind_distance (Geom::Coord x0, Geom::Coord y0, Geom::Coord x1, Geom::Coord y1, Geom::Point const &pt, int *wind, Geom::Coord *best) argument 212 By = y1; 214 Dy = y1 - y0; 267 Geom::Coord x0, y0, x1, y1, len2; local 287 y1 = std::max (y000, y001); 288 y1 = std::max (y1, y011); 289 y1 = std::max (y1, y111); 298 if (((x0 - Px) < *best) && ((y0 - Py) < *best) && ((Px - x1) < *best) && ((Py - y1) < *bes 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 | pixbuf-ops.cpp | 68 double x0, double y0, double x1, double y1, 73 sp_generate_internal_bitmap(doc, filename, x0, y0, x1, y1, 89 @param y1 97 double x0, double y0, double x1, double y1, 113 Geom::Rect screen=Geom::Rect(Geom::Point(x0,y0), Geom::Point(x1, y1)); 67 sp_export_jpg_file(SPDocument *doc, gchar const *filename, double x0, double y0, double x1, double y1, unsigned width, unsigned height, double xdpi, double ydpi, unsigned long bgcolor, double quality,GSList *items) argument 96 sp_generate_internal_bitmap(SPDocument *doc, gchar const * , double x0, double y0, double x1, double y1, unsigned width, unsigned height, double xdpi, double ydpi, unsigned long , GSList *items_only) argument
|
/inkscape/src/ |
H A D | sp-linear-gradient.cpp | 13 this->y1.unset(SVGLength::PERCENT, 0.0, 0.0); 25 this->readAttr( "y1" ); 41 this->y1.readOrUnset(value, SVGLength::PERCENT, 0.0, 0.0); 73 if ((flags & SP_OBJECT_WRITE_ALL) || this->y1._set) { 74 sp_repr_set_svg_double(repr, "y1", this->y1.computed); 94 this->x1.computed, this->y1.computed,
|
H A D | sp-item-transform.h | 13 Geom::Affine get_scale_transform_for_uniform_stroke (Geom::Rect const &bbox_visual, double stroke_x, double stroke_y, bool transform_stroke, bool preserve, double x0, double y0, double x1, double y1); 14 Geom::Affine get_scale_transform_for_variable_stroke (Geom::Rect const &bbox_visual, Geom::Rect const &bbox_geom, bool transform_stroke, bool preserve, double x0, double y0, double x1, double y1);
|
H A D | sp-line.cpp | 26 this->y1.unset(); 38 this->readAttr( "y1" ); 53 this->y1.readOrUnset(value); 84 this->y1.update(em, ex, h); 103 sp_repr_set_svg_double(repr, "y1", this->y1.computed); 120 points[0] = Geom::Point(this->x1.computed, this->y1.computed)*i2dt; 130 points[0] = Geom::Point(this->x1.computed, this->y1.computed); 137 this->y1.computed = points[0][Geom::Y]; 151 c->moveto(this->x1.computed, this->y1 [all...] |
H A D | macros.h | 28 #define SP_PRINT_DRECT(s,r) g_print("%s (%g %g %g %g)\n", (s), (r)->x0, (r)->y0, (r)->x1, (r)->y1) 29 #define SP_PRINT_DRECT_WH(s,r) g_print("%s (%g %g %g %g)\n", (s), (r)->x0, (r)->y0, (r)->x1 - (r)->x0, (r)->y1 - (r)->y0) 30 #define SP_PRINT_IRECT(s,r) g_print("%s (%d %d %d %d)\n", (s), (r)->x0, (r)->y0, (r)->x1, (r)->y1) 31 #define SP_PRINT_IRECT_WH(s,r) g_print("%s (%d %d %d %d)\n", (s), (r)->x0, (r)->y0, (r)->x1 - (r)->x0, (r)->y1 - (r)->y0)
|
H A D | sp-linear-gradient.h | 21 SVGLength y1; member in class:SPLinearGradient
|
/inkscape/src/libavoid/ |
H A D | geomtypes.cpp | 272 static void shorten_line(double& x1, double& y1, double& x2, double& y2, 280 double rise = y1 - y2; 292 y1 = y2 = y1 - (rise / 2); 300 y1 = y2; 308 y2 = y1; 316 int sign = (y1 < y2) ? 1: -1; 320 y1 += (sign * shorten_length); 328 else if (y1 == y2) 345 int ypos = (y1 < y 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 451 double y1 = simplified.ps[0].y; local 469 double y1 = simplified.ps[(simpSize + j - 1) % simpSize].y; local [all...] |