Copyright | (c) 2011-2015 diagrams-core team (see LICENSE) |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | diagrams-discuss@googlegroups.com |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Type family for identifying associated vector spaces.
Documentation
type family V a :: * -> * Source #
Many sorts of objects have an associated vector space in which
they "live". The type function V
maps from object types to
the associated vector space. The resulting vector space has kind * -> *
which means it takes another value (a number) and returns a concrete
vector. For example V2
has kind * -> *
and V2 Double
is a vector.
Instances
The numerical field for the object, the number type used for calculations.
Instances
type Vn a = V a (N a) Source #
Convenient type alias to retrieve the vector type associated with an
object's vector space. This is usually used as Vn a ~ v n
where v
is
the vector space and n
is the numerical field.