Barnes-Hut: tree management

This commit is contained in:
Dimitri Lozeve 2017-11-07 10:30:29 +00:00
parent 6e4cf862d4
commit 232fbc6701
3 changed files with 122 additions and 11 deletions

View file

@ -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