def com_of_n

bend-prot@0.1.0.0 · sim.bend:132

import bend-prot@0.1.0.0/sim.bend as Sim
import Base
import bend-prot@0.1.0.0/geom.bend as G

132def com_of_n(+kicked: List<&2, DynAtom>, n: Nat) -> G.Vec3:
133  G.Vec3.scale((1.0 / F32.from_nat(n) : F32), sum_vels_ds(kicked))

Uses (9)

Used by (1)