Explorar o código

rename cosTheta variable in Vector3.project per @WestLangley

Ben Houston %!s(int64=12) %!d(string=hai) anos
pai
achega
d2ebe85c0b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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 );
 
 	},