Yampa-0.9.7: 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-Inferred
LanguageHaskell98

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 a Source

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

vector2Polar :: RealFloat a => a -> a -> Vector2 a Source