瀏覽代碼

Merge remote branch 'remotes/upstream/master'

alteredq 14 年之前
父節點
當前提交
92c0c8c42f
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      src/core/Vector3.js

+ 10 - 0
src/core/Vector3.js

@@ -136,6 +136,16 @@ THREE.Vector3.prototype = {
 
 	},
 
+	divideSelf: function ( v ) {
+
+		this.x /= v.x;
+		this.y /= v.y;
+		this.z /= v.z;
+
+		return this;
+
+	},
+
 	divideScalar: function ( s ) {
 
 		this.x /= s;