WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 03-28-2010, 07:04 AM
dwaik dwaik is offline
Member
 
Join Date: Feb 2010
Posts: 26
here you dont want to scale first, you need to get the full range [-5,5] if you can get it,
then you can use the mathmatical range scaling which:


to scale x form range [a-b] to range [c-d]

newX=(x-a)/(b-a) #here you will have your value in range [0-1]
finalValue=(newX*(d-c))+c #and here you will have your value in range [c-d]



which in your case if x was 2 in range [-5,5] and you need to change it to range [-450,450]

you can solve it as follows:
newX=(2-(-5))/(5-(-5)) #7/10=0.7 in range [0,1]
finalValue=(0.7*(450-(-450)))+(-450) #(0.7*900)-450=180 and thats it

hope that helps
Reply With Quote
 


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
Range of Cameras Vic Precision Position Tracker (PPT) 2 06-11-2009 07:19 AM
How to get the data from Logitech G25 racing wheel ? fuyonggang Vizard 4 12-18-2008 07:14 PM
Flock of birds extended range problem theuberk Vizard 4 07-30-2007 10:31 AM
Do you have some idea about the bicycle and wheel sled Vizard 6 08-01-2003 11:03 PM
Can I see infinite distance sled Vizard 2 07-16-2003 05:18 PM


All times are GMT -7. The time now is 03:08 AM.


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