@@ -797,7 +797,7 @@ Elm.Native.MJS.make = function(elm) {
800− * Function: M4x4.makeOrtho
800+ * Function: M4x4.makeOrtho2D
802 * Creates a matrix for a 2D orthogonal frustum projection with the given parameters.
802 * Creates a matrix for a 2D orthogonal frustum projection with the given parameters.
803 * znear and zfar are assumed to be -1 and 1, respectively.
803 * znear and zfar are assumed to be -1 and 1, respectively.
@@ -900,79 +900,6 @@ Elm.Native.MJS.make = function(elm) {
900 return r;
900 return r;
904− * Function: M4x4.mulOffset
906− * Performs r' = a * b, where r' is the 16 elements of r starting at element o.
910− * a - the first matrix operand
911− * b - the second matrix operand
912− * r - array to store the result in
913− * o - offset into r at which to start storing results
919− M4x4.mulOffset = function M4x4_mulOffset(a, b, r, o) {
920− //MathUtils_assert(a.length == 16, "a.length == 16");
921− //MathUtils_assert(b.length == 16, "b.length == 16");
956− r[o+0] = a11 * b11 + a12 * b21 + a13 * b31 + a14 * b41;
957− r[o+1] = a21 * b11 + a22 * b21 + a23 * b31 + a24 * b41;
958− r[o+2] = a31 * b11 + a32 * b21 + a33 * b31 + a34 * b41;
959− r[o+3] = a41 * b11 + a42 * b21 + a43 * b31 + a44 * b41;
960− r[o+4] = a11 * b12 + a12 * b22 + a13 * b32 + a14 * b42;
961− r[o+5] = a21 * b12 + a22 * b22 + a23 * b32 + a24 * b42;
962− r[o+6] = a31 * b12 + a32 * b22 + a33 * b32 + a34 * b42;
963− r[o+7] = a41 * b12 + a42 * b22 + a43 * b32 + a44 * b42;
964− r[o+8] = a11 * b13 + a12 * b23 + a13 * b33 + a14 * b43;
965− r[o+9] = a21 * b13 + a22 * b23 + a23 * b33 + a24 * b43;
966− r[o+10] = a31 * b13 + a32 * b23 + a33 * b33 + a34 * b43;
967− r[o+11] = a41 * b13 + a42 * b23 + a43 * b33 + a44 * b43;
968− r[o+12] = a11 * b14 + a12 * b24 + a13 * b34 + a14 * b44;
969− r[o+13] = a21 * b14 + a22 * b24 + a23 * b34 + a24 * b44;
970− r[o+14] = a31 * b14 + a32 * b24 + a33 * b34 + a34 * b44;
971− r[o+15] = a41 * b14 + a42 * b24 + a43 * b34 + a44 * b44;
977 * Function: M4x4.mulAffine
904 * Function: M4x4.mulAffine
@@ -1043,74 +970,6 @@ Elm.Native.MJS.make = function(elm) {
1043 return r;
970 return r;
1047− * Function: M4x4.mulAffineOffset
1049− * Performs r' = a * b, assuming a and b are affine (elements 3,7,11,15 = 0,0,0,1), where r' is the 16 elements of r starting at element o
1053− * a - the first matrix operand
1054− * b - the second matrix operand
1055− * r - array to store the result in
1056− * o - offset into r at which to start storing results
1062− M4x4.mulAffine = function M4x4_mulAffine(a, b, r, o) {
1063− //MathUtils_assert(a.length == 16, "a.length == 16");
1064− //MathUtils_assert(b.length == 16, "b.length == 16");
1066− if (r == undefined)
1067− r = new MJS_FLOAT_ARRAY_TYPE(16);
1094− r[o+0] = a11 * b11 + a12 * b21 + a13 * b31;
1095− r[o+1] = a21 * b11 + a22 * b21 + a23 * b31;
1096− r[o+2] = a31 * b11 + a32 * b21 + a33 * b31;
1098− r[o+4] = a11 * b12 + a12 * b22 + a13 * b32;
1099− r[o+5] = a21 * b12 + a22 * b22 + a23 * b32;
1100− r[o+6] = a31 * b12 + a32 * b22 + a33 * b32;
1102− r[o+8] = a11 * b13 + a12 * b23 + a13 * b33;
1103− r[o+9] = a21 * b13 + a22 * b23 + a23 * b33;
1104− r[o+10] = a31 * b13 + a32 * b23 + a33 * b33;
1106− r[o+12] = a11 * b14 + a12 * b24 + a13 * b34 + a14;
1107− r[o+13] = a21 * b14 + a22 * b24 + a23 * b34 + a24;
1108− r[o+14] = a31 * b14 + a32 * b24 + a33 * b34 + a34;
1115 * Function: M4x4.makeRotate
974 * Function: M4x4.makeRotate
@@ -1840,7 +1699,7 @@ Elm.Native.MJS.make = function(elm) {
1840 return r;
1699 return r;
1843− M4x4.makeCoords = function M4x4_makeCoords(vx,vy,vz) {
1702+ M4x4.makeBasis = function M4x4_makeBasis(vx,vy,vz) {
1845 var r = new MJS_FLOAT_ARRAY_TYPE(16);
1704 var r = new MJS_FLOAT_ARRAY_TYPE(16);
@@ -1868,7 +1727,6 @@ Elm.Native.MJS.make = function(elm) {
1868 return {
1727 return {
1870 v3: F3(V3.$),
1729 v3: F3(V3.$),
1872 v3add: F2(V3.add),
1730 v3add: F2(V3.add),
1873 v3sub: F2(V3.sub),
1731 v3sub: F2(V3.sub),
1874 v3neg: V3.neg,
1732 v3neg: V3.neg,
@@ -1880,12 +1738,8 @@ Elm.Native.MJS.make = function(elm) {
1880 v3dot: F2(V3.dot),
1738 v3dot: F2(V3.dot),
1881 v3cross: F2(V3.cross),
1739 v3cross: F2(V3.cross),
1882 v3mul4x4: F2(V3.mul4x4),
1740 v3mul4x4: F2(V3.mul4x4),
1886 M4x4:M4x4,
1741 M4x4:M4x4,
1887 m4x4identity: M4x4.identity,
1742 m4x4identity: M4x4.identity,
1888− m4x4clone: M4x4.clone,
1889 m4x4topLeft3x3: M4x4.topLeft3x3,
1743 m4x4topLeft3x3: M4x4.topLeft3x3,
1890 m4x4inverseOrthonormal: M4x4.inverseOrthonormal,
1744 m4x4inverseOrthonormal: M4x4.inverseOrthonormal,
1891 m4x4inverseTo3x3: M4x4.inverseTo3x3,
1745 m4x4inverseTo3x3: M4x4.inverseTo3x3,
@@ -1901,23 +1755,15 @@ Elm.Native.MJS.make = function(elm) {
1901 m4x4makeScale1: M4x4.makeScale1,
1755 m4x4makeScale1: M4x4.makeScale1,
1902 m4x4makeScale: M4x4.makeScale,
1756 m4x4makeScale: M4x4.makeScale,
1903 m4x4scale3: F4(M4x4.scale3),
1757 m4x4scale3: F4(M4x4.scale3),
1904− m4x4scale1: F2(M4x4.scale1),
1905 m4x4scale: F2(M4x4.scale),
1758 m4x4scale: F2(M4x4.scale),
1906 m4x4makeTranslate3: F3(M4x4.makeTranslate3),
1759 m4x4makeTranslate3: F3(M4x4.makeTranslate3),
1907− m4x4makeTranslate1: M4x4.makeTranslate1,
1908 m4x4makeTranslate: M4x4.makeTranslate,
1760 m4x4makeTranslate: M4x4.makeTranslate,
1909 m4x4translate3: F4(M4x4.translate3),
1761 m4x4translate3: F4(M4x4.translate3),
1910− m4x4translate1: F2(M4x4.translate1),
1911 m4x4translate: F2(M4x4.translate),
1762 m4x4translate: F2(M4x4.translate),
1912 m4x4makeLookAt: F3(M4x4.makeLookAt),
1763 m4x4makeLookAt: F3(M4x4.makeLookAt),
1913 m4x4transpose: M4x4.transpose,
1764 m4x4transpose: M4x4.transpose,
1914 m4x4transformPoint: F2(M4x4.transformPoint),
1765 m4x4transformPoint: F2(M4x4.transformPoint),
1915− /*
1766+ m4x4makeBasis: F3(M4x4.makeBasis),
1916− m4x4_transformLine(m, v, r) {
1917− m4x4_transformPointFffine (m, v, r) {
1918− m4x4_transformLineFffine(m, v, r) {
1920− m4x4makeCoords: F3(M4x4.makeCoords),