FieldTrip-0.2.2: Functional 3DSource codeContentsIndex
Graphics.FieldTrip.Transform3
Stabilityexperimental
Maintainerconal@conal.net, andygill@ku.edu
Description
3D transforms
Synopsis
data Transform3 s
= Identity3
| Translate3 (Vector3 s)
| Rotate3 s (Vector3 s)
| Scale3 s s s
| Compose3 (Transform3 s) (Transform3 s)
translate3 :: Vector3 s -> Transform3 s
rotate3 :: s -> Vector3 s -> Transform3 s
scale3 :: s -> s -> s -> Transform3 s
uscale3 :: s -> Transform3 s
tweakMatrix3 :: (Floating s, MatrixComponent s) => Transform3 s -> IO ()
tweakError3 :: (Real s, Fractional s) => Transform3 s -> ErrorBound -> ErrorBound
Documentation
data Transform3 s Source
3D affine transform
Constructors
Identity3
Translate3 (Vector3 s)
Rotate3 s (Vector3 s)angle (radians) and axis
Scale3 s s s
Compose3 (Transform3 s) (Transform3 s)
show/hide Instances
translate3 :: Vector3 s -> Transform3 sSource
Translation (motion) in 3D
rotate3 :: s -> Vector3 s -> Transform3 sSource
Rotation in 3D, with angle in radians.
scale3 :: s -> s -> s -> Transform3 sSource
Scaling in 3D
uscale3 :: s -> Transform3 sSource
Uniform scale in 3D.
tweakMatrix3 :: (Floating s, MatrixComponent s) => Transform3 s -> IO ()Source
Change the matrix state, according to the given transform.
tweakError3 :: (Real s, Fractional s) => Transform3 s -> ErrorBound -> ErrorBoundSource
Change the required upper error bound, to one that applies before transforming. Hack for now.
Produced by Haddock version 2.3.0