simple-affine-space-0.1: A simple library for affine and vector spaces.

Copyright(c) Antony Courtney and Henrik Nilsson Yale University 2003
LicenseBSD-style (see the LICENSE file in the distribution)
Maintainerivan.perez@keera.co.uk
Stabilityprovisional
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe
LanguageHaskell98

Data.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 Data.Point2

Methods

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

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

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

Defined in Data.Point2

Methods

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

show :: Point2 a -> String #

showList :: [Point2 a] -> ShowS #

NFData a => NFData (Point2 a) Source # 
Instance details

Defined in Data.Point2

Methods

rnf :: Point2 a -> () #

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

Defined in Data.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.