]> gitweb.michael.orlitzky.com - spline3.git/blobdiff - src/Point.hs
Remove a redundant import.
[spline3.git] / src / Point.hs
index 49ad534385846b57e60875849a0edff87c39653f..fd3ac58dec3ceef5dfd5c8aa1615e25a9bc0af53 100644 (file)
@@ -7,9 +7,6 @@ module Point (
   )
 where
 
-import Comparisons ((~=))
-
-
 type Point = (Double, Double, Double)
 
 instance Num Point where
@@ -27,6 +24,7 @@ scale (x, y, z) d = (x*d, y*d, z*d)
 
 
 -- | Returns the dot product of two points (taken as three-vectors).
+{-# INLINE dot #-}
 dot :: Point -> Point -> Double
 dot (x1, y1, z1) (x2, y2, z2) =
     (x2 - x1)^(2::Int) + (y2 - y1)^(2::Int) + (z2 - z1)^(2::Int)