def pair_head_go
import bend-prot@0.1.0.0/rmsd.bend as Rmsdimport Base
import bend-prot@0.1.0.0/geom.bend as G
import bend-prot@0.1.0.0/protein.bend as P
import bend-prot@0.1.0.0/topology.bend as T
11def pair_head_go(+p1: G.Vec3, y: P.Atom, rest: F32 & Nat) -> F32 & Nat:
12 match y:
13 case P.Atom{s2, e2, +p2}:
14 T.sumd2_extend(G.Vec3.dist2(p1, p2), rest)