Yampa-0.10.6.2: 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.Vector3

Description

3D vector abstraction (R^3).

ToDo: Deriving Show, or provide dedicated show instance?

Documentation

data RealFloat a => Vector3 a #

Instances

RealFloat a => Eq (Vector3 a) # 

Methods

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

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

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

Methods

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

show :: Vector3 a -> String #

showList :: [Vector3 a] -> ShowS #

RealFloat a => Forceable (Vector3 a) # 

Methods

force :: Vector3 a -> Vector3 a #

RealFloat a => VectorSpace (Vector3 a) a # 

Methods

zeroVector :: Vector3 a #

(*^) :: a -> Vector3 a -> Vector3 a #

(^/) :: Vector3 a -> a -> Vector3 a #

negateVector :: Vector3 a -> Vector3 a #

(^+^) :: Vector3 a -> Vector3 a -> Vector3 a #

(^-^) :: Vector3 a -> Vector3 a -> Vector3 a #

dot :: Vector3 a -> Vector3 a -> a #

norm :: Vector3 a -> a #

normalize :: Vector3 a -> Vector3 a #

RealFloat a => AffineSpace (Point3 a) (Vector3 a) a # 

Methods

origin :: Point3 a #

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

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

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

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

vector3 :: RealFloat a => a -> a -> a -> Vector3 a #

vector3X :: RealFloat a => Vector3 a -> a #

vector3Y :: RealFloat a => Vector3 a -> a #

vector3Z :: RealFloat a => Vector3 a -> a #

vector3XYZ :: RealFloat a => Vector3 a -> (a, a, a) #

vector3Spherical :: RealFloat a => a -> a -> a -> Vector3 a #

vector3Rho :: RealFloat a => Vector3 a -> a #

vector3Phi :: RealFloat a => Vector3 a -> a #

vector3RhoThetaPhi :: RealFloat a => Vector3 a -> (a, a, a) #

vector3Rotate :: RealFloat a => a -> a -> Vector3 a -> Vector3 a #