def local.tolerance
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport Base
159# scale is the device pixels per unit of the frame m maps into (1 when m
160# maps to the device, the tile's density for pattern content).
161def local.tolerance(+m: Matrix, +scale: F32) -> F32:
162 (flat.tolerance() / (scale * matrix.norm(m)) : F32)