title: How to add two vectors on three.js?
body: <p>Can't find out what am I missing....</p>
  
  <p>Debuging a sample code I found these lines and dump it to console to understand what is going wrong:</p>
  
  <pre><code>        var intPosition = new THREE.Vector3( Math.floor(result.point.x), 0, Math.floor(result.point.z) );
          console.log(intPosition);
          brush.position = intPosition.clone().add(new THREE.Vector3(0.5, 0.5, 0.5) );
          console.log(brush.position);
  </code></pre>
  
  <p>but.......... the output is as follow (from firebug console):</p>
  
  <pre><code>Object { x=0, y=0, z=10, more... }
  Object { x=0, y=0, z=0, more... }
  </code></pre>
  
  <p>from <a href="http://threejs.org/docs/#Reference/Math/Vector3" rel="nofollow">three.js docs</a>:</p>
  
  <pre><code>.add ( v ) this
  </code></pre>
  
  <p>Adds v to this vector. </p>
  
  <p>and <a href="https://threejsdoc.appspot.com/doc/three.js/src.source/core/Vector3.js.html" rel="nofollow">here</a>:</p>
  
  <pre><code>add: function ( v1, v2 ) {
  
      this.x = v1.x + v2.x;
      this.y = v1.y + v2.y;
      this.z = v1.z + v2.z;
  
      return this;
  
  },
  </code></pre>
  
  <p>What's wrong? Is it the integer+float failling on js?</p>
  
  <p><strong>EDIT NOTE:</strong></p>
  
  <p>I don't know if it is relevant but this issue occurs on my current version (revision 71) of Three.js, working fine on older versions (r60 or lower).</p>