def filter.window.area

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

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

4776def filter.window.area(window: FilterWindow, tile: Bounds) -> F32:
4777  FilterWindow{region, inverse, exact} = window
4778  Bounds{x0, y0, x1, y1} = tile
4779  +m = inverse
4780  filter.window.overlap(region, bounds.point(bounds.point(bounds.empty(), matrix.point(m, Point{x0, y0})), matrix.point(m, Point{x1, y1})))

Uses (8)

Used by (1)