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

Function points_approx_eq

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

Source from the content-addressed store, hash-verified

714 def numbers_approx_eq(a, b):
715 return abs(a-b) < 0.001
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):

Callers 1

rects_approx_eqFunction · 0.85

Calls 1

numbers_approx_eqFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…