Product help with community knowledge

### Page statistics

287 views1 edit(s)3289 characters(s) Page last modified 18:12, 15 Jan 2013 by contentconnector

# angle2Vectors()

1. 1. Synopsis
2. 2. Syntax
3. 3. Example 1
4. 4. Example 2

## 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.