| Copyright | (c) 2013 diagrams-lib team (see LICENSE) |
|---|---|
| License | BSD-style (see LICENSE) |
| Maintainer | diagrams-discuss@googlegroups.com |
| Safe Haskell | None |
| Language | Haskell2010 |
Diagrams.ThreeD.Vector
Description
Three-dimensional vectors.
Special 2D vectors
Converting between vectors and angles
direction :: Direction d => R3 -> d Source
direction v is the direction in which v points. Returns an
unspecified value when given the zero vector as input.
fromDirection :: Direction d => d -> R3 Source
fromDirection d is the unit vector in the direction d.
angleBetween :: R3 -> R3 -> Angle Source
compute the positive angle between the two vectors in their common plane
angleBetweenDirs :: Direction d => d -> d -> Angle Source
compute the positive angle between the two vectors in their common plane