Copyright | (c) 2018 Cedric Liegeois |
---|---|

License | BSD3 |

Maintainer | Cedric Liegeois <ofmooseandmen@yahoo.fr> |

Stability | experimental |

Portability | portable |

Safe Haskell | Safe |

Language | Haskell2010 |

3-element vectors.

## Synopsis

- data Vector3d = Vector3d {}
- class IsVector3d a where
- vadd :: Vector3d -> Vector3d -> Vector3d
- vsub :: Vector3d -> Vector3d -> Vector3d
- vdot :: Vector3d -> Vector3d -> Double
- vnorm :: Vector3d -> Double
- vcross :: Vector3d -> Vector3d -> Vector3d
- vrotate :: Vector3d -> [Vector3d] -> Vector3d
- vscale :: Vector3d -> Double -> Vector3d
- vunit :: Vector3d -> Vector3d
- vzero :: Vector3d
- transpose :: [Vector3d] -> [Vector3d]
- mdot :: [Vector3d] -> [Vector3d] -> [Vector3d]

# Documentation

3-element vector.

class IsVector3d a where Source #

class for data types assimilated to `Vector3d`

.

## Instances

IsVector3d NVector Source # | |

IsVector3d EcefPosition Source # | |

Defined in Data.Geo.Jord.EcefPosition vec :: EcefPosition -> Vector3d Source # |