Skip to content

Commit b6870df

Browse files
authored
Vector3: Clarified angleTo() error message.
1 parent 660d320 commit b6870df

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/math/Vector3.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -555,11 +555,9 @@ Object.assign( Vector3.prototype, {
555555

556556
angleTo: function ( v ) {
557557

558-
// assumes this and v are not the zero vector
559-
560558
var denominator = Math.sqrt( this.lengthSq() * v.lengthSq() );
561559

562-
if ( denominator === 0 ) console.error( 'THREE.Vector3: angleTo() does not accept zero vectors.' );
560+
if ( denominator === 0 ) console.error( 'THREE.Vector3: angleTo() can\'t handle zero length vectors.' );
563561

564562
var theta = this.dot( v ) / denominator;
565563

0 commit comments

Comments
 (0)