Data.Vect.Float.Util.Dim2
Synopsis
 structVec2 :: [Float] -> [Vec2] destructVec2 :: [Vec2] -> [Float] det2 :: Vec2 -> Vec2 -> Float vec2X :: Vec2 vec2Y :: Vec2 translate2X :: Float -> Vec2 -> Vec2 translate2Y :: Float -> Vec2 -> Vec2 sinCos :: Float -> Vec2 sinCos' :: Float -> Normal2 sinCosRadius :: Float -> Float -> Vec2 angle2 :: Vec2 -> Float angle2' :: Normal2 -> Float rotMatrix2 :: Float -> Mat2 rotate2 :: Float -> Vec2 -> Vec2 rotateCCW :: Vec2 -> Vec2 rotateCW :: Vec2 -> Vec2
Documentation
 structVec2 :: [Float] -> [Vec2] Source
example: structVec2 [1,2,3,4] = [ Vec2 1 2 , Vec2 3 4 ].
 destructVec2 :: [Vec2] -> [Float] Source
 det2 :: Vec2 -> Vec2 -> Float Source
 vec2X :: Vec2 Source
 vec2Y :: Vec2 Source
 translate2X :: Float -> Vec2 -> Vec2 Source
 translate2Y :: Float -> Vec2 -> Vec2 Source
 sinCos :: Float -> Vec2 Source
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' :: Float -> Normal2 Source
 angle2 :: Vec2 -> Float Source
The angle relative to the positive X axis
 angle2' :: Normal2 -> Float Source
 rotMatrix2 :: Float -> Mat2 Source
Rotation matrix by a given angle (in radians), counterclockwise.
 rotate2 :: Float -> Vec2 -> Vec2 Source
 rotateCCW :: Vec2 -> Vec2 Source
Rotates counterclockwise by 90 degrees.
 rotateCW :: Vec2 -> Vec2 Source
Rotates clockwise by 90 degrees.