def sum_dist2

bend-prot@0.1.0.0 · topology.bend:49

import bend-prot@0.1.0.0/topology.bend as Topology
import Base
import bend-prot@0.1.0.0/geom.bend as G
import bend-prot@0.1.0.0/protein.bend as P

49def sum_dist2(xs: List<&2, P.Atom>, +qp: G.Vec3) -> F32:
50  match xs:
51    case Nil{}:
52      0.0
53    case h <> t:
54      (sum_dist2(t, qp) + head_dist2(h, qp) : F32)

Uses (6)

Used by (1)