def add_left_dir
import bend-visgraph@2.0.0.0/visgraph.bend as Visgraphimport Base
161# A visible point left of the pivot a: the edge (a, b) for top_to_bottom,
162# else (b, a).
163def add_left_dir(dir: Direction, +k: Weight, +lo: F32, +hi: F32, ia: U32, ib: U32, xa: F32, xb: F32, ya: F32, yb: F32, s: F32, es: Edges) -> Edges:
164 match dir:
165 case TopToBottom{}:
166 add_edge(k, lo, hi, ia, ib, xa, xb, ya, yb, s, es)
167 case _:
168 add_edge(k, lo, hi, ib, ia, xb, xa, yb, ya, s, es)