]> gitweb.michael.orlitzky.com - spline3.git/blobdiff - src/Values.hs
Undo the previous FunctionValues test fix.
[spline3.git] / src / Values.hs
index a33bbba56d3eef9da970d845de285af4c39ac39d..61e3a11d3c2cd274afb5963bd5ba4091c8d4df86 100644 (file)
@@ -79,4 +79,14 @@ idx v3d i j k =
     index v3d shape
     where
       shape :: DIM3
-      shape = (Z :. i :. j :. k)
+      shape = (Z :. k :. j :. i)
+
+
+zoom_shape :: Int -> DIM3 -> DIM3
+zoom_shape scale_factor sh =
+    let (Z :. x :. y :. z) = sh
+        x' = x * scale_factor
+        y' = y * scale_factor
+        z' = z * scale_factor
+    in
+      (Z :. x' :. y' :. z')