test.js 372 B

123456789101112131415161718192021222324
  1. var threemath = function () {
  2. var THREE = require( "three-math" );
  3. var a = new THREE.Vector3( 1, 1, 1 );
  4. console.log( a );
  5. for( var i in THREE ) {
  6. console.log( i );
  7. }
  8. };
  9. var three = function () {
  10. var THREE = require( "three" );
  11. var a = new THREE.Vector3( 1, 1, 1 );
  12. console.log( a );
  13. for( var i in THREE ) {
  14. console.log( i );
  15. }
  16. };
  17. threemath();
  18. three();