def Chain.centroid

bend-prot@0.1.0.0 · protein.bend:144

import bend-prot@0.1.0.0/protein.bend as Protein
import Base
import bend-prot@0.1.0.0/geom.bend as G

144def Chain.centroid(c: Chain) -> G.Vec3:
145  match c:
146    case Chain{cid, residues}:
147      centroid_of_sum(sum_count_atoms(flatten_residues(residues)))

Uses (5)

Used by (0)

No other definition uses this definition.