Protein.Residue.centroid: def of bend-prot@0.1.0.0 Import: import bend-prot@0.1.0.0/protein.bend as Protein Lines 88-91 of bend-prot@0.1.0.0/protein.bend: https://jend.leeeet.dev/read.txt?path=bend-prot@0.1.0.0/protein.bend&start_line=88&end_line=91 import Base import bend-prot@0.1.0.0/geom.bend as G def Residue.centroid(r: Residue) -> G.Vec3: match r: case Residue{seq, atoms}: centroid_of_sum(sum_count_atoms(atoms)) Uses (4): https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/geom.bend&name=Vec3 https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/protein.bend&name=Residue https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/protein.bend&name=centroid_of_sum https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/protein.bend&name=sum_count_atoms