def cover.aligned

gralha-svg-render@0.1.0.1 · svg.bend:4316

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base

4316# An axis-aligned tile of at least four device pixels is rendered at device
4317# density and read bilinearly (nearest-neighbour images stay crisp). A rotated,
4318# skewed or tiny tile is rendered at `sub` times the density, or at least four
4319# pixels across, and read with a sub by sub grid of nearest lookups over each
4320# device pixel's footprint: rotated content keeps supersampled edges and a tile
4321# smaller than a pixel averages out.
4322def cover.aligned(+m: Matrix) -> Bool:
4323  Matrix{a, b, c, d, e, f} = m
4324  F32.is_le((F32.abs(b) + F32.abs(c) : F32), (0.001 * (F32.abs(a) + F32.abs(d) : F32) : F32))

Uses (7)

Used by (1)