We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 660d320 commit b6870dfCopy full SHA for b6870df
src/math/Vector3.js
@@ -555,11 +555,9 @@ Object.assign( Vector3.prototype, {
555
556
angleTo: function ( v ) {
557
558
- // assumes this and v are not the zero vector
559
-
560
var denominator = Math.sqrt( this.lengthSq() * v.lengthSq() );
561
562
- if ( denominator === 0 ) console.error( 'THREE.Vector3: angleTo() does not accept zero vectors.' );
+ if ( denominator === 0 ) console.error( 'THREE.Vector3: angleTo() can\'t handle zero length vectors.' );
563
564
var theta = this.dot( v ) / denominator;
565
0 commit comments