Barnes-Hut: tree management
This commit is contained in:
parent
6e4cf862d4
commit
232fbc6701
3 changed files with 122 additions and 11 deletions
|
@ -55,8 +55,8 @@ csvFromPoint (P v) = csvFromVector v
|
|||
csvFromBody :: Double -> Body -> String
|
||||
csvFromBody dt b =
|
||||
show dt ++ "," ++
|
||||
csvFromPoint (bodyPosition b) ++ "," ++
|
||||
csvFromVector (bodySpeed b) ++ "\n"
|
||||
csvFromPoint (_bodyPosition b) ++ "," ++
|
||||
csvFromVector (_bodySpeed b) ++ "\n"
|
||||
|
||||
-- | Show a list of bodies as CSV
|
||||
csvFromBodies :: Double -> [Body] -> String
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue