Yampa-0.9.6: Library for programming hybrid systems.

Portabilitynon-portable (GHC extensions)
Stabilityprovisional
Maintainernilsson@cs.yale.edu
Safe HaskellSafe-Inferred

FRP.Yampa.Vector2

Description

2D vector abstraction (R^2).

ToDo: Deriving Show, or provide dedicated show instance?

Documentation

data RealFloat a => Vector2 a Source

Instances

vector2 :: RealFloat a => a -> a -> Vector2 aSource

vector2XY :: RealFloat a => Vector2 a -> (a, a)Source