def filter.region.inside

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

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

4733def filter.region.inside(b: Bounds, p: Point) -> Bool:
4734  Bounds{x0, y0, x1, y1} = b
4735  Point{x, y} = p
4736  +xx = x
4737  +yy = y
4738  F32.is_ge(xx, x0) && F32.is_ge(yy, y0) && F32.is_lt(xx, x1) && F32.is_lt(yy, y1)

Uses (6)

Used by (1)