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

Safe HaskellNone
LanguageHaskell2010

Data.Vec3.Unboxed.Contiguous

Description

Vec3 implementation with Unbox instance based on single array storage scheme, suitable for use with Data.Vector.Unboxed.

Synopsis

Documentation

data UVec3 Source #

Vec3 implementation with Unbox instance based on a single contiguous array storage scheme, suitable for use with Data.Vector.Unboxed.

Unbox instance provides the required index transformations.

interface: [d1 x   y   z  ; d2 x   y   z  ...], length = N = M / 3
               |   |   |       |   |   |
storage:   [  d1x d2y d2z ;   d2x d2y d2z ...], length = M

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 # 
data Vector UVec3 Source # 
data Matrix UVec3 Source # 
data MVector s UVec3 Source #