Thread
:
Norm of a vector
View Single Post
#
2
05-12-2009, 09:03 AM
farshizzo
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()
farshizzo
View Public Profile
Find all posts by farshizzo