Copyright | (C) 2012-2013 Edward Kmett, |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | Trustworthy |
Language | Haskell98 |
4-D Vectors
Documentation
A 4-dimensional vector.
V4 !a !a !a !a |
vector :: Num a => V3 a -> V4 a Source
Convert a 3-dimensional affine vector into a 4-dimensional homogeneous vector.
point :: Num a => V3 a -> V4 a Source
Convert a 3-dimensional affine point into a 4-dimensional homogeneous vector.
normalizePoint :: Fractional a => V4 a -> V3 a Source
Convert 4-dimensional projective coordinates to a 3-dimensional
point. This operation may be denoted, euclidean [x:y:z:w] = (x/w,
y/w, z/w)
where the projective, homogenous, coordinate
[x:y:z:w]
is one of many associated with a single point (x/w,
y/w, z/w)
.
A space that has at least 1 basis vector _x
.
Nothing
class R1 t => R2 t where Source
Nothing
class R2 t => R3 t where Source
Nothing