]> gitweb.michael.orlitzky.com - spline3.git/commitdiff
Add back an accidentally-deleted line.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 5 Sep 2011 22:55:17 +0000 (18:55 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 5 Sep 2011 22:55:17 +0000 (18:55 -0400)
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