MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / rect_in_rect

Function rect_in_rect

src/table.py:115–123  ·  view source on GitHub ↗

Check whether rectangle 'inner' is fully inside rectangle 'outer'.

(inner, outer)

Source from the content-addressed store, hash-verified

113
114
115def rect_in_rect(inner, outer):
116 """Check whether rectangle 'inner' is fully inside rectangle 'outer'."""
117 return (
118 1
119 and inner[0] >= outer[0]
120 and inner[1] >= outer[1]
121 and inner[2] <= outer[2]
122 and inner[3] <= outer[3]
123 )
124
125
126def chars_in_rect(CHARS, rect):

Callers 3

intersects_words_hFunction · 0.85
make_table_from_bboxFunction · 0.85
row_has_boldMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…