| Copyright | (C) 2012-2015 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 | 
Linear.V3
Description
3-D Vectors
- data V3 a = V3 !a !a !a
 - cross :: Num a => V3 a -> V3 a -> V3 a
 - triple :: Num a => V3 a -> V3 a -> V3 a -> a
 - class R1 t where
 - class R1 t => R2 t where
 - _yx :: R2 t => Lens' (t a) (V2 a)
 - class R2 t => R3 t where
 - _xz :: R3 t => Lens' (t a) (V2 a)
 - _yz :: R3 t => Lens' (t a) (V2 a)
 - _zx :: R3 t => Lens' (t a) (V2 a)
 - _zy :: R3 t => Lens' (t a) (V2 a)
 - _xzy :: R3 t => Lens' (t a) (V3 a)
 - _yxz :: R3 t => Lens' (t a) (V3 a)
 - _yzx :: R3 t => Lens' (t a) (V3 a)
 - _zxy :: R3 t => Lens' (t a) (V3 a)
 - _zyx :: R3 t => Lens' (t a) (V3 a)
 - ex :: R1 t => E t
 - ey :: R2 t => E t
 - ez :: R3 t => E t
 
Documentation
A 3-dimensional vector
Constructors
| V3 !a !a !a | 
Instances
A space that has at least 1 basis vector _x.