WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 

Tags
normalize, suggestion, viz.vector


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
morphTo: Is there a smoother method? Josh Vizard 1 03-08-2010 09:50 AM
read method needed Woosuk Jang Vizard 3 06-22-2009 05:49 PM
parallel port method bionic1 Vizard 2 05-04-2009 06:41 PM
mapping method FlyingFish Vizard 1 07-12-2007 09:06 AM
method of a class instance not accepted as Callback Gilliard Vizard 1 08-10-2005 05:49 PM


All times are GMT -7. The time now is 12:31 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC