diagrams-lib-1.3.0.8: Embedded domain-specific language for declarative graphics

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

Contents

- Special 3D vectors

Description

Three-dimensional vectors.

Synopsis

- unitX :: (R1 v, Additive v, Num n) => v n
- unitY :: (R2 v, Additive v, Num n) => v n
- unitZ :: (R3 v, Additive v, Num n) => v n
- unit_X :: (R1 v, Additive v, Num n) => v n
- unit_Y :: (R2 v, Additive v, Num n) => v n
- unit_Z :: (R3 v, Additive v, Num n) => v n
- xDir :: (R1 v, Additive v, Num n) => Direction v n
- yDir :: (R2 v, Additive v, Num n) => Direction v n
- zDir :: (R3 v, Additive v, Num n) => Direction v n

# Special 3D vectors

unitX :: (R1 v, Additive v, Num n) => v n Source

The unit vector in the positive X direction.

unitY :: (R2 v, Additive v, Num n) => v n Source

The unit vector in the positive Y direction.

unitZ :: (R3 v, Additive v, Num n) => v n Source

The unit vector in the positive Y direction.

unit_X :: (R1 v, Additive v, Num n) => v n Source

The unit vector in the negative X direction.

unit_Y :: (R2 v, Additive v, Num n) => v n Source

The unit vector in the negative Y direction.

unit_Z :: (R3 v, Additive v, Num n) => v n Source

The unit vector in the negative X direction.

xDir :: (R1 v, Additive v, Num n) => Direction v n Source

A `Direction` pointing in the X direction.

yDir :: (R2 v, Additive v, Num n) => Direction v n Source

A `Direction` pointing in the Y direction.

zDir :: (R3 v, Additive v, Num n) => Direction v n Source

A `Direction` pointing in the Z direction.