simple-affine-space-0.1.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.Point3

Description

3D point abstraction (R^3).

Synopsis

Documentation

data Point3 a Source #

3D point.

Constructors

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

Defined in Data.Point3

Methods

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

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

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

Defined in Data.Point3

Methods

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

show :: Point3 a -> String #

showList :: [Point3 a] -> ShowS #

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

Defined in Data.Point3

Methods

rnf :: Point3 a -> () #

RealFloat a => AffineSpace (Point3 a) (Vector3 a) a Source # 
Instance details

Defined in Data.Point3

Methods

origin :: Point3 a Source #

(.+^) :: Point3 a -> Vector3 a -> Point3 a Source #

(.-^) :: Point3 a -> Vector3 a -> Point3 a Source #

(.-.) :: Point3 a -> Point3 a -> Vector3 a Source #

distance :: Point3 a -> Point3 a -> a Source #

point3X :: RealFloat a => Point3 a -> a Source #

X coodinate of a 3D point.

point3Y :: RealFloat a => Point3 a -> a Source #

Y coodinate of a 3D point.

point3Z :: RealFloat a => Point3 a -> a Source #

Z coodinate of a 3D point.