todo
This commit is contained in:
parent
0d28d28ee1
commit
d5b2729b2a
1 changed files with 1 additions and 0 deletions
|
@ -54,6 +54,7 @@ springField :: AG.Graph MMNode -> AG.Graph MMNode
|
||||||
springField inGraph =
|
springField inGraph =
|
||||||
calcul inGraph
|
calcul inGraph
|
||||||
where
|
where
|
||||||
|
-- This could be optimized in such a way, that you update both computation partners at once.
|
||||||
calculDelta :: AG.Graph MMNode -> MMNode -> (Int, V2 Double)
|
calculDelta :: AG.Graph MMNode -> MMNode -> (Int, V2 Double)
|
||||||
calculDelta graph node =
|
calculDelta graph node =
|
||||||
let accel = foldl sproing (V2 0 0 :: V2 Double) (vertexList graph)
|
let accel = foldl sproing (V2 0 0 :: V2 Double) (vertexList graph)
|
||||||
|
|
Loading…
Reference in a new issue