瀏覽代碼

rename cosTheta variable in Vector3.project per @WestLangley

Ben Houston 12 年之前
父節點
當前提交
d2ebe85c0b
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/math/Vector3.js

+ 2 - 2
src/math/Vector3.js

@@ -523,8 +523,8 @@ THREE.extend( THREE.Vector3.prototype, {
 
 	project: function( normal ) {
 
-		var cosTheta = this.dot( normal );
-		return this.copy( normal ).multiplyScalar( cosTheta );
+		var d = this.dot( normal );
+		return this.copy( normal ).multiplyScalar( d );
 
 	},