Vizard 8 » Command Index » Vizard modules » vizmat » <vizmat>.AngleBetweenVector
8.1

<vizmat>.AngleBetweenVector

Returns the angle between two 3D vectors

<vizmat>.AngleBetweenVector(  
v1 # [x,y,z]
v2 # [x,y,z]
)  
v1
The first vector
v2
The second vector

Remarks

This command will return the angle between two 3d vectors in degrees

Return Value

Angle between the vectors in degrees

Example

import vizmat

v1 = [0,0,1]
v2 = [1,0,0]

#This will print out 90
print(vizmat.AngleBetweenVector(v1,v2))