def bounds.inside

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

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

575def bounds.inside(b: Bounds, +p: Point, +margin: F32) -> Bool:
576  Bounds{x0, y0, x1, y1} = b
577  Point{x, y} = p
578  F32.is_ge(x, (x0 - margin : F32)) && F32.is_ge(y, (y0 - margin : F32))
579    && F32.is_le(x, (x1 + margin : F32)) && F32.is_le(y, (y1 + margin : F32))

Uses (9)

Used by (4)