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

Function hdist

src/__init__.py:23888–23891  ·  view source on GitHub ↗
(dir, a, b)

Source from the content-addressed store, hash-verified

23886
23887
23888def hdist(dir, a, b):
23889 dx = b.x - a.x
23890 dy = b.y - a.y
23891 return mupdf.fz_abs(dx * dir.x + dy * dir.y)
23892
23893
23894def make_table(rect: rect_like =(0, 0, 1, 1), cols: int =1, rows: int =1) -> list:

Callers 1

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