Searched refs:x1 (Results 1 - 25 of 124) sorted by relevance

12345

/inkscape/src/live_effects/
H A Dspiro-converters.h16 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 Dspiro-converters.cpp60 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 Dgenerate_voronoi.py39 def clip_line(x1, y1, x2, y2, w, h):
40 if x1 < 0 and x2 < 0:
42 if x1 > w and x2 > w:
44 if x1 < 0:
45 y1 = (y1*x2 - y2*x1)/(x2 - x1)
46 x1 = 0
48 y2 = (y1*x2 - y2*x1)/(x2 - x1)
50 if x1 >
[all...]
H A Dfractalize.py21 def calculateSubdivision(x1,y1,x2,y2,smoothness):
22 """ Calculate the vector from (x1,y1) to (x2,y2) """
23 x3 = x2 - x1
26 hx = x1 + x3/2
68 x1 = 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)
87 self.fractalize(a,x1,y
[all...]
H A Dfuncplot.py124 x1 = xstart + ds # Second point AFTER first point (Good for first point)
125 y1 = f(x1)
127 xp1 = y1 * cos( x1 )
128 yp1 = y1 * sin( x1 )
129 x1 = xp1
131 dx0 = (x1 - x0)/ds
145 x1 = (i+1) * step + xstart
146 x2 = x1 - ds # Second point BEFORE first point (Good for last point)
147 y1 = f(x1)
150 xp1 = y1 * cos( x1 )
[all...]
H A Dstraightseg.py21 def pointAtPercent((x1, y1), (x2, y2), percent):
23 x = x1 + (percent * (x2 - x1))
H A Ddm2svg.py83 x1, x2, y1, y2 = map(ord, f.read(4))
84 x = x1 | x2 << 7
H A Dffgeom.py115 x1 = s1[0]['x']
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))
132 x = x1 + ((num / denom) * (x2 - x1))
H A Dparam_curves.py100 x1 = f1(t1)
102 dx0 = (x1 - x0)/ds
110 x1 = f1(t1)
116 dx1 = (x1 - x2)/ds
122 coordx(x1 - (dx1 * third)), coordy(y1 - (dy1 * third)),
123 coordx(x1), coordy(y1)]
126 x0 = x1
H A Ddots.py61 x1 = p[lastDot][1][-2]
65 dx = abs( max(x1,x2) - min(x1,x2) )
70 if x1 > x2: x *= -1
/inkscape/src/display/
H A Dsp-canvas-util.cpp20 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);
23 item->x1 = x1;
27 item->canvas->requestRedraw((int)item->x1, (int)item->y1, (int)item->x2, (int)item->y2);
33 item->x1 = 0.0;
H A Dnr-filter-offset.cpp90 double x0, y0, x1, y1; local
93 x1 = area.right();
99 x1 -= floor(offset[X]);
107 area = Geom::IntRect(x0, y0, x1, y1);
H A Dsp-canvas-util.h27 void sp_canvas_update_bbox (SPCanvasItem *item, int x1, int y1, int x2, int y2);
H A Dsp-ctrlline.cpp111 item->canvas->requestRedraw(item->x1, item->y1, item->x2, item->y2);
122 item->x1 = item->x2 = item->y1 = item->y2 = 0;
128 item->x1 = round(MIN(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);
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])) {
155 e[Geom::X] = x1;
H A Dsp-ctrlcurve.h27 void setCoords( gdouble x0, gdouble y0, gdouble x1, gdouble y1,
H A Dsp-ctrlline.h30 void setCoords(gdouble x0, gdouble y0, gdouble x1, gdouble y1);
/inkscape/src/helper/
H A Dpixbuf-ops.h20 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 Dgeom.cpp203 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
211 Bx = x1;
213 Dx = x1 - x0;
267 Geom::Coord x0, y0, x1, y1, len2; local
284 x1 = std::max (x000, x001);
285 x1 = std::max (x1, x011);
286 x1 = std::max (x1, x111);
298 if (((x0 - Px) < *best) && ((y0 - Py) < *best) && ((Px - x1) < *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 Dpixbuf-ops.cpp68 double x0, double y0, double x1, double y1,
73 sp_generate_internal_bitmap(doc, filename, x0, y0, x1, y1,
88 @param x1
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 Dsp-linear-gradient.cpp12 this->x1.unset(SVGLength::PERCENT, 0.0, 0.0);
24 this->readAttr( "x1" );
36 this->x1.readOrUnset(value, SVGLength::PERCENT, 0.0, 0.0);
69 if ((flags & SP_OBJECT_WRITE_ALL) || this->x1._set) {
70 sp_repr_set_svg_double(repr, "x1", this->x1.computed);
94 this->x1.computed, this->y1.computed,
H A Dsp-item-transform.h13 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 Dsp-line.cpp25 this->x1.unset();
37 this->readAttr( "x1" );
48 this->x1.readOrUnset(value);
82 this->x1.update(em, ex, w);
102 sp_repr_set_svg_double(repr, "x1", this->x1.computed);
120 points[0] = Geom::Point(this->x1.computed, this->y1.computed)*i2dt;
130 points[0] = Geom::Point(this->x1.computed, this->y1.computed);
136 this->x1.computed = points[0][Geom::X];
151 c->moveto(this->x1
[all...]
H A Dmacros.h28 #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 Dsp-linear-gradient.h20 SVGLength x1; member in class:SPLinearGradient
/inkscape/src/libavoid/
H A Dgeomtypes.cpp272 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;
335 x1 += (sign * shorten_length);
344 int xpos = (x1 < x
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
450 double x1 = simplified.ps[0].x; local
468 double x1 = simplified.ps[(simpSize + j - 1) % simpSize].x; local
[all...]

Completed in 1237 milliseconds

12345