View Single Post
  #2  
Old 05-12-2009, 09:03 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You can use the viz.Vector class to get the length of any vector. Here is some code:
Code:
v = viz.Vector(0,3,0)
print v.length()
v.normalize()
print v.length()
Reply With Quote