import Numeric.LinearAlgebra hiding (i, scale)
import Prelude hiding (LT)
+import Test.QuickCheck (Arbitrary(..), Gen)
import Cardinal
import FunctionValues
v3 :: Point }
deriving (Eq)
+
+instance Arbitrary Tetrahedron where
+ arbitrary = do
+ rnd_v0 <- arbitrary :: Gen Point
+ rnd_v1 <- arbitrary :: Gen Point
+ rnd_v2 <- arbitrary :: Gen Point
+ rnd_v3 <- arbitrary :: Gen Point
+ rnd_fv <- arbitrary :: Gen FunctionValues
+ return (Tetrahedron rnd_fv rnd_v0 rnd_v1 rnd_v2 rnd_v3)
+
+
instance Show Tetrahedron where
show t = "Tetrahedron:\n" ++
" fv: " ++ (show (fv t)) ++ "\n" ++