From: Michael Orlitzky Date: Mon, 5 Sep 2011 22:55:17 +0000 (-0400) Subject: Add back an accidentally-deleted line. X-Git-Tag: 0.0.1~156 X-Git-Url: http://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=8c9954ffb0d636ee383e00242a1c8214d28f8461;p=spline3.git Add back an accidentally-deleted line. --- diff --git a/src/Cube.hs b/src/Cube.hs index 54fda14..41d4060 100644 --- a/src/Cube.hs +++ b/src/Cube.hs @@ -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