View Single Post
  #2  
Old 08-02-2013, 09:07 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Thanks for the suggestion. In a future version vector.normalize will return itself so it can be passed directly to a function. However, you can currently normalize a vector during creation:
Code:
v = viz.Vector([0,3,0],normalize=True)
You can also set the length to a specific value:
Code:
v = viz.Vector([0,3,0],length=5)
Reply With Quote