var debugDraw = false; var v = vec3.create(); vec3.set(v,10,10,10); var m = mat4.create(); mat4.translate(m,m,v); mat4.rotateX(m,m,Math.PI); var v1 = vec3.create(); vec3.set(v1,0,0,10); vec3.transformMat4(v1,v1,m); var c = document.querySelector('#c'), w = c.width, h = c.height, cx = c.getContext('2d'); var mouseX=250, mouseY=150; window.document.onmousemove = function(e){ mouseX = e.pageX; mouseY