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

Copyright(c) 2013 diagrams-lib team (see LICENSE)
LicenseBSD-style (see LICENSE)
Maintainerdiagrams-discuss@googlegroups.com
Safe HaskellNone
LanguageHaskell2010

Diagrams.ThreeD.Camera

Description

Types to specify viewpoint for 3D rendering.

Synopsis

Documentation

data Camera l n #

Instances
Num n => Transformable (Camera l n) # 
Instance details

Defined in Diagrams.ThreeD.Camera

Methods

transform :: Transformation (V (Camera l n)) (N (Camera l n)) -> Camera l n -> Camera l n #

Num n => Renderable (Camera l n) NullBackend # 
Instance details

Defined in Diagrams.ThreeD.Camera

Methods

render :: NullBackend -> Camera l n -> Render NullBackend (V (Camera l n)) (N (Camera l n)) #

type V (Camera l n) # 
Instance details

Defined in Diagrams.ThreeD.Camera

type V (Camera l n) = V3
type N (Camera l n) # 
Instance details

Defined in Diagrams.ThreeD.Camera

type N (Camera l n) = n

data PerspectiveLens n #

A perspective projection

Constructors

PerspectiveLens 

Fields

Instances
type V (PerspectiveLens n) # 
Instance details

Defined in Diagrams.ThreeD.Camera

type V (PerspectiveLens n) = V3
type N (PerspectiveLens n) # 
Instance details

Defined in Diagrams.ThreeD.Camera

type N (PerspectiveLens n) = n

data OrthoLens n #

An orthographic projection

Constructors

OrthoLens 

Fields

Instances
type V (OrthoLens n) # 
Instance details

Defined in Diagrams.ThreeD.Camera

type V (OrthoLens n) = V3
type N (OrthoLens n) # 
Instance details

Defined in Diagrams.ThreeD.Camera

type N (OrthoLens n) = n

orthoWidth :: forall n. Lens' (OrthoLens n) n #

orthoHeight :: forall n. Lens' (OrthoLens n) n #

camLoc :: Camera l n -> Point V3 n #

camUp :: Camera l n -> Direction V3 n #

camLens :: Camera l n -> l n #

facing_ZCamera :: (Floating n, Ord n, Typeable n, CameraLens l, Renderable (Camera l n) b) => l n -> QDiagram b V3 n Any #

'facing_ZCamera l' is a camera at the origin facing along the negative Z axis, with its up-axis coincident with the positive Y axis, with the projection defined by l.

mm50Camera :: (Typeable n, Floating n, Ord n, Renderable (Camera PerspectiveLens n) b) => QDiagram b V3 n Any #

A camera at the origin facing along the negative Z axis, with its up-axis coincident with the positive Y axis. The field of view is chosen to match a 50mm camera on 35mm film. Note that Cameras take up no space in the Diagram.

mm50 :: Floating n => PerspectiveLens n #

mm50 has the field of view of a 50mm lens on standard 35mm film, hence an aspect ratio of 3:2.

mm50Wide :: Floating n => PerspectiveLens n #

mm50blWide has the same vertical field of view as mm50, but an aspect ratio of 1.6, suitable for wide screen computer monitors.

mm50Narrow :: Floating n => PerspectiveLens n #

mm50Narrow has the same vertical field of view as mm50, but an aspect ratio of 4:3, for VGA and similar computer resolutions.

aspect :: (CameraLens l, Floating n) => l n -> n #

The natural aspect ratio of the projection.

camAspect :: (Floating n, CameraLens l) => Camera l n -> n #