simple-vec3-0.2: Three-dimensional vectors of doubles with basic operations

Safe HaskellNone
LanguageHaskell2010

Data.Vec3.Unboxed

Synopsis

Documentation

newtype UVec3 Source #

Vec3 implementation with Unbox instance based on tuples, suitable for use with Data.Vector.Unboxed.

This represents 3-vector as a triple of doubles, using the default Unbox instance for tuples as provided by Data.Vector.Unboxed, which wraps a vector of tuples as a tuple of vectors.

interface:  [d1 (x, y, z); d2 (x, y, z) ...], length = N
                 |  |  |       |  |  |
storage(x): [d1x-+  |  | ; d2x-+  |  |  ...], length = N
storage(y): [d1y----+  | ; d2y----+  |  ...], length = N
storage(z): [d1z-------+ ; d2z-------+  ...], length = N

Constructors

UVec3 (Double, Double, Double) 

Instances

Eq UVec3 Source # 

Methods

(==) :: UVec3 -> UVec3 -> Bool #

(/=) :: UVec3 -> UVec3 -> Bool #

Show UVec3 Source # 

Methods

showsPrec :: Int -> UVec3 -> ShowS #

show :: UVec3 -> String #

showList :: [UVec3] -> ShowS #

Unbox UVec3 Source # 
Vec3 UVec3 Source # 
Vector Vector UVec3 Source # 
MVector MVector UVec3 Source # 
Vector Vector (Matrix UVec3) Source # 
MVector MVector (Matrix UVec3) Source # 
Eq (Matrix UVec3) Source # 
Show (Matrix UVec3) Source # 
Unbox (Matrix UVec3) Source # 
data Vector UVec3 Source # 
data Matrix UVec3 Source # 
data MVector s UVec3 Source # 
data MVector s (Matrix UVec3) Source # 
data Vector (Matrix UVec3) Source #