changed constant in Map.Map
This commit is contained in:
parent
2944d36703
commit
0d65a485d5
@ -45,7 +45,7 @@ giveMapHeight mop (x,z)
|
|||||||
| outsideMap (x,z') = 0.0
|
| outsideMap (x,z') = 0.0
|
||||||
| otherwise = sum $ map (\(p,d) -> (hlu p) * (1 - (d / totald))) tups
|
| otherwise = sum $ map (\(p,d) -> (hlu p) * (1 - (d / totald))) tups
|
||||||
where
|
where
|
||||||
z' = z * ((sqrt 3)/2)
|
z' = z * 2/(sqrt 3)
|
||||||
|
|
||||||
outsideMap :: (Double, Double) -> Bool
|
outsideMap :: (Double, Double) -> Bool
|
||||||
outsideMap (mx, mz) = let ((a,b),(c,d)) = bounds mop
|
outsideMap (mx, mz) = let ((a,b),(c,d)) = bounds mop
|
||||||
|
Loading…
Reference in New Issue
Block a user