Portability | non-portable (GHC extensions) |
---|---|

Stability | provisional |

Maintainer | nilsson@cs.yale.edu |

Vector space type relation and basic instances.

# Documentation

class Floating a => VectorSpace v a | v -> a whereSource

zeroVector :: vSource

negateVector :: v -> vSource

VectorSpace Double Double | |

VectorSpace Float Float | |

RealFloat a => VectorSpace (Vector2 a) a | |

RealFloat a => VectorSpace (Vector3 a) a | |

Floating a => VectorSpace (a, a) a | |

Floating a => VectorSpace (a, a, a) a | |

Floating a => VectorSpace (a, a, a, a) a | |

Floating a => VectorSpace (a, a, a, a, a) a |