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

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
LanguageHaskell2010

FRP.Yampa.Point2

Description

2D point abstraction (R^2).

ToDo: Deriving Show, or provide dedicated show instance?

Documentation

data RealFloat a => Point2 a Source #

Constructors

Point2 !a !a 
Instances
RealFloat a => Eq (Point2 a) Source # 
Instance details

Defined in FRP.Yampa.Point2

Methods

(==) :: Point2 a -> Point2 a -> Bool #

(/=) :: Point2 a -> Point2 a -> Bool #

(RealFloat a, Show a) => Show (Point2 a) Source # 
Instance details

Defined in FRP.Yampa.Point2

Methods

showsPrec :: Int -> Point2 a -> ShowS #

show :: Point2 a -> String #

showList :: [Point2 a] -> ShowS #

RealFloat a => AffineSpace (Point2 a) (Vector2 a) a Source # 
Instance details

Defined in FRP.Yampa.Point2

Methods

origin :: Point2 a Source #

(.+^) :: 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 #