@@ -15,6 +15,9 @@ v3 = Native.MJS.v3
15v3add : V3 -> V3 -> V3
15v3add : V3 -> V3 -> V3
16v3add = Native.MJS.v3add
16v3add = Native.MJS.v3add
18+v3sub : V3 -> V3 -> V3
19+v3sub = Native.MJS.v3sub
18v3length : V3 -> Float
21v3length : V3 -> Float
19v3length = Native.MJS.v3length
22v3length = Native.MJS.v3length
@@ -24,6 +27,12 @@ v3normalize = Native.MJS.v3normalize
24v3scale : V3 -> Float -> V3
27v3scale : V3 -> Float -> V3
25v3scale = Native.MJS.v3scale
28v3scale = Native.MJS.v3scale
30+v3dot : V3 -> V3 -> Float
31+v3dot = Native.MJS.v3dot
33+v3cross : V3 -> V3 -> V3
34+v3cross = Native.MJS.v3cross
27v3mul4x4 : M4x4 -> V3 -> V3
36v3mul4x4 : M4x4 -> V3 -> V3
28v3mul4x4 = Native.MJS.v3mul4x4
37v3mul4x4 = Native.MJS.v3mul4x4
@@ -36,8 +45,15 @@ m4x4mul = Native.MJS.m4x4mul
36m4x4makeRotate : Float -> V3 -> M4x4
45m4x4makeRotate : Float -> V3 -> M4x4
37m4x4makeRotate = Native.MJS.m4x4makeRotate
46m4x4makeRotate = Native.MJS.m4x4makeRotate
48+m4x4makeTranslate : V3 -> M4x4
49+m4x4makeTranslate = Native.MJS.m4x4makeTranslate
39m4x4makeLookAt : V3 -> V3 -> V3 -> M4x4
51m4x4makeLookAt : V3 -> V3 -> V3 -> M4x4
40m4x4makeLookAt = Native.MJS.m4x4makeLookAt
52m4x4makeLookAt = Native.MJS.m4x4makeLookAt
42m4x4makePerspective : Float -> Float -> Float -> Float -> M4x4
54m4x4makePerspective : Float -> Float -> Float -> Float -> M4x4
43m4x4makePerspective = Native.MJS.m4x4makePerspective
55m4x4makePerspective = Native.MJS.m4x4makePerspective
57+{- Custom constructor for supplying arbitrary x,y,z axis -}
58+m4x4makeCoords : V3 -> V3 -> V3 -> M4x4
59+m4x4makeCoords = Native.MJS.m4x4makeCoords