Преглед изворни кода

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 );
 
 	},