import Test.QuickCheck (Arbitrary(..), Gen)
+import ScaleFactor
+
+
type Values1D = Array DIM1 Double
type Values2D = Array DIM2 Double
type Values3D = Array DIM3 Double
shape = (Z :. i :. j :. k)
-zoom_shape :: Int -> DIM3 -> DIM3
-zoom_shape scale_factor sh =
+zoom_shape :: ScaleFactor -> DIM3 -> DIM3
+zoom_shape (sfx, sfy, sfz) sh =
let (Z :. x :. y :. z) = sh
- x' = x * scale_factor
- y' = y * scale_factor
- z' = z * scale_factor
+ x' = x * sfx
+ y' = y * sfy
+ z' = z * sfz
in
(Z :. x' :. y' :. z')