topical media & game development

talk show tell print

mobile-query-three-plugins-js-three-debug.js / js



  // attempts to use debug.js to help three.js
  
  assertWhichStop.overloadConsole()
  //assertWhichStop.useDebugger        = true;
  
  THREE.Vector3.prototype.addVectors = TypeCheck.fn(THREE.Vector3.prototype.addVectors, 
          [THREE.Vector3, THREE.Vector3],
          [THREE.Vector3]);
  THREE.Vector3.prototype.add = TypeCheck.fn(THREE.Vector3.prototype.add,
          [THREE.Vector3],
          [THREE.Vector3]);
  THREE.Vector3.prototype.subVectors = TypeCheck.fn(THREE.Vector3.prototype.subVectors, 
          [THREE.Vector3, THREE.Vector3],
          [THREE.Vector3]);
  THREE.Vector3.prototype.sub = TypeCheck.fn(THREE.Vector3.prototype.sub,
          [THREE.Vector3],
          [THREE.Vector3]);
  THREE.Vector3.prototype.multiplyVectors = TypeCheck.fn(THREE.Vector3.prototype.multiplyVectors, 
          [THREE.Vector3, THREE.Vector3],
          [THREE.Vector3]);
  THREE.Vector3.prototype.multiply = TypeCheck.fn(THREE.Vector3.prototype.multiply,
          [THREE.Vector3],
          [THREE.Vector3]);
  
  THREE.Matrix4.prototype.multiply = TypeCheck.fn(THREE.Matrix4.prototype.multiply,
          [THREE.Matrix4],
          [THREE.Matrix4]);
  THREE.Matrix4.prototype.multiplyMatrices = TypeCheck.fn(THREE.Matrix4.prototype.multiplyMatrices,
          [THREE.Matrix4, THREE.Matrix4],
          [THREE.Matrix4]);
  
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.