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

<vizmat>.QuatDiff

Returns the angle between two Quaternions

<vizmat>.QuatDiff(  
q1 # [x,y,z,w]
q2 # [x,y,z,w]
)  
q1
The first quaternion
q2
The second quaternion

Remarks

This command will return the angle between two quaternions, in degrees

Return Value

The angle between the quaternions, in degrees

Example

import vizmat

q1 = object1.getQuat()
q2 = object2.getQuat()

print(vizmat.QuatDiff(q1,q2))