Searched refs:minX (Results 1 - 7 of 7) sorted by relevance

/inkscape/src/libvpsc/
H A Dgenerate-constraints.h28 double getMinX() const { return minX; }
36 double getCentreX() const { return minX+width()/2.0; }
38 double width() const { return getMaxX()-minX; }
50 minX=x;
57 if (getCentreX() <= r->getCentreX() && r->minX < getMaxX())
58 return getMaxX() - r->minX;
59 if (r->getCentreX() <= getCentreX() && minX < r->getMaxX())
60 return r->getMaxX() - minX;
71 double minX,maxX,minY,maxY; member in class:vpsc::Rectangle
H A Dgenerate-constraints.cpp29 os << "{"<<r.minX<<","<<r.maxX<<","<<r.minY<<","<<r.maxY<<"},";
34 : minX(x),maxX(X),minY(y),maxY(Y) {
/inkscape/src/libavoid/
H A Dgeomtypes.h135 //! @param[out] minX The left hand side of the bounding box.
139 void getBoundingRect(double *minX, double *minY,
H A Dgeomtypes.cpp168 void PolygonInterface::getBoundingRect(double *minX, double *minY,
184 if (minX)
186 *minX = progressiveMinX;
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
H A Drouter.cpp1506 double minX = LIMIT; local
1521 minX = std::min(minX, p.x);
1537 minX -= 50;
1543 fprintf(fp, "<svg xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns=\"http://www.w3.org/2000/svg\" width=\"100%%\" height=\"100%%\" viewBox=\"%g %g %g %g\">\n", minX, minY, maxX - minX, maxY - minY);
1637 double minX, minY, maxX, maxY; local
1638 shRef->polygon().getBoundingRect(&minX, &minY, &maxX, &maxY);
1642 shRef->id(), minX, minY, maxX - minX, max
[all...]
H A Dorthogonal.cpp1454 double minX, minY, maxX, maxY; local
1455 shRef->polygon().getBoundingRect(&minX, &minY, &maxX, &maxY);
1456 double midX = minX + ((maxX - minX) / 2);
1528 double minX, minY, maxX, maxY; local
1529 shRef->polygon().getBoundingRect(&minX, &minY, &maxX, &maxY);
1532 events[ctr++] = new Event(Open, v, minX);
/inkscape/src/libnrtype/
H A DTextWrapper.cpp472 double minX = glyph_text[g_st].x, maxX = glyph_text[g_st].x; local
489 if ( glyph_text[i].x < minX ) minX = glyph_text[i].x;
495 glyph_text[i].x -= minX;

Completed in 34 milliseconds