]> gitweb.michael.orlitzky.com - spline3.git/commitdiff
Inline find_containing_tetrahedron.
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 26 Oct 2011 03:55:20 +0000 (23:55 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Wed, 26 Oct 2011 03:55:20 +0000 (23:55 -0400)
src/Cube.hs

index 3c82f67e285f611ba64a11092d61c86cc890724a..11762a5efeb0b1366d0455da5e97198f82ece0fc 100644 (file)
@@ -620,6 +620,7 @@ in_left_half cube (Point _ y _) =
 --   This can throw an exception, but the use of 'head' might
 --   save us some unnecessary computations.
 --
+{-# INLINE find_containing_tetrahedron #-}
 find_containing_tetrahedron :: Cube -> Point -> Tetrahedron
 find_containing_tetrahedron cube p =
   candidates `V.unsafeIndex` (fromJust lucky_idx)