def bounds.inside
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport 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))