We should force the right dslots lengths in NEWINIT. That would allow us to use much faster code to write to it with INITELEM (no growth needed).
(Reporter)  
Comment 1•7 years ago


3dcube: function CreateP(X,Y,Z) { this.V = [X,Y,Z,1]; } // add to matrices function MAdd(M1, M2) { var M = [[],[],[],[]]; var i = 0; var j = 0; for (; i < 4; i++) { j = 0; for (; j < 4; j++) M[i][j] = M1[i][j] + M2[i][j]; } return M; } function Translate(M, Dx, Dy, Dz) { var T = [ [1,0,0,Dx], [0,1,0,Dy], [0,0,1,Dz], [0,0,0,1] ]; return MMulti(T, M); } function RotateX(M, Phi) { var a = Phi; a *= Math.PI / 180; var Cos = Math.cos(a); var Sin = Math.sin(a); var R = [ [1,0,0,0], [0,Cos,Sin,0], [0,Sin,Cos,0], [0,0,0,1] ]; return MMulti(R, M); } function RotateY(M, Phi) { var a = Phi; a *= Math.PI / 180; var Cos = Math.cos(a); var Sin = Math.sin(a); var R = [ [Cos,0,Sin,0], [0,1,0,0], [Sin,0,Cos,0], [0,0,0,1] ]; return MMulti(R, M); } function RotateZ(M, Phi) { var a = Phi; a *= Math.PI / 180; var Cos = Math.cos(a); var Sin = Math.sin(a); var R = [ [Cos,Sin,0,0], [Sin,Cos,0,0], [0,0,1,0], [0,0,0,1] ]; return MMulti(R, M); }
Comment 2•6 years ago


Still a valid nonTM bug?
Comment 3•6 years ago


I suspect not. bhackett?
Comment 4•6 years ago


No, this has been fixed for a while in both JM and TM.
Description
•