def bounds.ray

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

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

1850def bounds.ray(b: Bounds, p: Point) -> Bool:
1851  Bounds{x0, y0, x1, y1} = b
1852  Point{x, y} = p
1853  +py = y
1854  F32.is_ge(py, y0) && F32.is_lt(py, y1) && F32.is_le(x, x1)

Uses (7)

Used by (1)