Maintainer | diagrams-discuss@googlegroups.com |
---|---|

Safe Haskell | None |

Three-dimensional vectors.

# Special 2D vectors

# Converting between vectors and angles

direction :: Direction d => R3 -> dSource

`direction v`

is the direction in which `v`

points. Returns an
unspecified value when given the zero vector as input.

fromDirection :: Direction d => d -> R3Source

`fromDirection d`

is the unit vector in the direction `d`

.

angleBetween :: R3 -> R3 -> AngleSource

compute the positive angle between the two vectors in their common plane

angleBetweenDirs :: Direction d => d -> d -> AngleSource

compute the positive angle between the two vectors in their common plane