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

Maintainer | diagrams-discuss@googlegroups.com
Safe Haskell | None

Diagrams.ThreeD.Types

Contents

- 3D Euclidean space

Description

Basic types for three-dimensional Euclidean space.

Synopsis

- data R3
- r3 :: (Double, Double, Double) -> R3
- unr3 :: R3 -> (Double, Double, Double)
- type P3 = Point R3
- p3 :: (Double, Double, Double) -> P3
- unp3 :: P3 -> (Double, Double, Double)
- type T3 = Transformation R3

# 3D Euclidean space

data R3 Source

The three-dimensional Euclidean vector space R^3.

Instances

Eq R3 |
Ord R3 |
Read R3 |
Show R3 |
Transformable R3 |
HasBasis R3 |
VectorSpace R3 |
InnerSpace R3 |
AdditiveGroup R3 |
Coordinates R3 |
Newtype R3 (Double, Double, Double) |

r3 :: (Double, Double, Double) -> R3 Source

Construct a 3D vector from a triple of components.

unr3 :: R3 -> (Double, Double, Double)Source

Convert a 3D vector back into a triple of components.

type P3 = Point R3 Source

Points in R^3.

p3 :: (Double, Double, Double) -> P3 Source

Construct a 3D point from a triple of coordinates.

unp3 :: P3 -> (Double, Double, Double)Source

Convert a 2D point back into a triple of coordinates.

type T3 = Transformation R3 Source

Transformations in R^3.