Copyright | (c) Scott N. Walck 2012-2014 |
---|---|
License | BSD3 (see LICENSE) |
Maintainer | Scott N. Walck <walck@lvc.edu> |
Stability | experimental |
Safe Haskell | Safe |
Language | Haskell98 |
This module defines some common vector operations.
It is intended that this module not be imported directly, but that its
functionality be gained by importing either SimpleVec
or CarrotVec
,
but not both. Choose SimpleVec
for vector operations
(such as vector addition) with simple concrete types,
which work only with the type Vec
of three-dimensional vectors.
Choose CarrotVec
for vector operations that work with any type in the
appropriate type class.
Documentation
A type for vectors.
Instances
Eq Vec Source # | |
Show Vec Source # | |
VectorSpace Vec # | |
InnerSpace Vec # | |
AdditiveGroup Vec # | |
StateSpace Vec Source # | |
type Scalar Vec # | |
Defined in Physics.Learn.CarrotVec | |
type Diff Vec Source # | |
Defined in Physics.Learn.StateSpace |
Form a vector by giving its x, y, and z components.