def head_dist2
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
44def head_dist2(h: P.Atom, +qp: G.Vec3) -> F32:
45 match h:
46 case P.Atom{serial, elem, +pos}:
47 G.Vec3.dist2(pos, qp)