Add a comment to the reverse_cube function.
Remove some redundant parentheses.
i' = fromIntegral (i c) :: Double
j' = fromIntegral (j c) :: Double
k' = fromIntegral (k c) :: Double
- x = (delta * i')
- y = (delta * j')
- z = (delta * k')
+ x = delta * i'
+ y = delta * j'
+ z = delta * k'
contains_point c p
| (x_coord p) < (xmin c) = False
fromRational q = empty_cube { datum = fromRational q }
+-- | Constructs a cube, switching the i and k axes.
reverse_cube :: Grid -> Int -> Int -> Int -> Double -> Cube
-reverse_cube g k' j' i' datum' = Cube g i' j' k' datum'
+reverse_cube g k' j' i' = Cube g i' j' k'
cube_at :: Grid -> Int -> Int -> Int -> Cube