MCPcopy Create free account
hub / github.com/TeXworks/texworks / polygonContains

Function polygonContains

modules/QtPDF/src/backends/MuPDFBackend.cpp:1323–1328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1321}
1322
1323inline bool polygonContains(const QPolygonF & poly, const QRectF & rect)
1324{
1325 QRectF r = poly.intersected(rect).boundingRect();
1326
1327 return (qAbs(r.width() * r.height() - rect.width() * rect.height()) < 1e-6);
1328}
1329
1330QString Page::selectedText(const QList<QPolygonF> & selection, QMap<int, QRectF> * wordBoxes /* = NULL */, QMap<int, QRectF> * charBoxes /* = NULL */, const bool onlyFullyEnclosed)
1331{

Callers 1

foreachFunction · 0.85

Calls 1

boundingRectMethod · 0.80

Tested by

no test coverage detected