def bounds.finite

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

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

2560# These bounds enclose rendered coverage, including descendant strokes and
2561# markers. They are distinct from objectBoundingBox paint coordinates.
2562def bounds.finite(b: Bounds) -> Bool:
2563  Bounds{x0, y0, x1, y1} = b
2564  F32.is_lt(F32.abs(x0), 1.0e25) && F32.is_lt(F32.abs(y0), 1.0e25) && F32.is_lt(F32.abs(x1), 1.0e25) && F32.is_lt(F32.abs(y1), 1.0e25)

Uses (5)

Used by (1)