Protein.Complex.centroid: def of bend-prot@0.1.0.0 Import: import bend-prot@0.1.0.0/protein.bend as Protein Lines 199-202 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=199&end_line=202 import Base import bend-prot@0.1.0.0/geom.bend as G def Complex.centroid(k: Complex) -> G.Vec3: match k: case Complex{chains}: centroid_of_sum(sum_count_atoms(flatten_residues(flatten_chains_residues(chains)))) Uses (6): 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=Complex 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=flatten_chains_residues https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/protein.bend&name=flatten_residues https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/protein.bend&name=sum_count_atoms