From 4e9abd1fd2ad9a7f6f035fe86330446b71275a49 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Thu, 15 Oct 2015 11:57:15 -0400 Subject: [PATCH] Reverting Vector3.angleTo change. See #7343. --- src/math/Vector3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/math/Vector3.js b/src/math/Vector3.js index bac575cf46..8b3ad759ea 100644 --- a/src/math/Vector3.js +++ b/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 -- GitLab