bearriver-0.13.1: A replacement of Yampa based on Monadic Stream Functions.

Copyright (c) Antony Courtney and Henrik Nilsson Yale University 2003 BSD-style (see the LICENSE file in the distribution) nilsson@cs.yale.edu provisional non-portable (GHC extensions) Safe Haskell2010

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
 RealFloat a => Eq (Vector2 a) Source # Instance detailsDefined in FRP.Yampa.Vector2 Methods(==) :: Vector2 a -> Vector2 a -> Bool #(/=) :: Vector2 a -> Vector2 a -> Bool # (RealFloat a, Show a) => Show (Vector2 a) Source # Instance detailsDefined in FRP.Yampa.Vector2 MethodsshowsPrec :: Int -> Vector2 a -> ShowS #show :: Vector2 a -> String #showList :: [Vector2 a] -> ShowS # RealFloat a => VectorSpace (Vector2 a) a Source # Instance detailsDefined in FRP.Yampa.Vector2 Methods(*^) :: a -> Vector2 a -> Vector2 a Source #(^/) :: Vector2 a -> a -> Vector2 a Source #(^+^) :: Vector2 a -> Vector2 a -> Vector2 a Source #(^-^) :: Vector2 a -> Vector2 a -> Vector2 a Source #dot :: Vector2 a -> Vector2 a -> a Source #norm :: Vector2 a -> a Source # RealFloat a => AffineSpace (Point2 a) (Vector2 a) a Source # Instance detailsDefined in FRP.Yampa.Point2 Methods(.+^) :: Point2 a -> Vector2 a -> Point2 a Source #(.-^) :: Point2 a -> Vector2 a -> Point2 a Source #(.-.) :: Point2 a -> Point2 a -> Vector2 a Source #distance :: Point2 a -> Point2 a -> a Source #

vector2 :: RealFloat a => a -> a -> Vector2 a Source #

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

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