Sfoglia il codice sorgente

Vector2 toArray(): return array

Alexander Rose 11 anni fa
parent
commit
ebba6ea4a5
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      src/math/Vector2.js

+ 2 - 0
src/math/Vector2.js

@@ -394,6 +394,8 @@ THREE.Vector2.prototype = {
 
 			array[ offset ] = this.x;
 			array[ offset + 1 ] = this.y;
+			
+			return array;
 
 		} else {