#1
|
|||
|
|||
Norm of a vector
Hi,
how can I calculate the norm of a vector or how can I extract a root in pyhton? Sorry, but I can't find any information about this.. Thanks a lot. |
#2
|
|||
|
|||
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() |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Prioritize Director thread | aznan | Vizard | 9 | 05-14-2008 10:57 AM |