def sd_sweep

bend-prot@0.1.0.0 · force.bend:214

import bend-prot@0.1.0.0/force.bend as Force
import Base
import bend-prot@0.1.0.0/geom.bend as G
import bend-prot@0.1.0.0/protein.bend as P

214def sd_sweep(
215  xs: List<&2, P.Atom>, fs: List<&2, G.Vec3>, +dt: F32
216) -> List<&2, P.Atom>:
217  match xs fs:
218    case Nil{} Nil{}:
219      Nil{}
220    case Nil{} f <> ft:
221      Nil{}
222    case h <> t Nil{}:
223      h <> t
224    case h <> t f <> ft:
225      sd_move(h, f, dt) <> sd_sweep(t, ft, dt)

Uses (5)

Used by (3)