You can use the
vizmat.Interpolate function to linearly interpolate between the position values of the matrix:
Code:
pos = vizmat.Interpolate(pos1,pos2,0.5)
You can also use the
vizmat.slerp function to perform spherical linear interpolation between quaternion values of the matrix:
Code:
quat = vizmat.slerp(quat1,quat2,0.5)
Viewpoint objects have a
setQuat method that allows you to specify the rotation as a quaternion. Is this the usage you are looking for?