Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
- data V2 = V2 !Float !Float
- data V3 = V3 !Float !Float !Float
- data V4 = V4 !Float !Float !Float !Float
- data M2 = M2 !V2 !V2
- data M3 = M3 !V3 !V3 !V3
- data M4 = M4 !V4 !V4 !V4 !V4
- vec2 :: (Float, Float) -> V2
- vec3 :: (Float, Float, Float) -> V3
- vec4 :: (Float, Float, Float, Float) -> V4
- mat2 :: (Float, Float, Float, Float) -> M2
- mat3 :: (Float, Float, Float, Float, Float, Float, Float, Float, Float) -> M3
- mul3 :: M3 -> M3 -> M3
- mat4 :: (Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float) -> M4
- mul4 :: M4 -> M4 -> M4
- transpose4 :: M4 -> M4
- idMat4 :: M4
- transMat4 :: V3 -> M4
- rotXMat4 :: Float -> M4
- rotYMat4 :: Float -> M4
- rotZMat4 :: Float -> M4
- rotAAMat4 :: V3 -> Float -> M4
- scaleMat4 :: V3 -> M4
- perspectiveMat4 :: Float -> Float -> Float -> Float -> M4
- idMat3 :: M3
- transMat3 :: V2 -> M3
- rotMat3 :: Float -> M3
- scaleMat3 :: V2 -> M3
Documentation
Two-dimensional vector.
Three-dimensional vector.
Four-dimensional vector.
3x3 matrix.
Eq M3 | |
Show M3 | |
GLES => UniformCPU M3 M3 | |
GLES => UniformCPU CM3 View2 | |
GLES => UniformCPU CM3 Transform2 |
4x4 matrix.
Eq M4 | |
Show M4 | |
GLES => UniformCPU M4 M4 | |
GLES => UniformCPU CM4 View3 | |
GLES => UniformCPU CM4 Transform3 |
mat3 :: (Float, Float, Float, Float, Float, Float, Float, Float, Float) -> M3 Source
Create a 3x3 matrix.
mat4 :: (Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float) -> M4 Source
Create a 4x4 matrix.
transpose4 :: M4 -> M4 Source
Transpose a 4x4 matrix.
4x4 perspective matrix.