def min_cons
import bend-prot@0.1.0.0/topology.bend as Topologyimport Base
import bend-prot@0.1.0.0/geom.bend as G
import bend-prot@0.1.0.0/protein.bend as P
106def min_cons(h: P.Atom, rest: Maybe<&2, F32>, +qp: G.Vec3) -> Maybe<&2, F32>:
107 match h:
108 case P.Atom{serial, elem, +pos}:
109 min_cons_go(G.Vec3.dist2(pos, qp), rest)