vect-0.4.0: A low-dimensional linear algebra library, tailored to computer graphics.
Source code
Contents
Index
Data.Vect.Double.OpenGL
Description
OpenGL support, inclduing
vertex
,
texCoord
, etc instances for
Vec2
,
Vec3
and
Vec4
.
Synopsis
radianToDegrees
::
RealFrac
a => a -> a
degreesToRadian
::
Floating
a => a -> a
rotate
::
Double
->
Vec3
->
IO
()
translate
::
Vec3
->
IO
()
scale3
::
Vec3
->
IO
()
scale
::
Double
->
IO
()
class
VertexAttrib'
a
where
vertexAttrib
::
AttribLocation
-> a ->
IO
()
Documentation
radianToDegrees
::
RealFrac
a => a -> a
Source
degreesToRadian
::
Floating
a => a -> a
Source
rotate
::
Double
->
Vec3
->
IO
()
Source
The angle is in radians. (WARNING: OpenGL uses degrees!)
translate
::
Vec3
->
IO
()
Source
scale3
::
Vec3
->
IO
()
Source
scale
::
Double
->
IO
()
Source
class
VertexAttrib'
a
where
Source
Methods
vertexAttrib
::
AttribLocation
-> a ->
IO
()
Source
Instances
VertexAttrib'
Double
VertexAttrib'
Normal4
VertexAttrib'
Normal3
VertexAttrib'
Normal2
VertexAttrib'
Vec4
VertexAttrib'
Vec3
VertexAttrib'
Vec2
Produced by
Haddock
version 2.4.2