def Residue.centroid

bend-prot@0.1.0.0 · protein.bend:88

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

88def Residue.centroid(r: Residue) -> G.Vec3:
89  match r:
90    case Residue{seq, atoms}:
91      centroid_of_sum(sum_count_atoms(atoms))

Uses (4)

Used by (0)

No other definition uses this definition.