Svg.clip.inside: def of gralha-svg-render@0.1.0.1 Import: import gralha-svg-render@0.1.0.1/svg.bend as Svg Lines 2470-2476 of gralha-svg-render@0.1.0.1/svg.bend: https://jend.leeeet.dev/read.txt?path=gralha-svg-render@0.1.0.1/svg.bend&start_line=2470&end_line=2476 import Base # Clip paths combine geometry by union; nested clip paths intersect coverage. def clip.inside(c: Clip, +p: Point) -> Bool: match c: case ClipAll{}: True{} case ClipShape{es, inv, even, cover}: edge.tree.inside(es, matrix.point(inv, p), even) case ClipUnion{a, b}: clip.inside(a, p) || clip.inside(b, p) case ClipIntersect{a, b}: clip.inside(a, p) && clip.inside(b, p) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.or https://jend.leeeet.dev/definition.txt?path=gralha-svg-render@0.1.0.1/svg.bend&name=Clip https://jend.leeeet.dev/definition.txt?path=gralha-svg-render@0.1.0.1/svg.bend&name=Point https://jend.leeeet.dev/definition.txt?path=gralha-svg-render@0.1.0.1/svg.bend&name=edge.tree.inside https://jend.leeeet.dev/definition.txt?path=gralha-svg-render@0.1.0.1/svg.bend&name=matrix.point