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

Function rects_approx_eq

tests/test_general.py:718–719  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

716 def points_approx_eq(a, b):
717 return numbers_approx_eq(a.x, b.x) and numbers_approx_eq(a.y, b.y)
718 def rects_approx_eq(a, b):
719 return points_approx_eq(a.bottom_left, b.bottom_left) and points_approx_eq(a.top_right, b.top_right)
720 def assert_rects_approx_eq(a, b):
721 assert rects_approx_eq(a, b), f'Not nearly identical: {a=} {b=}'
722

Callers 1

assert_rects_approx_eqFunction · 0.85

Calls 1

points_approx_eqFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…