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