Searched defs:maxX (Results 1 - 5 of 5) sorted by relevance
/inkscape/src/libvpsc/ |
H A D | generate-constraints.h | 26 double getMaxX() const { return maxX+xBorder; } 49 maxX=x+width()-xBorder; 71 double minX,maxX,minY,maxY; member in class:vpsc::Rectangle
|
/inkscape/src/libavoid/ |
H A D | geomtypes.cpp | 169 double *maxX, double *maxY) const 188 if (maxX) 190 *maxX = progressiveMaxX; 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 D | orthogonal.cpp | 1454 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); 1533 events[ctr++] = new Event(Close, v, maxX);
|
H A D | router.cpp | 1508 double maxX = -LIMIT; local 1525 maxX = std::max(maxX, p.x); 1539 maxX += 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, maxY - minY);
|
/inkscape/src/libnrtype/ |
H A D | TextWrapper.cpp | 472 double minX = glyph_text[g_st].x, maxX = glyph_text[g_st].x; local 490 if ( glyph_text[i].x > maxX ) maxX = glyph_text[i].x;
|
Completed in 903 milliseconds