]> gitweb.michael.orlitzky.com - spline3.git/blobdiff - src/Face.hs
spline3.cabal: bump version to 1.0.2
[spline3.git] / src / Face.hs
index 785acafef9bfdc92b4eea5ef1cfa4b0f3deea870..ce4a5d54403166b34391108e4f48cfda1c77503c 100644 (file)
@@ -1,12 +1,12 @@
 -- | The Face module just contains the definition of the 'Face' data
 --   type and its two typeclass instances.
+--
 module Face (
   Face(..),
-  center
-  )
+  center )
 where
 
-import Point
+import Point ( Point, scale )
 
 data Face = Face { v0 :: !Point,
                    v1 :: !Point,
@@ -28,4 +28,4 @@ instance Show Face where
 --   tetrahedron.
 center :: Face -> Point
 center (Face v0' v1' v2' v3') =
-  (v0' + v1' + v2' + v3') `scale` (1/4)
+  (v0' + v1' + v2' + v3') `scale` (1 / 4)