Yampa-0.10.5: 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
LanguageHaskell98

FRP.Yampa.Point2

Description

2D point abstraction (R^2).

ToDo: Deriving Show, or provide dedicated show instance?

Documentation

data RealFloat a => Point2 a #

Constructors

Point2 !a !a 

Instances

RealFloat a => Eq (Point2 a) # 

Methods

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

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

(Show a, RealFloat a) => Show (Point2 a) # 

Methods

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

show :: Point2 a -> String #

showList :: [Point2 a] -> ShowS #

RealFloat a => Forceable (Point2 a) # 

Methods

force :: Point2 a -> Point2 a #

RealFloat a => AffineSpace (Point2 a) (Vector2 a) a # 

Methods

origin :: Point2 a #

(.+^) :: Point2 a -> Vector2 a -> Point2 a #

(.-^) :: Point2 a -> Vector2 a -> Point2 a #

(.-.) :: Point2 a -> Point2 a -> Vector2 a #

distance :: Point2 a -> Point2 a -> a #

point2X :: RealFloat a => Point2 a -> a #

point2Y :: RealFloat a => Point2 a -> a #