Searched defs:y2 (Results 1 - 25 of 33) sorted by relevance

12

/inkscape/src/
H A Dsp-linear-gradient.h23 SVGLength y2; member in class:SPLinearGradient
H A Dsp-line.h31 SVGLength y2; member in class:SPLine
/inkscape/src/live_effects/
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));
H A Dlpe-ellipse_5pts.cpp169 double x0, y0, x1, y1, x2, y2, x3, y3; local
189 y2 = y3 + len * sin(e - M_PI_2);
190 p.appendNew<Geom::CubicBezier>(Geom::Point(x1,y1), Geom::Point(x2,y2), Geom::Point(x3,y3));
H A Dlpe-envelope.cpp118 Piecewise<SBasis> y2 = y ; local
137 y2*=scaling2;
181 output_x = x*(compose((uskeleton2),y2) + -x2*compose(n2,y2) )
/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);
26 item->y2 = y2;
27 item->canvas->requestRedraw((int)item->x1, (int)item->y1, (int)item->x2, (int)item->y2);
36 item->y2 = 0.0;
H A Dsp-canvas-item.h61 double y2; member in struct:SPCanvasItem
H A Dsp-ctrlcurve.cpp103 item->canvas->requestRedraw(item->x1, item->y1, item->x2, item->y2);
113 item->x1 = item->x2 = item->y1 = item->y2 = 0;
144 item->y2 = round( max_y + 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 Dcurve.cpp241 * 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 Dsp-canvas.cpp273 int y1 = (int)(item->y2);
276 item->canvas->requestRedraw((int)(item->x1 - 1), (int)(item->y1 -1), (int)(item->x2 + 1), (int)(item->y2 + 1));
557 int y1 = (int)(item->y2);
560 item->canvas->requestRedraw((int)(item->x1), (int)(item->y1), (int)(item->x2 + 1), (int)(item->y2 + 1));
582 int y1 = (int)(item->y2);
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));
799 item->y2 = bounds->max()[Geom::Y];
802 item->x1 = item->x2 = item->y1 = item->y2
814 int y2 = (int)(y + item->canvas->_close_enough); local
[all...]
/inkscape/src/extension/internal/
H A Dodf.h182 y2 = other.y2;
198 y2 = 0.0;
219 y2 != other.y2
246 double y2; member in class:Inkscape::Extension::Internal::GradientInfo
H A Dmetafile-print.cpp344 gv.p2 = Geom::Point(lg->x2.computed, lg->y2.computed); // end
382 double x1, y1, x2, y2; local
388 y2 = ctr[Y] + sin(F) * rx * cos(M_PI) + cos(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
438 y2 = ctr[Y] + sin(F) * rx * cos(M_PI) + cos(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 Dwmf-print.cpp1006 int32_t const y2 = (int32_t) round(p2[Y]); local
1013 lpPoints[i + 1].y = y2;
/inkscape/src/libavoid/
H A Dgeomtypes.cpp272 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;
324 y2 -= (sign * shorten_length);
328 else if (y1 == y2)
345 int ypos = (y1 < y2) ? -1 : 1;
353 y2
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
453 double y2 = simplified.ps[1].y; local
471 double y2 = simplified.ps[j % simpSize].y; local
[all...]
/inkscape/src/livarot/
H A DPath.h287 double x1, y1, x2, y2; member in struct:Path::outline_callback_data
H A DPathCutting.cpp322 gdouble y2=nData->p[1]-0.333333*nData->end[1]; local
325 currentpath->appendNew<Geom::CubicBezier>( Geom::Point(x1,y1) , Geom::Point(x2,y2) , Geom::Point(x3,y3) );
341 gdouble y2=0.333333*(nData->p[1]+2*iData->p[1]); local
344 currentpath->appendNew<Geom::CubicBezier>( Geom::Point(x1,y1) , Geom::Point(x2,y2) , Geom::Point(x3,y3) );
371 gdouble y2=cp2[1]; local
374 currentpath->appendNew<Geom::CubicBezier>( Geom::Point(x1,y1) , Geom::Point(x2,y2) , Geom::Point(x3,y3) );
/inkscape/src/trace/potrace/
H A Dinkscape-potrace.cpp152 double y2 = pt[2].y; 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);
178 y2 = pt[2].y;
182 data.lineTo(x1, y1).lineTo(x2, y2);
185 data.curveTo(x0, y0, x1, y1, x2, y2);
/inkscape/src/trace/
H A Dquantize.cpp440 * 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;
453 octreeBuildArea(pool, rgbmap, &ref1, x1, y1, xm, y2, ncolor);
454 octreeBuildArea(pool, rgbmap, &ref2, xm, y1, x2, y2, 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 Dline.h333 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/ui/widget/
H A Dcolor-slider.cpp505 gint y2 = carea.get_y() + carea.get_height() - 1; local
515 cr->move_to(x - 0.5, y2 + 0.5);
516 cr->line_to(x + ARROW_SIZE - 0.5, y2 + 0.5);
517 cr->line_to(x + (ARROW_SIZE - 1) / 2.0, y2 - ARROW_SIZE / 2.0 + 0.5);
518 cr->line_to(x - 0.5, y2 + 0.5);
/inkscape/src/helper/
H A Dgeom.cpp630 const double x2, const double y2,
656 double y12 = (y1 + y2) / 2;
658 double y23 = (y2 + y3) / 2;
674 double d2 = fabs(((x2 - x4) * dy - (y2 - y4) * dx));
687 d2 = calc_sq_distance(x1, y1, x2, y2);
694 da2 = y2 - y1;
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, y2));
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 Dlayers.cpp589 int y2 = 0; local
590 if ( _tree.get_path_at_pos( x, y, path, col, x2, y2 ) ) {
607 int y2 = 0; local
608 if ( _tree.get_path_at_pos( x, y, path, col, x2, y2 ) ) {
646 int y2 = 0; local
647 if ( _tree.get_path_at_pos( x, y, path, col, x2, y2 ) && col == _name_column) {
H A Dtags.cpp603 int y2 = 0; local
604 if ( _tree.get_path_at_pos( x, y, path, col, x2, y2 ) ) {
631 int y2 = 0; local
632 if ( _tree.get_path_at_pos( x, y, path, col, x2, y2 ) ) {
703 int y2 = 0; local
704 if ( _tree.get_path_at_pos( x, y, path, col, x2, y2 ) && col == _name_column) {
/inkscape/src/ui/tools/
H A Dcalligraphic-tool.cpp380 double x1, x2, w, y1, y2; local
388 y2 = x2 * w;
396 tremble_right = (y2)*this->tremor * (0.15 + 0.8*width) * (0.35 + 14*Geom::L2(this->vel));
H A Deraser-tool.cpp314 double x1, x2, w, y1, y2; local
322 y2 = x2 * w;
330 tremble_right = (y2)*this->tremor * (0.15 + 0.8*width) * (0.35 + 14*Geom::L2(this->vel));

Completed in 109 milliseconds

12