vect-0.4.6: A low-dimensional linear algebra library, tailored to computer graphics.Source codeContentsIndex
Data.Vect.Double.Util.Dim2
Synopsis
structVec2 :: [Double] -> [Vec2]
destructVec2 :: [Vec2] -> [Double]
det2 :: Vec2 -> Vec2 -> Double
vec2X :: Vec2
vec2Y :: Vec2
translate2X :: Double -> Vec2 -> Vec2
translate2Y :: Double -> Vec2 -> Vec2
sinCos :: Double -> Vec2
sinCos' :: Double -> Normal2
sinCosRadius :: Double -> Double -> Vec2
angle2 :: Vec2 -> Double
angle2' :: Normal2 -> Double
rotMatrix2 :: Double -> Mat2
rotMatrixOrtho2 :: Double -> Ortho2
rotate2 :: Double -> Vec2 -> Vec2
rotateCCW :: Vec2 -> Vec2
rotateCW :: Vec2 -> Vec2
Documentation
structVec2 :: [Double] -> [Vec2]Source
Example: structVec2 [1,2,3,4] = [ Vec2 1 2 , Vec2 3 4 ].
destructVec2 :: [Vec2] -> [Double]Source
The opposite of structVec2.
det2 :: Vec2 -> Vec2 -> DoubleSource
vec2X :: Vec2Source
vec2Y :: Vec2Source
translate2X :: Double -> Vec2 -> Vec2Source
translate2Y :: Double -> Vec2 -> Vec2Source
sinCos :: Double -> Vec2Source
unit vector with given angle relative to the positive X axis (in the positive direction, that is, CCW). A more precise name would be cosSin, but that sounds bad :)
sinCos' :: Double -> Normal2Source
sinCosRadiusSource
:: Doubleangle (in radians)
-> Doubleradius
-> Vec2
angle2 :: Vec2 -> DoubleSource
The angle relative to the positive X axis
angle2' :: Normal2 -> DoubleSource
rotMatrix2 :: Double -> Mat2Source
Rotation matrix by a given angle (in radians), counterclockwise.
rotMatrixOrtho2 :: Double -> Ortho2Source
rotate2 :: Double -> Vec2 -> Vec2Source
rotateCCW :: Vec2 -> Vec2Source
Rotates counterclockwise by 90 degrees.
rotateCW :: Vec2 -> Vec2Source
Rotates clockwise by 90 degrees.
Produced by Haddock version 2.4.1