Explorar o código

Reverting Vector3.angleTo change. See #7343.

Mr.doob %!s(int64=10) %!d(string=hai) anos
pai
achega
4e9abd1fd2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/math/Vector3.js

+ 1 - 1
src/math/Vector3.js

@@ -655,7 +655,7 @@ THREE.Vector3.prototype = {
 
 	angleTo: function ( v ) {
 
-		var theta = this.dot( v ) / Math.sqrt( this.lengthSq() * v.lengthSq() );
+		var theta = this.dot( v ) / ( this.length() * v.length() );
 
 		// clamp, to handle numerical problems