Skip to content

Commit

Permalink
water VOLUME.
Browse files Browse the repository at this point in the history
  • Loading branch information
johntyree committed May 23, 2011
1 parent 1fe9331 commit 99563e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.erl
Expand Up @@ -142,7 +142,7 @@ water_volume(#nodestate{drops = Dropdict}) ->
%Coords = dict:fetch_keys(Dropdict),
Drop = dict:fold(fun(_, Ds, D) -> lists:foldl(fun drop:coalesce/2, D,
Ds) end, drop:new(0), Dropdict),
Drop#dropstate.size.
drop:volume(Drop#dropstate.size).

spatial_volume(S = #nodestate{}) ->
(S#nodestate.x2 - S#nodestate.x1 + 1) *
Expand Down

0 comments on commit 99563e7

Please sign in to comment.