Yampa-0.11.1: 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).

Synopsis

Documentation

data Point2 a Source #

2D point.

Constructors

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

Defined in FRP.Yampa.Point2

Methods

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

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

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 => Forceable (Point2 a) Source # 
Instance details

Defined in FRP.Yampa.Point2

Methods

force :: Point2 a -> Point2 a Source #

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 #

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

X coordinate of a 2D point.

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

Y coordinate of a 2D point.