View Single Post
  #2  
Old 09-17-2009, 05:54 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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?
Reply With Quote