def add_oriented

bend-visgraph@2.0.0.0 · visgraph.bend:667

import bend-visgraph@2.0.0.0/visgraph.bend as Visgraph
import Base

667# The edge from a to b, or from b to a for top_to_bottom when b is higher.
668def add_oriented(down: Bool, +k: Weight, +lo: F32, +hi: F32, ia: U32, ib: U32, xa: F32, xb: F32, ya: F32, yb: F32, s: F32, known: F32, es: Edges) -> Edges:
669  match down:
670    case True{}:
671      add_known(k, lo, hi, ib, ia, xb, xa, yb, ya, s, known, es)
672    case False{}:
673      add_known(k, lo, hi, ia, ib, xa, xb, ya, yb, s, known, es)

Uses (6)

Used by (2)