Yampa-0.10.6.2: Library for programming hybrid systems.

Copyright(c) Antony Courtney and Henrik Nilsson Yale University 2003
LicenseBSD-style (see the LICENSE file in the distribution)
Maintainernilsson@cs.yale.edu
Stabilityprovisional
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe
LanguageHaskell98

FRP.Yampa.AffineSpace

Description

Affine space type relation.

Documentation

class (Floating a, VectorSpace v a) => AffineSpace p v a | p -> v, v -> a where #

Minimal complete definition

origin, (.+^), (.-.)

Methods

origin :: p #

(.+^) :: p -> v -> p infix 6 #

(.-^) :: p -> v -> p infix 6 #

(.-.) :: p -> p -> v infix 6 #

distance :: p -> p -> a #

Instances

RealFloat a => AffineSpace (Point2 a) (Vector2 a) a # 

Methods

origin :: Point2 a #

(.+^) :: Point2 a -> Vector2 a -> Point2 a #

(.-^) :: Point2 a -> Vector2 a -> Point2 a #

(.-.) :: Point2 a -> Point2 a -> Vector2 a #

distance :: Point2 a -> Point2 a -> a #

RealFloat a => AffineSpace (Point3 a) (Vector3 a) a # 

Methods

origin :: Point3 a #

(.+^) :: Point3 a -> Vector3 a -> Point3 a #

(.-^) :: Point3 a -> Vector3 a -> Point3 a #

(.-.) :: Point3 a -> Point3 a -> Vector3 a #

distance :: Point3 a -> Point3 a -> a #