def min_dist2_to

bend-prot@0.1.0.0 · topology.bend:111

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

111# Closest squared distance from qp to any atom in xs. None{} when empty.
112def min_dist2_to(xs: List<&2, P.Atom>, +qp: G.Vec3) -> Maybe<&2, F32>:
113  match xs:
114    case Nil{}:
115      None{}
116    case h <> t:
117      min_cons(h, min_dist2_to(t, qp), qp)

Uses (6)

Used by (4)