]> gitweb.michael.orlitzky.com - spline3.git/blobdiff - src/Cube.hs
Remove the Point.distance function and associated assertion. We only need the dot...
[spline3.git] / src / Cube.hs
index 32b4b652c4ceebf76f4837fd5ed6d1b2a4723cc0..1c654ffd72763010bbb56352022160f61a0257c6 100644 (file)
@@ -655,8 +655,9 @@ find_containing_tetrahedron cube p =
           else
             back_right_down_tetrahedra cube
 
-    -- Use the dot product instead of 'distance' here to save a
-    -- sqrt(). So, "distances" below really means "distances squared."
+    -- Use the dot product instead of Euclidean distance here to save
+    -- a sqrt(). So, "distances" below really means "distances
+    -- squared."
     distances = V.map ((dot p) . center) candidates
     shortest_distance = V.minimum distances
     lucky_idx = V.findIndex