bearriver-0.13.1: A replacement of Yampa based on Monadic Stream Functions.

Copyright (c) Antony Courtney and Henrik Nilsson Yale University 2003 BSD-style (see the LICENSE file in the distribution) nilsson@cs.yale.edu provisional non-portable (GHC extensions) Safe Haskell2010

FRP.Yampa.Vector3

Description

3D vector abstraction (R^3).

ToDo: Deriving Show, or provide dedicated show instance?

# Documentation

data RealFloat a => Vector3 a Source #

Instances
 RealFloat a => Eq (Vector3 a) Source # Instance detailsDefined in FRP.Yampa.Vector3 Methods(==) :: Vector3 a -> Vector3 a -> Bool #(/=) :: Vector3 a -> Vector3 a -> Bool # (RealFloat a, Show a) => Show (Vector3 a) Source # Instance detailsDefined in FRP.Yampa.Vector3 MethodsshowsPrec :: Int -> Vector3 a -> ShowS #show :: Vector3 a -> String #showList :: [Vector3 a] -> ShowS # RealFloat a => VectorSpace (Vector3 a) a Source # Instance detailsDefined in FRP.Yampa.Vector3 Methods(*^) :: a -> Vector3 a -> Vector3 a Source #(^/) :: Vector3 a -> a -> Vector3 a Source #(^+^) :: Vector3 a -> Vector3 a -> Vector3 a Source #(^-^) :: Vector3 a -> Vector3 a -> Vector3 a Source #dot :: Vector3 a -> Vector3 a -> a Source #norm :: Vector3 a -> a Source # RealFloat a => AffineSpace (Point3 a) (Vector3 a) a Source # Instance detailsDefined in FRP.Yampa.Point3 Methods(.+^) :: 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 #

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

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

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

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