def Atom.dist2
import bend-prot@0.1.0.0/protein.bend as Proteinimport Base
import bend-prot@0.1.0.0/geom.bend as G
36def Atom.dist2(+a: Atom, +b: Atom) -> F32:
37 match a b:
38 case Atom{serial1, elem1, +pa} Atom{serial2, elem2, +pb}:
39 G.Vec3.dist2(pa, pb)