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

Function is_parallel

src/table.py:2347–2351  ·  view source on GitHub ↗

Check if line is roughly axis-parallel.

(p1, p2)

Source from the content-addressed store, hash-verified

2345 bboxes, paths = clean_graphics(npaths=paths)
2346
2347 def is_parallel(p1, p2):
2348 """Check if line is roughly axis-parallel."""
2349 if abs(p1.x - p2.x) <= snap_x or abs(p1.y - p2.y) <= snap_y:
2350 return True
2351 return False
2352
2353 def make_line(p, p1, p2, clip):
2354 """Given 2 points, make a line dictionary for table detection."""

Callers 1

make_lineFunction · 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…