Protein.centroid_of_sum_go: def of bend-prot@0.1.0.0 Import: import bend-prot@0.1.0.0/protein.bend as Protein Lines 76-81 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=76&end_line=81 import Base import bend-prot@0.1.0.0/geom.bend as G def centroid_of_sum_go(sum: G.Vec3, n: Nat) -> G.Vec3: match n: case 0n: sum case 1n+p: G.Vec3.scale((1.0 / (F32.from_nat(n)) : F32), sum) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.div https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.from_nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat 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/geom.bend&name=Vec3.scale