angle2Vectors()

Synopsis

Returns the true angle in degrees from vector v1 to vector v2 in 3-space. A third "normal" vector v3 is used to determine the direction of measurement, using the right-hand rule. Negative angles are not returned.

Syntax

angle2Vectors ( v1 As Vector, _
                v2 As Vector, _
                v3 As Vector ) As Number 
Argument Type Description
v1 Vector start vector
v2 Vector end vector
v3 Vector A vector , not in the plane formed by v1 and v2, used to pick between the two choices for angle.

Example 1

Intent >angle2Vectors(Vector(1,0,0), Vector(0,1,0), Vector(0,0,1)) 
--> 90 

Example 2

Intent >angle2Vectors(Vector(1,0,0), Vector(0,1,0), Vector(0,0,-1)) 
--> 270 
By reversing the bias vector , we obtain the other interpretation of the angle.