]> gitweb.michael.orlitzky.com - spline3.git/blobdiff - src/Cube.hs
Add back an accidentally-deleted line.
[spline3.git] / src / Cube.hs
index 54fda14a08d078baea20c00f8898e18a2d7a924b..41d406031313ca71057aad85e81fb9df0f310856 100644 (file)
@@ -620,4 +620,6 @@ find_containing_tetrahedron c p =
     -- sqrt(). So, "distances" below really means "distances squared."
     distances = V.map ((dot p) . center) candidates
     shortest_distance = V.minimum distances
-    lucky_idx = V.findIndex (\t -> (center t) `dot` p == shortest_distance)
+    lucky_idx = V.findIndex
+                  (\t -> (center t) `dot` p == shortest_distance)
+                  candidates