Copyright | (c) Antony Courtney and Henrik Nilsson, Yale University, 2003 |
---|---|
License | BSD-style (see the LICENSE file in the distribution) |
Maintainer | nilsson@cs.yale.edu |
Stability | provisional |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
Affine space type relation.
Documentation
class (Floating a, VectorSpace v a) => AffineSpace p v a | p -> v, v -> a where
origin :: p
(.+^) :: p -> v -> p infix 6
(.-^) :: p -> v -> p infix 6
(.-.) :: p -> p -> v infix 6
distance :: p -> p -> a
RealFloat a => AffineSpace (Point2 a) (Vector2 a) a | |
RealFloat a => AffineSpace (Point3 a) (Vector3 a) a |