def bond_force_look1

bend-prot@0.1.0.0 · bonded.bend:282

import bend-prot@0.1.0.0/bonded.bend as Bonded
import Base
import bend-prot@0.1.0.0/geom.bend as G

282def bond_force_look1(s: U32, pa: G.Vec3, ea: U32, mb: Maybe<&1, G.Vec3 & U32>, a: U32, b: U32, +k: F32) -> G.Vec3:
283  match mb:
284    case None{}:
285      G.V3{0.0, 0.0, 0.0}
286    case Some{(pb, eb)}:
287      bond_fsas(s, a, b, pa, pb, k, (cov_rad(ea) + cov_rad(eb) : F32))

Uses (9)

Used by (1)