Skip to content

Commit 4e9abd1

Browse files
committed
Reverting Vector3.angleTo change. See mrdoob#7343.
1 parent cc06a10 commit 4e9abd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/math/Vector3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ THREE.Vector3.prototype = {
655655

656656
angleTo: function ( v ) {
657657

658-
var theta = this.dot( v ) / Math.sqrt( this.lengthSq() * v.lengthSq() );
658+
var theta = this.dot( v ) / ( this.length() * v.length() );
659659

660660
// clamp, to handle numerical problems
661661

0 commit comments

Comments
 (0)