Svg.cover.aligned: def of gralha-svg-render@0.1.0.1 Import: import gralha-svg-render@0.1.0.1/svg.bend as Svg Lines 4316-4324 of gralha-svg-render@0.1.0.1/svg.bend: https://jend.leeeet.dev/read.txt?path=gralha-svg-render@0.1.0.1/svg.bend&start_line=4316&end_line=4324 import Base # An axis-aligned tile of at least four device pixels is rendered at device # density and read bilinearly (nearest-neighbour images stay crisp). A rotated, # skewed or tiny tile is rendered at `sub` times the density, or at least four # pixels across, and read with a sub by sub grid of nearest lookups over each # device pixel's footprint: rotated content keeps supersampled edges and a tile # smaller than a pixel averages out. def cover.aligned(+m: Matrix) -> Bool: Matrix{a, b, c, d, e, f} = m F32.is_le((F32.abs(b) + F32.abs(c) : F32), (0.001 * (F32.abs(a) + F32.abs(d) : F32) : F32)) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.abs https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.is_le https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.mul https://jend.leeeet.dev/definition.txt?path=gralha-svg-render@0.1.0.1/svg.bend&name=Matrix