on cf016ea help sign in
elk/libraries/MJS.elm
59 lines 1.2 kB history raw
1module MJS where
3{-| MJS
5-}
7import Native.MJS
9data V3 = Dummy_V3
10data M4x4 = Dummy_M4x4
12v3 : Float -> Float -> Float -> V3
13v3 = Native.MJS.v3
15v3add : V3 -> V3 -> V3
16v3add = Native.MJS.v3add
18v3sub : V3 -> V3 -> V3
19v3sub = Native.MJS.v3sub
21v3length : V3 -> Float
22v3length = Native.MJS.v3length
24v3normalize : V3 -> V3
25v3normalize = Native.MJS.v3normalize
27v3scale : V3 -> Float -> V3
28v3scale = Native.MJS.v3scale
30v3dot : V3 -> V3 -> Float
31v3dot = Native.MJS.v3dot
33v3cross : V3 -> V3 -> V3
34v3cross = Native.MJS.v3cross
36v3mul4x4 : M4x4 -> V3 -> V3
37v3mul4x4 = Native.MJS.v3mul4x4
39m4x4identity : M4x4
40m4x4identity = Native.MJS.m4x4identity
42m4x4mul : M4x4 -> M4x4 -> M4x4
43m4x4mul = Native.MJS.m4x4mul
45m4x4makeRotate : Float -> V3 -> M4x4
46m4x4makeRotate = Native.MJS.m4x4makeRotate
48m4x4makeTranslate : V3 -> M4x4
49m4x4makeTranslate = Native.MJS.m4x4makeTranslate
51m4x4makeLookAt : V3 -> V3 -> V3 -> M4x4
52m4x4makeLookAt = Native.MJS.m4x4makeLookAt
54m4x4makePerspective : Float -> Float -> Float -> Float -> M4x4
55m4x4makePerspective = Native.MJS.m4x4makePerspective
57{- Custom constructor for supplying arbitrary x,y,z axis -}
58m4x4makeCoords : V3 -> V3 -> V3 -> M4x4
59m4x4makeCoords = Native.MJS.m4x4makeCoords