Portability | non-portable |
---|---|

Stability | experimental |

Maintainer | Edward Kmett <ekmett@gmail.com> |

Safe Haskell | None |

2-D Vectors

# Documentation

A 2-dimensional vector

`>>>`

V2 1 1`pure 1 :: V2 Int`

`>>>`

V2 4 6`V2 1 2 + V2 3 4`

`>>>`

V2 3 8`V2 1 2 * V2 3 4`

`>>>`

3`sum (V2 1 2)`

V2 !a !a |

Monad V2 | |

Functor V2 | |

Typeable1 V2 | |

Applicative V2 | |

Foldable V2 | |

Traversable V2 | |

Distributive V2 | |

Traversable1 V2 | |

Foldable1 V2 | |

Apply V2 | |

Bind V2 | |

Additive V2 | |

Metric V2 | |

Core V2 | |

R2 V2 | |

Eq a => Eq (V2 a) | |

Fractional a => Fractional (V2 a) | |

Data a => Data (V2 a) | |

Num a => Num (V2 a) | |

Ord a => Ord (V2 a) | |

Read a => Read (V2 a) | |

Show a => Show (V2 a) | |

Ix a => Ix (V2 a) | |

Storable a => Storable (V2 a) | |

Epsilon a => Epsilon (V2 a) |