|
@@ -249,6 +249,10 @@ THREE.Vector3.prototype = {
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ angleTo: function ( v ) {
|
|
|
|
+ return Math.acos( this.dot( v ) / this.length() / v.length() );
|
|
|
|
+ };
|
|
|
|
+
|
|
distanceTo: function ( v ) {
|
|
distanceTo: function ( v ) {
|
|
|
|
|
|
return Math.sqrt( this.distanceToSquared( v ) );
|
|
return Math.sqrt( this.distanceToSquared( v ) );
|