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 |
Language | Haskell98 |
2D vector abstraction (R^2).
ToDo: Deriving Show, or provide dedicated show instance?
Documentation
vector2Polar :: RealFloat a => a -> a -> Vector2 a Source
vector2Rho :: RealFloat a => Vector2 a -> a Source
vector2Theta :: RealFloat a => Vector2 a -> a Source
vector2RhoTheta :: RealFloat a => Vector2 a -> (a, a) Source
vector2Rotate :: RealFloat a => a -> Vector2 a -> Vector2 a Source