def head_dist2

bend-prot@0.1.0.0 · topology.bend:44

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

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)

Uses (4)

Used by (3)